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;
|
2012-05-02 17:50:26 +08:00
|
|
|
CCEGLView& eglView = CCEGLView::sharedOpenGLView();
|
|
|
|
eglView.setViewName("Hello Tests");
|
2012-05-02 18:56:03 +08:00
|
|
|
eglView.setFrameSize(480, 320);
|
2012-05-03 10:12:00 +08:00
|
|
|
// set the design resolution screen size, if you want to use Design Resoulution scaled to current screen, please uncomment next line.
|
2012-05-02 17:50:26 +08:00
|
|
|
// eglView.setDesignResolutionSize(480, 320);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2012-05-02 17:50:26 +08:00
|
|
|
return CCApplication::sharedApplication().run();
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|