Public Member Functions | Static Public Member Functions | Properties

CC3PODSkinSection Class Reference

A CC3SkinSection extracted from a POD file. More...

#import <CC3PODVertexSkinning.h>

Inheritance diagram for CC3PODSkinSection:
Inheritance graph
[legend]
Collaboration diagram for CC3PODSkinSection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initAtIndex:fromSPODMesh:forNode:
(void) - linkToPODNodes:

Static Public Member Functions

(id) + boneBatchAtIndex:fromSPODMesh:forNode:

Properties

GLint boneCount
GLint * boneNodeIndices

Detailed Description

A CC3SkinSection extracted from a POD file.

Since the CC3PODSkinSection may be loaded before the corresponding skeleton, the bones to which this skin section will be attached may not exist during loading. This class keeps track of the bone node indices, and creates links to the bones once the entire POD has been loaded.


Member Function Documentation

+ (id) boneBatchAtIndex: (int)  aBatchIndex
fromSPODMesh: (PODStructPtr aSPODMesh
forNode: (CC3SkinMeshNode *)  aNode 

Allocates and initializes an autoreleased instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.

- (id) initAtIndex: (int)  aBatchIndex
fromSPODMesh: (PODStructPtr aSPODMesh
forNode: (CC3SkinMeshNode *)  aNode 

Initializes an instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.

- (void) linkToPODNodes: (CCArray *)  nodeArray

Create links to the nodes in the specified array.

This implementation iterates through the indices in the boneNodeIndices array, retrieves the CC3Bone node at each index in the specified node array, and adds that bone node to this skin section using the addBone: method.


Property Documentation

- (GLint) boneCount [read, assign]

Indicates the number of bone indices contained in the boneNodeIndices property.

- (GLint *) boneNodeIndices [read, assign]

An array of indices to bone nodes extracted from the POD file.


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