Conforms to NSObject
Declared in CCProtocols.h

Overview

CCDirector delegate

Tasks

  • – updateProjection

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

  • – shouldAutorotateToInterfaceOrientation:

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

  • – directorDidReshapeProjection:

    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

Instance Methods

directorDidReshapeProjection:

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

- (void)directorDidReshapeProjection:(CCDirector *)director

Declared In

CCProtocols.h

shouldAutorotateToInterfaceOrientation:

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

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

Declared In

CCProtocols.h

updateProjection

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

- (void)updateProjection

Declared In

CCProtocols.h