Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include "app_delegate.h" | 4 #include "app_delegate.h" |
| 5 #include "frontend.h" | 5 #include "frontend.h" |
| 6 | 6 |
| 7 USING_NS_CC; | 7 USING_NS_CC; |
| 8 | 8 |
| 9 bool AppDelegate::applicationDidFinishLaunching() { | 9 bool AppDelegate::applicationDidFinishLaunching() { |
| 10 CCEGLView* view = CCEGLView::sharedOpenGLView(); | 10 CCEGLView* view = CCEGLView::sharedOpenGLView(); |
| 11 | 11 |
| 12 CCDirector* director = CCDirector::sharedDirector(); | 12 CCDirector* director = CCDirector::sharedDirector(); |
| 13 director->setOpenGLView(view); | 13 director->setOpenGLView(view); |
| 14 director->setDisplayStats(true); | 14 director->setDisplayStats(true); |
| 15 | 15 |
| 16 CCScene* scene = FrontEnd::scene(); | 16 // Craete the initial (autorelease) scene and run with it. |
|
noelallen_use_chromium
2013/02/13 00:22:41
Create
| |
| 17 CCScene* scene = FrontEndScene::create(); | |
| 17 director->runWithScene(scene); | 18 director->runWithScene(scene); |
| 18 return true; | 19 return true; |
| 19 } | 20 } |
| OLD | NEW |