2013-01-19 20:02:34 +00:00
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
|
|
|
|
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
|
|
|
|
LPSTR lpszCmdLine, int nCmdShow)
|
|
|
|
{
|
2013-02-10 12:47:51 +00:00
|
|
|
int width = 800;
|
|
|
|
int height = 480;
|
2013-01-19 20:02:34 +00:00
|
|
|
|
2013-02-10 12:47:51 +00:00
|
|
|
if (CreateEngine(width, height))
|
|
|
|
{
|
|
|
|
|
|
|
|
//MyApplication scope
|
|
|
|
{
|
|
|
|
TAndroidApplication Application;
|
2013-01-19 20:02:34 +00:00
|
|
|
|
2013-02-10 12:47:51 +00:00
|
|
|
Application.OuterInit(width, height, width, height);
|
|
|
|
|
|
|
|
MainLoop(&Application);
|
|
|
|
|
|
|
|
Application.OuterDeinit();
|
|
|
|
}
|
|
|
|
|
|
|
|
DestroyEngine();
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2013-01-19 20:02:34 +00:00
|
|
|
}
|