#import <CC3PODVertexSkinning.h>
Instance Methods | |
(id) | - initFromBatchAtIndex:fromSPODMesh:forNode: |
(void) | - linkToPODNodes: |
Instance Methods inherited from CC3SkinSection | |
(void) | - addBone: |
(CC3Bone *) | - boneAt: |
(BOOL) | - containsVertexIndex: |
(id) | - copyForNode: |
(id) | - copyForNode:withZone: |
(CC3Vector) | - deformedVertexLocationAt: |
(void) | - drawVerticesOfMesh:withVisitor: |
(NSString *) | - fullDescription |
(id) | - initForNode: |
(void) | - reattachBonesFrom: |
(CC3Matrix *) | - transformMatrixForBoneAt: |
Class Methods | |
(id) | + skinSectionFromBatchAtIndex:fromSPODMesh:forNode: |
Class Methods inherited from CC3SkinSection | |
(id) | + skinSectionForNode: |
Additional Inherited Members | |
Properties inherited from CC3SkinSection | |
GLuint | boneCount |
NSArray * | bones |
BOOL | hasRigidSkeleton |
BOOL | hasSkeleton |
GLint | vertexCount |
GLint | vertexStart |
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.
- (id) initFromBatchAtIndex: | (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: | (NSArray *) | 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.
+ (id) skinSectionFromBatchAtIndex: | (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.