axmol/test_sprite/test_spriteEntry.cpp

42 lines
918 B
C++
Raw Normal View History

// Application main file.
// Original file name: test_spriteEntry.cpp
// Generated by TOPS Builder:Project wizard,Date:2010-8-3
#include "test_spriteEntry.h"
#include "test_spriteApp.h"
#include "test_sprite_res_c.h"
const ResourceRegisterEntry ResRegList_test_sprite[] =
{
TG_RESOURCE_DEFINE
};
const AppResourceEntry test_spriteResourceEntry =
{
(ResourceRegisterEntry*)ResRegList_test_sprite, // res list in this app
sizeof(ResRegList_test_sprite) / sizeof(ResourceRegisterEntry), //number of item in res
};
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
{
switch(nCmd)
{
case 0: // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
// UIӦ<49>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD>
Ttest_spriteApp * pApp= new Ttest_spriteApp();
pApp->WM_SetResourceEntry(&test_spriteResourceEntry);
pApp->Run();
delete pApp;
break;
}
}
return 1;
}