0 Members and 1 Guest are viewing this topic.
void main() { Thread mainThread( &GameManager::Init, GetGameManager() ); sf::Event evt; bool running = true; while( running ) { if( renderWindow == NULL ) { ThreadSleep( PTimeMS( 25 ) ); continue; } while( renderWindow->GetEvent( evt ) ) { if( evt.Type == sf::Event::Closed ) { GetGameManager()->StopGame(); running = false; } } ThreadSleep( PTimeMS( 10 ) ); } mainThread.join();}