OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Exclude rarely-used stuff from Windows headers |
| 6 #define WIN32_LEAN_AND_MEAN |
| 7 // Windows Header Files: |
| 8 #include <windows.h> |
| 9 #include <tchar.h> |
| 10 |
| 11 // C RunTime Header Files |
| 12 #include "CCStdC.h" |
| 13 |
| 14 |
| 15 #include "app_delegate.h" |
| 16 #include "CCEGLView.h" |
| 17 |
| 18 USING_NS_CC; |
| 19 AppDelegate g_app; |
| 20 |
| 21 int APIENTRY _tWinMain(HINSTANCE hInstance, |
| 22 HINSTANCE hPrevInstance, |
| 23 LPTSTR lpCmdLine, |
| 24 int nCmdShow) |
| 25 { |
| 26 UNREFERENCED_PARAMETER(hPrevInstance); |
| 27 UNREFERENCED_PARAMETER(lpCmdLine); |
| 28 |
| 29 // create the application instance |
| 30 CCEGLView* eglView = CCEGLView::sharedOpenGLView(); |
| 31 eglView->setViewName("HelloCpp"); |
| 32 eglView->setFrameSize(2048, 1536); |
| 33 // The resolution of ipad3 is very large. In general, PC's resolution is |
| 34 // smaller than it. |
| 35 // So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, |
| 36 // mac, linux)) to make the window smaller. |
| 37 eglView->setFrameZoomFactor(0.4f); |
| 38 return CCApplication::sharedApplication()->run(); |
| 39 } |
OLD | NEW |