mirror of https://github.com/axmolengine/axmol.git
42 lines
907 B
C++
42 lines
907 B
C++
// Application main file.
|
||
|
||
// Original file name: HelloWorldEntry.cpp
|
||
// Generated by TOPS Builder:Project wizard,Date:2010-8-3
|
||
|
||
|
||
|
||
#include "HelloWorldEntry.h"
|
||
#include "HelloWorldApp.h"
|
||
#include "helloworld_res_c.h"
|
||
|
||
const ResourceRegisterEntry ResRegList_HelloWorld[] =
|
||
{
|
||
TG_RESOURCE_DEFINE
|
||
};
|
||
|
||
const AppResourceEntry HelloWorldResourceEntry =
|
||
{
|
||
(ResourceRegisterEntry*)ResRegList_HelloWorld, // res list in this app
|
||
sizeof(ResRegList_HelloWorld) / sizeof(ResourceRegisterEntry), //number of item in res
|
||
};
|
||
|
||
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
||
{
|
||
switch(nCmd)
|
||
{
|
||
case 0: // Ö÷Èë¿Ú
|
||
{
|
||
// UIÓ¦ÓóÌÐòÀý×Ó£º
|
||
THelloWorldApp * pApp= new THelloWorldApp();
|
||
pApp->WM_SetResourceEntry(&HelloWorldResourceEntry);
|
||
pApp->Run();
|
||
|
||
delete pApp;
|
||
break;
|
||
}
|
||
}
|
||
return 1;
|
||
}
|
||
|
||
|