Created
November 5, 2009 12:42
-
-
Save paytonrules/227014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In App Delegate | |
-(void) initializeDirector | |
{ | |
[self.producer initializeDirectorWithWindow:window scene:[GameScene scene]]; | |
} | |
# In my Producer Object | |
-(void) initializeDirectorWithWindow:(UIWindow *) window scene:(Scene *) scene | |
{ | |
[[Director sharedDirector] setDeviceOrientation:CCDeviceOrientationLandscapeLeft]; | |
[[Director sharedDirector] setAnimationInterval:1.0/60]; | |
[[Director sharedDirector] setDisplayFPS:YES]; | |
// create an openGL view inside a window | |
[[Director sharedDirector] attachInView:window]; | |
[[Director sharedDirector] runWithScene: scene]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment