mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
28 lines
743 B
C++
28 lines
743 B
C++
#include "main.h"
|
|
#include "AppDelegate.h"
|
|
#include "CCEGLView.h"
|
|
#ifdef _WIN32
|
|
//#include "vld.h"
|
|
#endif
|
|
#include "DialogManager.h"
|
|
USING_NS_CC;
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
|
HINSTANCE hPrevInstance,
|
|
LPTSTR lpCmdLine,
|
|
int nCmdShow)
|
|
{
|
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
|
|
// create the application instance
|
|
AppDelegate app;
|
|
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
|
|
eglView->setViewName("HelloCpp");
|
|
eglView->setFrameSize(640,960);
|
|
//eglView->setFrameSize(640, 1136);
|
|
int n = CCApplication::sharedApplication()->run();
|
|
CDialogManager::releaseAllDialog();
|
|
return n;
|
|
}
|