Advertisement
Caiwan

csnc_main.cpp

Jun 18th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) // using win32 entry point
  2. {
  3.     FWdebug::globalMem  = new FWdebug::_memory::_memory_c(); // init memory debugger
  4.     FWdebug::mainloopOn = false;
  5.  
  6.     FWcore::initFw();
  7.     //          START   STOP    INIT    PLAY    DESTR.
  8.     FWcore::C_ML->pushEvent(0600,    i_test, p_test, d_test);    // test scene
  9.    
  10.     FWcore::C_ML->fetchInit();
  11.  
  12.     FWdebug::globalMem->put_msg("MESSAGE: Init finished, mainLoop on");
  13.     FWdebug::mainloopOn = true;
  14.  
  15.     FWcore::C_ML->startTimer();
  16.    
  17.     while (FWcore::C_ML->getEOP()){
  18.         FWcore::C_ML->play();
  19.         FWcore::C_MR->flush();
  20.     }
  21.  
  22.     FWdebug::mainloopOn = false;
  23.     FWdebug::globalMem->put_msg("MESSAGE: mainLoop finished, destructing");
  24.  
  25.     FWcore::releaseFw(0);
  26.    
  27.     delete FWdebug::globalMem;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement