Inherits from CC3NodeAnimation : NSObject
Declared in CC3NodePODExtensions.h
CC3NodePODExtensions.mm

Overview

POD files can contain information to animate the nodes. A CC3PODNodeAnimation instance manages the animation of a single node. It is held by the node itself, in the animation property, and is activated when the establishAnimationFrameAt: method is invoked on the node.

Class Methods

animationFromSPODNode:withFrameCount:

Allocates and initializes an autoreleased instance to animate nodes using animation data found in the specified SPODNode structure, containing the specified number of animation frames.

+ (id)animationFromSPODNode:(PODStructPtr)pSPODNode withFrameCount:(GLuint)numFrames

Discussion

Usually it’s only worth instantiating an instance of this class if the SPODNode actually contains animation data. This can be checked with the sPODNodeDoesContainAnimation: class method.

Declared In

CC3NodePODExtensions.h

sPODNodeDoesContainAnimation:

Returns whether the specified SPODNode structure contains animation data.

+ (BOOL)sPODNodeDoesContainAnimation:(PODStructPtr)pSPODNode

Declared In

CC3NodePODExtensions.h

Instance Methods

dealloc

- (void)dealloc

initFromSPODNode:withFrameCount:

Initializes this instance to animate nodes using animation data found in the specified SPODNode structure, containing the specified number of animation frames.

- (id)initFromSPODNode:(PODStructPtr)pSPODNode withFrameCount:(GLuint)numFrames

Discussion

Usually it’s only worth instantiating an instance of this class if the SPODNode actually contains animation data. This can be checked with the sPODNodeDoesContainAnimation: class method.

Declared In

CC3NodePODExtensions.h

isAnimatingLocation

Indicates whether location animated content is available and is enabled.

- (BOOL)isAnimatingLocation

Declared In

CC3NodeAnimation.h

isAnimatingQuaternion

Indicates whether rotation quaternion animated content is available and is enabled.

- (BOOL)isAnimatingQuaternion

Declared In

CC3NodeAnimation.h

isAnimatingScale

Indicates whether scale animated content is available and is enabled.

- (BOOL)isAnimatingScale

Declared In

CC3NodeAnimation.h

locationAtFrame:

- (CC3Vector)locationAtFrame:(GLuint)frameIndex

quaternionAtFrame:

- (CC3Quaternion)quaternionAtFrame:(GLuint)frameIndex

scaleAtFrame:

- (CC3Vector)scaleAtFrame:(GLuint)frameIndex