optimization
This commit is contained in:
parent
d412a88f20
commit
1c9300c1ba
@ -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
|
|
||||||
TMyApplication Application;
|
|
||||||
|
|
||||||
Application.Width = 480;
|
int width = 480;
|
||||||
Application.Height = 320;
|
int height = 320;
|
||||||
|
|
||||||
//Start application
|
if (CreateEngine(width, height))
|
||||||
return MainLoop(Application);
|
{
|
||||||
|
|
||||||
|
//MyApplication scope
|
||||||
|
{
|
||||||
|
TMyApplication Application;
|
||||||
|
|
||||||
|
Application.OuterInit(width, height, width, height);
|
||||||
|
|
||||||
|
MainLoop(&Application);
|
||||||
|
|
||||||
|
Application.OuterDeinit();
|
||||||
|
}
|
||||||
|
|
||||||
|
DestroyEngine();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user