v2.0.2
Instance Methods | List of all members
CC3Node(CAFAnimation) Category Reference

#import <CC3CAFResource.h>

Instance Methods

(GLuint) - addAnimationFromCAFFile:
 
(void) - addAnimationFromCAFFile:asTrack:
 
(GLuint) - addAnimationFromCAFFile:linkedToCSFFile:
 
(void) - addAnimationFromCAFFile:linkedToCSFFile:asTrack:
 

Detailed Description

Extension category to provide support for CAF animation.

Method Documentation

- (GLuint) addAnimationFromCAFFile: (NSString *)  cafFilePath

Adds the animation contained in the specified CAF file to this node and all its descendants.

The animation is added in a new track, whose ID is returned from this method.

If the specified CAF file has already been loaded, it is retrieved from the resource cache. If the CAF file has not been loaded, it will be loaded and placed in the resource cache. However, the adding of the animation will fail, because the CAF file requires linking to an associated CSF file. Only use this method if you know that the CAF file has already been loaded and linked to a CSF file. If you are not sure, use the addAnimationFromCAFFile:linkedToCSFFile: method instead.

Extends class CC3Node.

- (void) addAnimationFromCAFFile: (NSString *)  cafFilePath
asTrack: (GLuint)  trackID 

Adds the animation contained in the specified CAF file to this node and all its descendants.

The animation is added as the specified track.

If the specified CAF file has already been loaded, it is retrieved from the resource cache. If the CAF file has not been loaded, it will be loaded and placed in the resource cache. However, the adding of the animation will fail, because the CAF file requires linking to an associated CSF file. Only use this method if you know that the CAF file has already been loaded and linked to a CSF file. If you are not sure, use the addAnimationFromCAFFile:linkedToCSFFile:asTrack: method instead.

Extends class CC3Node.

- (GLuint) addAnimationFromCAFFile: (NSString *)  cafFilePath
linkedToCSFFile: (NSString *)  csfFilePath 

Adds the animation contained in the specified CAF file to this node and all its descendants.

The animation is added in a new track, whose ID is returned from this method.

If the specified CAF file has already been loaded, it is retrieved from the resource cache. If the CAF file has not been loaded, it will be loaded from the specified CAF file, placed in the resource cache, and linked to the CSF resource loaded from the specified CSF file.

Similarly, if the CSF resource is required in order for it to be linked to a newly-loaded CAF file, and it has already been loaded, it is retrieved from the resource cache. If the CSF resource has not been loaded, it will be loaded from the specified CSF file and placed in the resource cache.

Extends class CC3Node.

- (void) addAnimationFromCAFFile: (NSString *)  cafFilePath
linkedToCSFFile: (NSString *)  csfFilePath
asTrack: (GLuint)  trackID 

Adds the animation contained in the specified CAF file, which is linked to the specified CSF file, to this node and all its descendants.

The animation is added as the specified track.

If the specified CAF file has already been loaded, it is retrieved from the resource cache. If the CAF file has not been loaded, it will be loaded from the specified CAF file, placed in the resource cache, and linked to the CSF resource loaded from the specified CSF file.

Similarly, if the CSF resource is required in order for it to be linked to a newly-loaded CAF file, and it has already been loaded, it is retrieved from the resource cache. If the CSF resource has not been loaded, it will be loaded from the specified CSF file and placed in the resource cache.

Extends class CC3Node.


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