本文整理汇总了C++中System::Initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ System::Initialize方法的具体用法?C++ System::Initialize怎么用?C++ System::Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System::Initialize方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
window.setFramerateLimit(60);
System zeldish;
zeldish.Initialize(&window);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
zeldish.HandleInput();
zeldish.Update(1.0f);
window.display();
}
return 0;
}
示例2: WinMain
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
{
System* system;
bool result;
// Create the system object.
system = new System;
if (!system)
{
return 0;
}
// Initialize and run the system object.
result = system->Initialize();
if (result)
{
system->Run();
}
// Shutdown and release the system object.
system->Shutdown();
delete system;
system = 0;
return 0;
}
示例3: _tmain
int _tmain(int argc, _TCHAR* argv[])
{
System* system = new System;
if(system->Initialize())
system->Run();
system->Shutdown();
delete system;
system = 0;
return 0;
}
示例4: main
int main()
{
System* engine = new System("3DS Loader and Renderer");
if (!engine->Initialize())
{
printf("Press any key to shutdown\n");
_getch();
return -1;
}
engine->Run();
engine->Shutdown();
return 0;
}