asteroid-game/windows/SalmonTemplate/Template/main.cpp
2013-05-27 20:14:29 +00:00

30 lines
475 B
C++

#include "main.h"
#include "main_code.h"
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
LPSTR lpszCmdLine, int nCmdShow)
{
int width = 480;
int height = 320;
if (CreateEngine(width, height))
{
//MyApplication scope
{
TMyApplication Application;
Application.OuterInit(width, height, width, height);
MainLoop(&Application);
Application.OuterDeinit();
}
DestroyEngine();
}
return 0;
}