| OLD | NEW |
| 1 // Copyright (c) 2013 The Native Client 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 "AppDelegate.h" | 4 #include "AppDelegate.h" |
| 5 #include "GameplayScene.h" | 5 #include "FrontEnd.h" |
| 6 #include "SimpleAudioEngine.h" | 6 #include "SimpleAudioEngine.h" |
| 7 | 7 |
| 8 USING_NS_CC; | 8 USING_NS_CC; |
| 9 | 9 |
| 10 bool AppDelegate::applicationDidFinishLaunching() { | 10 bool AppDelegate::applicationDidFinishLaunching() { |
| 11 CCEGLView* view = CCEGLView::sharedOpenGLView(); | 11 CCEGLView* view = CCEGLView::sharedOpenGLView(); |
| 12 | 12 |
| 13 CCDirector* director = CCDirector::sharedDirector(); | 13 CCDirector* director = CCDirector::sharedDirector(); |
| 14 director->setOpenGLView(view); | 14 director->setOpenGLView(view); |
| 15 director->setDisplayStats(true); | 15 director->setDisplayStats(true); |
| 16 | 16 |
| 17 CCScene* scene = Gameplay::scene(); | 17 CCScene* scene = FrontEnd::scene(); |
| 18 director->runWithScene(scene); | 18 director->runWithScene(scene); |
| 19 return true; | 19 return true; |
| 20 } | 20 } |
| OLD | NEW |