curve of bone's position, rotation or scale
More...
#include <CCAnimationCurve.h>
|
void | evaluate (float time, float *dst, EvaluateType type) const |
| evalute value of time More...
|
|
var | evaluate ( var time, var dst, var type) |
| evalute value of time More...
|
|
local | evaluate ( local time, local dst, local type) |
| evalute value of time More...
|
|
void | setEvaluateFun (std::function< void(float time, float *dst)> fun) |
| set evaluate function, allow the user use own function More...
|
|
local | setEvaluateFun ( local time, local fun) |
| set evaluate function, allow the user use own function More...
|
|
float | getStartTime () const |
| get start time More...
|
|
float | getEndTime () const |
| get end time More...
|
|
local | getEndTime () |
| get end time More...
|
|
virtual | ~AnimationCurve () |
var | ~AnimationCurve () |
local | ~AnimationCurve () |
int | determineIndex (float time) const |
| Determine index by time. More...
|
|
var | determineIndex ( var time) |
| Determine index by time. More...
|
|
local | determineIndex ( local time) |
| Determine index by time. More...
|
|
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 () |
|
static AnimationCurve * | create (float *keytime, float *value, int count) |
| create animation curve More...
|
|
var | create ( var keytime, var value, var count) |
| create animation curve More...
|
|
local | create ( local keytime, local value, local count) |
| create animation curve More...
|
|
template<int componentSize>
class cocos2d::AnimationCurve< componentSize >
curve of bone's position, rotation or scale
static AnimationCurve* create |
( |
float * |
keytime, |
|
|
float * |
value, |
|
|
int |
count |
|
) |
| |
|
static |
var create |
( |
var |
keytime, |
|
|
var |
value, |
|
|
var |
count |
|
) |
| |
|
static |
local create |
( |
local |
keytime, |
|
|
local |
value, |
|
|
local |
count |
|
) |
| |
|
static |
int determineIndex |
( |
float |
time | ) |
const |
var determineIndex |
( |
var |
time | ) |
|
local determineIndex |
( |
local |
time | ) |
|
void evaluate |
( |
float |
time, |
|
|
float * |
dst, |
|
|
EvaluateType |
type |
|
) |
| const |
evalute value of time
- Parameters
-
time | Time to be estimated |
dst | Estimated value of that time |
type | EvaluateType |
var evaluate |
( |
var |
time, |
|
|
var |
dst, |
|
|
var |
type |
|
) |
| |
evalute value of time
- Parameters
-
time | Time to be estimated |
dst | Estimated value of that time |
type | EvaluateType |
local evaluate |
( |
local |
time, |
|
|
local |
dst, |
|
|
local |
type |
|
) |
| |
evalute value of time
- Parameters
-
time | Time to be estimated |
dst | Estimated value of that time |
type | EvaluateType |
float getEndTime |
( |
| ) |
const |
float getStartTime |
( |
| ) |
const |
void setEvaluateFun |
( |
std::function< void(float time, float *dst)> |
fun | ) |
|
set evaluate function, allow the user use own function
var setEvaluateFun |
( |
var |
fun | ) |
|
set evaluate function, allow the user use own function
local setEvaluateFun |
( |
local |
fun | ) |
|
set evaluate function, allow the user use own function
std::function<void(float time,
float* dst)> _evaluateFun |
|
protected |
The documentation for this class was generated from the following file: