本文整理汇总了C++中Engine::Cleanup方法的典型用法代码示例。如果您正苦于以下问题:C++ Engine::Cleanup方法的具体用法?C++ Engine::Cleanup怎么用?C++ Engine::Cleanup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine::Cleanup方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main()
{
Engine game;
// initialize the engine
if(!game.Init("10 Seconds")) {
return 1;
}
game.window.setJoystickThreshold(10);
game.ChangeState(GMenuState::Instance());
// main loop
while(game.Running()) {
game.HandleEvents();
game.Update();
if(game.Running())
game.Draw();
}
// cleanup the engine
game.Cleanup();
return 0;
}
示例2: main
int main()
{
Engine engine;
engine.Run();
engine.Cleanup();
return 0;
}
示例3: main
int main()
{
Config::parseFile("../config.txt");
Engine suitengine;
if(suitengine.Initialize())
{
suitengine.Run();
}
suitengine.Cleanup();
return EXIT_SUCCESS;
}
示例4: _tmain
int _tmain(int argc, _TCHAR* argv[])
{
Engine engine;
if (engine.Initialise())
{
engine.Run();
}
engine.Cleanup();
return 0;
}
示例5: main
int main(int argc, char** argv)
{
glutInit(&argc, argv);
Engine engine;
engine.Switch(new MainMenuState(&engine));
while (engine.IsRunning())
{
engine.Run();
}
engine.Cleanup();
}
示例6: main
int main ( int argc, char *argv[] )
{
Engine game;
// initialize the engine
game.Init( "Splatter", 1200, 600 , 0, false);
// load the intro
game.ChangeState( MainMenuState::Instance());
// main loop
while ( game.Running() )
{
game.HandleEvents();
game.Update();
game.Draw();
SDL_RenderPresent(game.renderer);
}
// cleanup the engine
game.Cleanup();
return 0;
}