2012-05-29 16:21:23 +08:00
|
|
|
#include "main.h"
|
|
|
|
#include "AppDelegate.h"
|
|
|
|
#include "CCEGLView.h"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
|
|
|
|
|
|
|
// uncomment below line, open debug console
|
|
|
|
// #define USE_WIN32_CONSOLE
|
|
|
|
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPTSTR lpCmdLine,
|
|
|
|
int nCmdShow)
|
|
|
|
{
|
|
|
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
|
|
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
|
|
|
|
|
|
|
#ifdef USE_WIN32_CONSOLE
|
|
|
|
AllocConsole();
|
|
|
|
freopen("CONIN$", "r", stdin);
|
|
|
|
freopen("CONOUT$", "w", stdout);
|
|
|
|
freopen("CONOUT$", "w", stderr);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// create the application instance
|
|
|
|
AppDelegate app;
|
2013-08-16 16:05:27 +08:00
|
|
|
auto eglView = EGLView::getInstance();
|
2012-12-29 14:50:00 +08:00
|
|
|
eglView->setViewName("TestJavascript");
|
2012-11-05 18:46:23 +08:00
|
|
|
eglView->setFrameSize(800, 450);
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2013-07-15 16:24:42 +08:00
|
|
|
int ret = Application::getInstance()->run();
|
2012-05-29 16:21:23 +08:00
|
|
|
|
|
|
|
#ifdef USE_WIN32_CONSOLE
|
|
|
|
FreeConsole();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|