Public Member Functions | Properties

CCNode(CC3Billboard) Class Reference

CCNode extension to support embedding 2D CCNodes in the 3D world. More...

#import <CC3Billboard.h>

List of all members.

Public Member Functions

(CGRect) - measureBoundingBoxInPixels

Properties

CGFloat billboard3DContentScaleFactor

Detailed Description

CCNode extension to support embedding 2D CCNodes in the 3D world.


Member Function Documentation

- (CGRect) measureBoundingBoxInPixels

Returns the bounding box of this node in pixels, measuring it if necessary.

The default behaviour for CCNode is simply to return the value of the boundingBoxInPixels property. However, some subclasses, notably CCParticleSystem and its subclasses, do not maintain a fixed bounding box boundary, and it must be measured directly from the particle vertices. Such subclasses will override this method to return a value different than the value in the boundingBoxInPixels property.

When overriding this method for a subclass, it is understood that the execution of this method may be computationally expensive. It is not the responsibility of this method to cache the returned value, or otherwise attempt to short-circuit the calculation. That is handled in the CC3Billboard.


Property Documentation

- (CGFloat) billboard3DContentScaleFactor [read, assign]

Returns a scaling factor to be applied to this node when it is set as the 2D billboard in a CC3Billboard.

The default value is 1.0, indicating no scaling will occur. Subclasses will override where necessary.


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