engine/Templates/SalmonUniversalTemplate/windows/SalmonTemplate/Template/main.cpp

30 lines
475 B
C++
Raw Normal View History

2013-01-19 20:02:34 +00:00
#include "main.h"
#include "main_code.h"
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
LPSTR lpszCmdLine, int nCmdShow)
{
2013-02-06 20:58:07 +00:00
int width = 480;
int height = 320;
2013-01-19 20:02:34 +00:00
2013-02-06 20:58:07 +00:00
if (CreateEngine(width, height))
{
//MyApplication scope
{
TMyApplication Application;
Application.OuterInit(width, height, width, height);
MainLoop(&Application);
Application.OuterDeinit();
}
DestroyEngine();
}
return 0;
2013-01-19 20:02:34 +00:00
}