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-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.
|
|
|
|
// So we need to invoke 'setFrameZoom'(only valid on desktop(win32, mac, linux)) to make the window smaller.
|
|
|
|
eglView->setFrameZoom(0.4f);
|
2012-08-21 17:25:03 +08:00
|
|
|
return CCApplication::sharedApplication()->run();
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|