cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<CCDirectorDelegate> Protocol Referenceabstract

#import <CCProtocols.h>

Inheritance diagram for <CCDirectorDelegate>:
Collaboration diagram for <CCDirectorDelegate>:

Instance Methods

(void) - updateProjection
 
(BOOL) - shouldAutorotateToInterfaceOrientation:
 
(void) - directorDidReshapeProjection:
 

Detailed Description

CCDirector delegate

Method Documentation

- (void) directorDidReshapeProjection: (CCDirector *)  director
optional

Called when projection is resized (due to layoutSubviews on the view). This is important to respond to in order to setup your scene with the proper dimensions (which only exist after the first call to layoutSubviews) so that you can set your scene as early as possible to avoid startup flicker

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)  interfaceOrientation
optional

Returns a Boolean value indicating whether the CCDirector supports the specified orientation. Default value is YES (supports all possible orientations)

- (void) updateProjection
optional

Called by CCDirector when the projection is updated, and "custom" projection is used


The documentation for this protocol was generated from the following file: