axmol/samples/Cpp/TestCpp/proj.win32/main.cpp

23 lines
588 B
C++
Raw Normal View History

#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;
2013-08-20 13:57:15 +08:00
EGLView *eglView = new EGLView();
eglView->setViewName("TestCpp");
eglView->setFrameSize(480, 320);
2013-08-20 13:57:15 +08:00
eglView->Create();
return Application::getInstance()->run();
}