Axmol 3.0.0-89d6d9a
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.
Object * autorelease ()
 Releases the ownership sometime soon automatically.
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
uint64_t getObjectID () const noexcept
 Returns the process-local diagnostic identifier assigned at construction.
virtual ~Object ()
 Destructor.

Static Public Member Functions

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

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:
  • AnimationCurve.h