Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: nacltoons/proj.win/main.cc

Issue 14851014: [nacltoons] Move nacl-specific build to proj.nacl (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « nacltoons/proj.nacl/main.cc ('k') | nacltoons/proj.win/nacltoons/nacltoons.vcxproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « nacltoons/proj.nacl/main.cc ('k') | nacltoons/proj.win/nacltoons/nacltoons.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698