axmol/template/multi-platform-cpp/proj.win32/main.cpp

22 lines
581 B
C++

#include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.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;
EGLView* eglView = EGLView::getInstance();
eglView->setViewName("HelloCpp");
eglView->setFrameSize(480, 320);
return Application::sharedApplication()->run();
}