Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) // using win32 entry point
- {
- FWdebug::globalMem = new FWdebug::_memory::_memory_c(); // init memory debugger
- FWdebug::mainloopOn = false;
- FWcore::initFw();
- // START STOP INIT PLAY DESTR.
- FWcore::C_ML->pushEvent(0, 600, i_test, p_test, d_test); // test scene
- FWcore::C_ML->fetchInit();
- FWdebug::globalMem->put_msg("MESSAGE: Init finished, mainLoop on");
- FWdebug::mainloopOn = true;
- FWcore::C_ML->startTimer();
- while (FWcore::C_ML->getEOP()){
- FWcore::C_ML->play();
- FWcore::C_MR->flush();
- }
- FWdebug::mainloopOn = false;
- FWdebug::globalMem->put_msg("MESSAGE: mainLoop finished, destructing");
- FWcore::releaseFw(0);
- delete FWdebug::globalMem;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement