AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
XAnimation.lua 文件参考

#include <XAnimation.h>

类 IXAnimationBase 继承关系图:
Inheritance graph

#include <XAnimation.h>

类 IXAnimationManager 继承关系图:
Inheritance graph

函数

function IXAnimationBase GetFilename () end
 
function IXAnimationBase GetAnimationType () end
 
function IXAnimationBase GetSampleType () end
 
function IXAnimationBase GetStartTime () end
 
function IXAnimationBase GetTimeLength () end
 
function IXAnimationManager LoadAnimation (szFile) end
 
function IXAnimationManager ReloadAnimation (szFile) end
 
function IXAnimationManager CreateAnimation (szFile, type) end
 
function IXAnimationManager ReleaseAnimation (pAsset) end
 
function IXAnimationManager IsAnimationLoaded (szFile) end
 
function IXAnimationManager EnableSimpleInterpMode (bSimpleInterpMode) end
 
function IXAnimationManager IsSimpleInterpMode () end
 

变量

 POSE_TYPE_NORMAL = 0
 
 POSE_TYPE_DIFF = 0
 
 IXAnimationBase = {}
 

函数说明

◆ CreateAnimation()

function IXAnimationManager CreateAnimation ( szFile  ,
type   
)

内存中创建动画资源

参数
szFilestring 为资源指定一个路径信息
typenumber 动画类型
返回
IXAnimationBase 动画指针

◆ EnableSimpleInterpMode()

function IXAnimationManager EnableSimpleInterpMode ( bSimpleInterpMode  )

设置是否使用动画采样的简单模式,默认使用

参数
bSimpleInterpModeboolean 是否使用简化模式
返回
void

◆ GetAnimationType()

function IXAnimationBase GetAnimationType ( )

获取动画类型

返回
number 动画类型

◆ GetFilename()

function IXAnimationBase GetFilename ( )

获取资源文件名

返回
string 资源文件名

◆ GetSampleType()

function IXAnimationBase GetSampleType ( )

获取资源中骨骼信息类型

返回
number 骨骼信息类型

◆ GetStartTime()

function IXAnimationBase GetStartTime ( )

获取动画起始时间

返回
number 动画起始时间

◆ GetTimeLength()

function IXAnimationBase GetTimeLength ( )

获取动画长度

返回
number 动画长度

◆ IsAnimationLoaded()

function IXAnimationManager IsAnimationLoaded ( szFile  )

判断动画资源是否加载成功

参数
szFilestring 要判断的动画资源文件路径名
返回
boolean 是否加载成功

◆ IsSimpleInterpMode()

function IXAnimationManager IsSimpleInterpMode ( )

设置是否使用动画采样的简单模式,默认使用

返回
boolean 是否使用简化模式

◆ LoadAnimation()

function IXAnimationManager LoadAnimation ( szFile  )

加载动画资源

参数
szFilestring 动画资源文件路径名
返回
IXAnimationBase 动画指针

◆ ReleaseAnimation()

function IXAnimationManager ReleaseAnimation ( pAsset  )

释放动画资源

参数
pAssetIXAnimationBase 动画资源指针
返回
boolean 是否释放成功

◆ ReloadAnimation()

function IXAnimationManager ReloadAnimation ( szFile  )

重新加载动画资源

参数
szFilestring 动画资源文件路径名
返回
IXAnimationBase 动画指针

变量说明

◆ IXAnimationBase

◆ POSE_TYPE_DIFF

POSE_TYPE_DIFF = 0

◆ POSE_TYPE_NORMAL

POSE_TYPE_NORMAL = 0