double-hit-balls/windows/DoubleHitBalls-win/DoubleHitBalls-win/main.cpp
2018-05-30 18:09:27 +05:00

34 lines
477 B
C++
Executable File

#include "main.h"
#include "main_code.h"
TMyApplication* App = NULL;
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
LPSTR lpszCmdLine, int nCmdShow)
{
int width = 1024;
int height = 1024;
if (CreateEngine(width, height))
{
App = new TMyApplication;
App->OuterInit(width, height, width, height);
MainLoop(App);
App->OuterDeinit();
delete App;
App = NULL;
DestroyEngine();
}
return 0;
}