cocos2d-x  3.2alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MeshSkin Class Reference

#include <CCMeshSkin.h>

Inheritance diagram for MeshSkin:
Ref

Public Member Functions

unsigned int getBoneCount () const
void setBoneCount (int boneCount)
BonegetBoneByIndex (unsigned int index) const
BonegetBoneByName (const std::string &id) const
BonegetRootBone () const
void setRootBone (Bone *joint)
int getBoneIndex (Bone *joint) const
Vec4getMatrixPalette ()
unsigned int getMatrixPaletteSize () const
void updateBoneMatrix ()
 ~MeshSkin ()
bool initFromSkinData (const SkinData &skindata)
void removeAllBones ()
void addBone (Bone *bone)
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static MeshSkincreate (const std::string &filename, const std::string &name)

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: MeshSkin()

Protected Attributes

Vector< Bone * > _bones
Bone_rootBone
Vec4_matrixPalette
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

~MeshSkin ( )

Member Function Documentation

void addBone ( Bone bone)
static MeshSkin* create ( const std::string &  filename,
const std::string &  name 
)
static
Bone* getBoneByIndex ( unsigned int  index) const
Bone* getBoneByName ( const std::string &  id) const
unsigned int getBoneCount ( ) const
int getBoneIndex ( Bone joint) const
Vec4* getMatrixPalette ( )
unsigned int getMatrixPaletteSize ( ) const
Bone* getRootBone ( ) const
bool initFromSkinData ( const SkinData skindata)
void removeAllBones ( )
void setBoneCount ( int  boneCount)
void setRootBone ( Bone joint)
void updateBoneMatrix ( )

Member Data Documentation

Vector<Bone*> _bones
protected
Vec4* _matrixPalette
protected
Bone* _rootBone
protected

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