Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
AnimationCurve< componentSize > Class Template Reference

curve of bone's position, rotation or scale More...

#include <AnimationCurve.h>

Inherits Object.

Public Member Functions

void evaluate (float time, float *dst, EvaluateType type) const
 evaluate value of time
 
void setEvaluateFun (std::function< void(float time, float *dst)> fun)
 set evaluate function, allow the user use own function
 
float getStartTime () const
 get start time
 
float getEndTime () const
 get end time
 
int determineIndex (float time) const
 Determine index by time.
 
- Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Static Public Member Functions

static AnimationCurvecreate (float *keytime, float *value, int count)
 create animation curve
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

Detailed Description

template<int componentSize>
class ax::AnimationCurve< componentSize >

curve of bone's position, rotation or scale

@lua NA

Member Function Documentation

◆ evaluate()

template<int componentSize>
void evaluate ( float time,
float * dst,
EvaluateType type ) const

evaluate value of time

Parameters
timeTime to be estimated
dstEstimated value of that time
typeEvaluateType

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