Cocos2d-x  v4
Skeleton3D Class Reference

Skeleton. More...

Inherits Ref.

Public Member Functions

ssize_t getBoneCount () const
 get total bone count
 
Bone3DgetBoneByIndex (unsigned int index) const
 get bone
 
ssize_t getRootCount () const
 get & set root bone
 
int getBoneIndex (Bone3D *bone) const
 get bone index
 
void updateBoneMatrix ()
 refresh bone world matrix
 
- 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 ()
 Destructor. More...
 

Static Public Member Functions

static Skeleton3Dcreate (const std::vector< NodeData * > &skeletondata)
 @lua NA
 

Protected Member Functions

void removeAllBones ()
 remove all bones
 
void addBone (Bone3D *bone)
 add bone
 
Bone3DcreateBone3D (const NodeData &nodedata)
 create Bone3D from NodeData
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 

Detailed Description

Skeleton.


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