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

#import <CCProtocols.h>

List of all members.

Public Member Functions

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

Detailed Description

CCDirector delegate


Member Function 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: