| Index: nacltoons/proj.win/main.cc
|
| diff --git a/nacltoons/proj.win/main.cc b/nacltoons/proj.win/main.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3a94dad28df813b2e24662f48e79e964c4eb9604
|
| --- /dev/null
|
| +++ b/nacltoons/proj.win/main.cc
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Exclude rarely-used stuff from Windows headers
|
| +#define WIN32_LEAN_AND_MEAN
|
| +// Windows Header Files:
|
| +#include <windows.h>
|
| +#include <tchar.h>
|
| +
|
| +// C RunTime Header Files
|
| +#include "CCStdC.h"
|
| +
|
| +
|
| +#include "app_delegate.h"
|
| +#include "CCEGLView.h"
|
| +
|
| +USING_NS_CC;
|
| +AppDelegate g_app;
|
| +
|
| +int APIENTRY _tWinMain(HINSTANCE hInstance,
|
| + HINSTANCE hPrevInstance,
|
| + LPTSTR lpCmdLine,
|
| + int nCmdShow)
|
| +{
|
| + UNREFERENCED_PARAMETER(hPrevInstance);
|
| + UNREFERENCED_PARAMETER(lpCmdLine);
|
| +
|
| + // create the application instance
|
| + CCEGLView* eglView = CCEGLView::sharedOpenGLView();
|
| + eglView->setViewName("HelloCpp");
|
| + 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 'setFrameZoomFactor'(only valid on desktop(win32,
|
| + // mac, linux)) to make the window smaller.
|
| + eglView->setFrameZoomFactor(0.4f);
|
| + return CCApplication::sharedApplication()->run();
|
| +}
|
|
|