30 lines
480 B
C++
30 lines
480 B
C++
|
#include "main.h"
|
||
|
|
||
|
#include "main_code.h"
|
||
|
|
||
|
int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst,
|
||
|
LPSTR lpszCmdLine, int nCmdShow)
|
||
|
{
|
||
|
|
||
|
int width = 800;
|
||
|
int height = 480;
|
||
|
|
||
|
if (CreateEngine(width, height))
|
||
|
{
|
||
|
|
||
|
//MyApplication scope
|
||
|
{
|
||
|
TAndroidApplication Application;
|
||
|
|
||
|
Application.OuterInit(width, height, width, height);
|
||
|
|
||
|
MainLoop(&Application);
|
||
|
|
||
|
Application.OuterDeinit();
|
||
|
}
|
||
|
|
||
|
DestroyEngine();
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|