CC3PODSkinSection Class Reference
Inherits from | CC3SkinSection : NSObject |
Declared in | CC3PODVertexSkinning.h CC3PODVertexSkinning.mm |
Overview
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.
Tasks
Other Methods
-
– initFromBatchAtIndex:fromSPODMesh:forNode:
-
+ skinSectionFromBatchAtIndex:fromSPODMesh:forNode:
-
– linkToPODNodes:
Other Methods
Class Methods
skinSectionFromBatchAtIndex:fromSPODMesh:forNode:
Allocates and initializes an autoreleased instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.
+ (id)skinSectionFromBatchAtIndex:(int)aBatchIndex fromSPODMesh:(PODStructPtr)aSPODMesh forNode:(CC3SkinMeshNode *)aNode
Declared In
CC3PODVertexSkinning.h
Instance Methods
fullDescription
Returns a description of this skin section that includes a list of the bones.
- (NSString *)fullDescription
Declared In
CC3VertexSkinning.h
initFromBatchAtIndex:fromSPODMesh:forNode:
Initializes an instance from the specified POD SPODMesh structure, and that will be used by the specified skin mesh node.
- (id)initFromBatchAtIndex:(int)aBatchIndex fromSPODMesh:(PODStructPtr)aSPODMesh forNode:(CC3SkinMeshNode *)aNode
Declared In
CC3PODVertexSkinning.h
linkToPODNodes:
Create links to the nodes in the specified array.
- (void)linkToPODNodes:(NSArray *)nodeArray
Discussion
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.
Declared In
CC3PODVertexSkinning.h