AR_Engine_SDK
|
Functions | |
function XModel | Release () end |
function XModel | GetModelFile () end |
function XModel | GetSkinNum () end |
function XModel | GetVersion () end |
function XModel | GetSkin (nIndex) end |
function XModel | AddSkin (szSkinFile, bReload, szSkeletonPath) end |
function XModel | RemoveSkin (szSkinFile) end |
function XModel | BindSkeleton (pSkeleton) end |
function XModel | GetModelType () end |
function XModel | GetSkeletonFile () end |
function XModel | GetSkeleton () end |
function XModel | SkinHaveBlendShapeTargets () end |
function XModel | GetFaceNum () end |
function XModel | GetSkinIndexBySkinFileName (szSkinFile, bCmpFullPath) end |
function XModel | GetBoneOBB (nBoneIndex) end |
function XModel | Save (bRecursive) end |
function IXModelManager | Init () end |
function IXModelManager | CreateModel (szNewSkinModelFile, szSkeletonFile) end |
function IXModelManager | GetModel (szSkinModelFile, bReload) end |
function IXModelManager | GetSkin (szFileName, bReload, szSkeletonPath) end |
function IXModelManager | CreateSkin (szNewSkinFile, szSkinDatXFile, szSkeletonFile) end |
function IXModelManager | GetSkinData (szSkinDatXFileName, bReload) end |
function IXModelManager | CreateSkinData (szSkinDatXFileName, nNumLODs) end |
function IXModelManager | CreateSkinModelInstance (szSkinModelFileName) end |
function IXModelManager | ReloadSkeleton (szSkeletonFile) end |
function IXModelManager | ReloadSkinModel (szSkinModelFile) end |
function IXModelManager | ReloadSkin (szFileName) end |
function IXModelManager | ReloadSkinData (szSkinDatXFileName) end |
function IXModelManager | IsSkeletonExist (szSkeletonFile) end |
function IXModelManager | IsModelExist (szSkinModelFile) end |
function IXModelManager | IsSkinExist (szFileName) end |
function IXModelManager | IsSkinDataExist (szSkinDataFileName) end |
function IXModelManager | IsSkeletonLoaded (szSkeletonFile) end |
function IXModelManager | IsSkinModelLoaded (szSkinModelFile) end |
function IXModelManager | IsSkinLoaded (szFileName) end |
function IXModelManager | IsSkinDataLoaded (szSkinDatXFileName) end |
function IXModelManager | UpdateUpwardFromSkinData (pSkinData) end |
Variables | |
XSMT_ANIMAMODEL = 0 | |
XSMT_STATICMODEL = 0 | |
XSMT_NUM = 0 | |
XModel = {} | |
function XModel AddSkin | ( | szSkinFile | , |
bReload | , | ||
szSkeletonPath | |||
) |
给模型添加skin
szSkinFile | string skin文件路径名 |
bReload | boolean 是否重新加载 |
szSkeletonPath | string 对应的骨架路径名 |
function IXModelManager CreateModel | ( | szNewSkinModelFile | , |
szSkeletonFile | |||
) |
function IXModelManager CreateSkin | ( | szNewSkinFile | , |
szSkinDatXFile | , | ||
szSkeletonFile | |||
) |
function IXModelManager CreateSkinData | ( | szSkinDatXFileName | , |
nNumLODs | |||
) |
function IXModelManager CreateSkinModelInstance | ( | szSkinModelFileName | ) |
function XModel GetBoneOBB | ( | nBoneIndex | ) |
function XModel GetFaceNum | ( | ) |
判断模型三角形面总个数
function IXModelManager GetModel | ( | szSkinModelFile | , |
bReload | |||
) |
function XModel GetModelFile | ( | ) |
获取模型资源文件名
function XModel GetModelType | ( | ) |
获取模型类型
function XModel GetSkeletonFile | ( | ) |
获取模型骨架对象文件路径名
function IXModelManager GetSkin | ( | szFileName | , |
bReload | , | ||
szSkeletonPath | |||
) |
function IXModelManager GetSkinData | ( | szSkinDatXFileName | , |
bReload | |||
) |
function XModel GetSkinIndexBySkinFileName | ( | szSkinFile | , |
bCmpFullPath | |||
) |
根据skin名称获取skin索引
szSkinFile | string skin名称 |
bCmpFullPath | boolean 是否是全路径 |
function XModel GetSkinNum | ( | ) |
获取模型Skin总个数
function XModel GetVersion | ( | ) |
获取模型版本号
function IXModelManager Init | ( | ) |
初始化
function IXModelManager IsModelExist | ( | szSkinModelFile | ) |
判断模型是否存在(内存+硬盘)
szSkinModelFile | string |
function IXModelManager IsSkeletonExist | ( | szSkeletonFile | ) |
判断骨架是否存在(内存+硬盘)
szSkeletonFile | string |
function IXModelManager IsSkeletonLoaded | ( | szSkeletonFile | ) |
判断骨架是否加载成功
szSkeletonFile | string 骨架资源文件名 |
function IXModelManager IsSkinDataExist | ( | szSkinDataFileName | ) |
判断蒙皮数据是否存在(内存+硬盘)
szSkinDataFileName | string |
function IXModelManager IsSkinDataLoaded | ( | szSkinDatXFileName | ) |
判断蒙皮数据是否加载成功
szSkinDatXFileName | string 蒙皮数据文件名 |
function IXModelManager IsSkinExist | ( | szFileName | ) |
判断蒙皮是否存在(内存+硬盘)
szFileName | string |
function IXModelManager IsSkinLoaded | ( | szFileName | ) |
判断蒙皮是否加载成功
szFileName | string 蒙皮文件名 |
function IXModelManager IsSkinModelLoaded | ( | szSkinModelFile | ) |
判断蒙皮模型是否加载成功
szSkinModelFile | string 蒙皮模型文件名 |
function XModel Release | ( | ) |
释放模型资源
function IXModelManager ReloadSkeleton | ( | szSkeletonFile | ) |
重新加载骨架资源
szSkeletonFile | string |
function IXModelManager ReloadSkin | ( | szFileName | ) |
重新加载蒙皮
szFileName | string |
function IXModelManager ReloadSkinData | ( | szSkinDatXFileName | ) |
重新加载蒙皮数据
szSkinDatXFileName | string |
function IXModelManager ReloadSkinModel | ( | szSkinModelFile | ) |
重新加载蒙皮模型
szSkinModelFile | string |
function XModel RemoveSkin | ( | szSkinFile | ) |
移除某个skin
szSkinFile | string 要移除的skin文件路径名 |
function XModel Save | ( | bRecursive | ) |
保存模型模板信息
bRecursive | boolean 是否递归遍历 |
function XModel SkinHaveBlendShapeTargets | ( | ) |
判断是否有融合目标
function IXModelManager UpdateUpwardFromSkinData | ( | pSkinData | ) |
XModel = {} |
XSMT_ANIMAMODEL = 0 |
XSMT_NUM = 0 |
XSMT_STATICMODEL = 0 |