![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCProtocols.h>
Public Member Functions | |
(void) | - updateProjection |
(BOOL) | - shouldAutorotateToInterfaceOrientation: |
(void) | - directorDidReshapeProjection: |
CCDirector delegate
- (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