2012-04-19 14:35:52 +08:00
|
|
|
#include "main.h"
|
|
|
|
#include "AppDelegate.h"
|
2012-05-02 17:50:26 +08:00
|
|
|
#include "CCEGLView.h"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPTSTR lpCmdLine,
|
|
|
|
int nCmdShow)
|
|
|
|
{
|
|
|
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
|
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
|
|
|
|
|
|
// create the application instance
|
|
|
|
AppDelegate app;
|
2013-06-20 14:17:10 +08:00
|
|
|
EGLView* eglView = EGLView::sharedOpenGLView();
|
2012-12-29 14:50:00 +08:00
|
|
|
eglView->setViewName("TestCpp");
|
2012-08-21 15:28:43 +08:00
|
|
|
eglView->setFrameSize(480, 320);
|
2013-06-20 14:17:10 +08:00
|
|
|
return Application::sharedApplication()->run();
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|