AR_Engine_SDK
|
#include <XETweeny.h>
变量 | |
XETweeny = {} | |
XETweeny | def = 0 |
XETweeny | linear = 0 |
XETweeny | stepped = 0 |
XETweeny | quadraticIn = 0 |
XETweeny | quadraticOut = 0 |
XETweeny | quadraticInOut = 0 |
XETweeny | cubicIn = 0 |
XETweeny | cubicOut = 0 |
XETweeny | cubicInOut = 0 |
XETweeny | quarticIn = 0 |
XETweeny | quarticOut = 0 |
XETweeny | quarticInOut = 0 |
XETweeny | quinticIn = 0 |
XETweeny | quinticOut = 0 |
XETweeny | quinticInOut = 0 |
XETweeny | sinusoidalIn = 0 |
XETweeny | sinusoidalOut = 0 |
XETweeny | sinusoidalInOut = 0 |
XETweeny | exponentialIn = 0 |
XETweeny | exponentialOut = 0 |
XETweeny | exponentialInOut = 0 |
XETweeny | circularIn = 0 |
XETweeny | circularOut = 0 |
XETweeny | circularInOut = 0 |
XETweeny | bounceIn = 0 |
XETweeny | bounceOut = 0 |
XETweeny | bounceInOut = 0 |
XETweeny | elasticIn = 0 |
XETweeny | elasticOut = 0 |
XETweeny | elasticInOut = 0 |
XETweeny | backIn = 0 |
XETweeny | backOut = 0 |
XETweeny | backInOut = 0 |
XETweeny__TweenyHolder = {} | |
XETweeny | TweenyHolder = XETweeny__TweenyHolder |
function XETweeny__TweenyHolder AddToWorld | ( | pWorld | , |
bAddAfterActor | |||
) |
function XETweeny__TweenyHolder During | ( | nDur | ) |
function XETweeny__TweenyHolder From | ( | fVal | ) |
function XETweeny__TweenyHolder GetDuration | ( | ) |
获取tween对象的持续时间, ms
function XETweeny__TweenyHolder GetPercent | ( | ) |
获取tween对象的运行百分比
function XETweeny__TweenyHolder GetValue | ( | ) |
获取当前值
function XETweeny__TweenyHolder GetValueAtPercent | ( | fPercent | ) |
获取指定百分比处的值
fPercent | number |
function XETweeny__TweenyHolder GetValueAtTimestamp | ( | nMs | ) |
获取指定时间戳处的值
nMs | number |
function XETweeny__TweenyHolder Modify | ( | nPtIdx | , |
fNewVal | |||
) |
function XETweeny__TweenyHolder new | ( | ) |
XETweeny_TweenyHolder_new00
function XETweeny NewFromToDuringStepVia | ( | fFromVal | , |
fToVal | , | ||
nDuringMs | , | ||
eViaCurve | , | ||
funcValChanged | , | ||
funcOnValueModify | , | ||
funcStepNotify | |||
) |
@manual > 生成一个tweeny曲线,并在回调函数中进行响应 XETweeny_NewFromToDuringStepVia_manual
fFromVal | number 起始值 |
fToVal | number 结束值 |
nDuringMs | number t区间(ms) |
eViaCurve | number 缓和曲线类型,see@EasingType |
funcValChanged | std::function<void(TweenyHolder*, xfloat32 val, xint32 nDur, xfloat32 fPercent)> 响应函数 |
funcOnValueModify | std::function<xfloat32(TweenyHolder*, xint32 t, xfloat32 b, xfloat32 c, xint32 d)> 允许叠加一个对值进行二次修改的回调函数,输入参数为t,b,c,d |
funcStepNotify | std::function<xint32(TweenyHolder*)> 步进通知,为nullptr时,将按实际t区间和t步进进行响应 |
function XETweeny__TweenyHolder Release | ( | ) |
从世界中分离并释放
function XETweeny__TweenyHolder Restart | ( | ) |
重新tween物件播放状态
function XETweeny SafeRelease | ( | pHolder | ) |
> 释放生成的TweenyHolder, export for lua
pHolder | XETweeny::TweenyHolder |
function XETweeny__TweenyHolder Seek | ( | nSeekTimestamp | , |
bDispatch | |||
) |
定位tween物件到指定时间戳
nSeekTimestamp | number 定位时间戳 |
bDispatch | boolean 是否触发回调 |
function XETweeny__TweenyHolder SetDeleted | ( | ) |
标识一个tween物件为可删除状态
function XETweeny__TweenyHolder SetEasing | ( | eViaCurve | ) |
function XETweeny__TweenyHolder SetFuncOnValChanged | ( | func | ) |
@manual 设置值改变时的回调 XETweeny_TweenyHolder_SetFuncOnValChanged_manual
func | std::function<void(TweenyHolder*, xfloat32 val, xint32 nDur, xfloat32 fPercent)> |
function XETweeny__TweenyHolder SetFuncOnValModify | ( | func | ) |
@manual 设置值改变时,需要进行二次修改的回调 XETweeny_TweenyHolder_SetFuncOnValModify_manual
func | std::function<xfloat32(TweenyHolder*, xint32 t, xfloat32 b, xfloat32 c, xint32 d)> |
function XETweeny__TweenyHolder SetFuncStepNotify | ( | func | ) |
@manual 设置自动播放时,提供步进函数的回调 XETweeny_TweenyHolder_SetFuncStepNotify_manual
func | std::function<xint32(TweenyHolder*)> |
function XETweeny__TweenyHolder SetSeekPercent | ( | fPercent | , |
bDispatch | |||
) |
设置tween对象的seek百分比, 返回当前值
fPercent | number |
bDispatch | boolean |
function XETweeny__TweenyHolder Step | ( | nInterval | , |
bDispatch | |||
) |
步进并触发回调
nInterval | number |
bDispatch | boolean |
function XETweeny__TweenyHolder To | ( | fVal | ) |
XETweeny backIn = 0 |
XETweeny backInOut = 0 |
XETweeny backOut = 0 |
XETweeny bounceIn = 0 |
XETweeny bounceInOut = 0 |
XETweeny bounceOut = 0 |
XETweeny circularIn = 0 |
XETweeny circularInOut = 0 |
XETweeny circularOut = 0 |
XETweeny cubicIn = 0 |
XETweeny cubicInOut = 0 |
XETweeny cubicOut = 0 |
XETweeny def = 0 |
XETweeny elasticIn = 0 |
XETweeny elasticInOut = 0 |
XETweeny elasticOut = 0 |
XETweeny exponentialIn = 0 |
XETweeny exponentialInOut = 0 |
XETweeny exponentialOut = 0 |
XETweeny linear = 0 |
XETweeny quadraticIn = 0 |
XETweeny quadraticInOut = 0 |
XETweeny quadraticOut = 0 |
XETweeny quarticIn = 0 |
XETweeny quarticInOut = 0 |
XETweeny quarticOut = 0 |
XETweeny quinticIn = 0 |
XETweeny quinticInOut = 0 |
XETweeny quinticOut = 0 |
XETweeny sinusoidalIn = 0 |
XETweeny sinusoidalInOut = 0 |
XETweeny sinusoidalOut = 0 |
XETweeny stepped = 0 |
XETweeny TweenyHolder = XETweeny__TweenyHolder |
XETweeny = {} |