optimization

This commit is contained in:
Vladislav Khorev 2013-02-06 20:58:07 +00:00
parent d412a88f20
commit 1c9300c1ba

View File

@ -5,12 +5,26 @@
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst, int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
LPSTR lpszCmdLine, int nCmdShow) LPSTR lpszCmdLine, int nCmdShow)
{ {
//Create application
int width = 480;
int height = 320;
if (CreateEngine(width, height))
{
//MyApplication scope
{
TMyApplication Application; TMyApplication Application;
Application.Width = 480; Application.OuterInit(width, height, width, height);
Application.Height = 320;
//Start application MainLoop(&Application);
return MainLoop(Application);
Application.OuterDeinit();
}
DestroyEngine();
}
return 0;
} }