2012-04-19 14:35:52 +08:00
|
|
|
#include "main.h"
|
|
|
|
#include "../Classes/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;
|
2012-08-21 17:25:03 +08:00
|
|
|
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
|
2012-12-29 14:50:00 +08:00
|
|
|
eglView->setViewName("HelloCpp");
|
2012-10-18 10:54:19 +08:00
|
|
|
eglView->setFrameSize(2048, 1536);
|
|
|
|
// The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
|
2012-10-19 18:00:26 +08:00
|
|
|
// So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
|
2012-10-19 17:39:55 +08:00
|
|
|
eglView->setFrameZoomFactor(0.4f);
|
2012-08-21 17:25:03 +08:00
|
|
|
return CCApplication::sharedApplication()->run();
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|