Cocos2d-x  v3.15
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Skeleton3D Class Reference

Skeleton. More...

Inherits Ref.

Public Member Functions

ssize_t getBoneCount () const
 get total bone count
 
var getBoneCount ()
 get total bone count
 
local getBoneCount ()
 get total bone count
 
Bone3D * getBoneByIndex (unsigned int index) const
 get bone
 
ssize_t getRootCount () const
 get & set root bone
 
var getRootCount ()
 get & set root bone
 
local getRootCount ()
 get & set root bone
 
int getBoneIndex (Bone3D *bone) const
 get bone index
 
var getBoneIndex ( var bone)
 get bone index
 
local getBoneIndex ( local bone)
 get bone index
 
void updateBoneMatrix ()
 refresh bone world matrix
 
var updateBoneMatrix ()
 refresh bone world matrix
 
local updateBoneMatrix ()
 refresh bone world matrix
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Ref * autorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Protected Member Functions

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

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
local _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
local _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
local _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
local _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: