Cocos2d-x  v4
Animation3D Class Reference

static animation data, shared More...

Inherits Ref.

Classes

class  Curve
 animation curve, translation, rotation, and scale More...
 

Public Member Functions

float getDuration () const
 get duration
 
CurvegetBoneCurveByName (const std::string &name) const
 get bone curve More...
 
const std::unordered_map< std::string, Curve * > & getBoneCurves () const
 get the bone Curves set
 
- 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 Animation3Dcreate (const std::string &filename, const std::string &animationName="")
 read all animation or only the animation with given animationName? animationName == "" read the first.
 

Protected Member Functions

bool init (const Animation3DData &data)
 init Animation3D from bundle data
 
bool initWithFile (const std::string &filename, const std::string &animationName)
 init Animation3D with file name and animation name
 

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

static animation data, shared

Member Function Documentation

◆ getBoneCurveByName()

Curve* getBoneCurveByName ( const std::string &  name) const

get bone curve

@lua NA


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