This protocol adds to a CCNode the ability to be managed by a CCNodeController so that the CCNode can react dynamically to changes in the device orientation (portrait, landscape, etc), as well as to allow the CCNode to act as an overlay for the device camera, permitting "augmented reality" displays. More...
#import <CCNodeController.h>
Public Member Functions | |
(void) | - deviceOrientationDidChange: |
Properties | |
CCNodeController * | controller |
This protocol adds to a CCNode the ability to be managed by a CCNodeController so that the CCNode can react dynamically to changes in the device orientation (portrait, landscape, etc), as well as to allow the CCNode to act as an overlay for the device camera, permitting "augmented reality" displays.
- (void) deviceOrientationDidChange: | (ccDeviceOrientation) | newOrientation |
Called automatically by the controller when the orientation of the device (portrait, landscape, etc) has changed.
The CCNode may take action such as transposing its contentSize, or reorganizing its child nodes, to better fit the new screen shape.
- (CCNodeController*) controller [read, write, assign] |
The controller that is controlling this node.
This property is available to support delegation from this node. This property is set automatically when this node is attached to the controller, and should not be set by the application directly.
Reimplemented in ControllableCCLayer.