AR_Engine_SDK
|
Functions | |
function XSkinData__XRenderMesh | new () end |
function XSkinData__XRenderMesh | GetTriVertex (nTriIndex, outVertices, outIndices) end |
function XSkinData__XRenderMesh | GetTriVertex (nTriIndex) end |
function XSkinData__XRenderMesh | CreateVertexDef () end |
function XSkinData__XLOD | SaveMeshBinary (pFile, nMeshIndex) end |
function XSkinData__XLOD | CalculateBoneOBB (aBoneNames, aBoneOBBs) end |
function XSkinData__XLOD | CalculateBoneOBB (aBoneNames) end |
function XSkinData__XLOD | CalculateBoneOBBFromSkinVB (aBoneNames, aBoneOBBs) end |
function XSkinData | Release () end |
@type XCusAABB More... | |
function XSkinData | GetLODNum () end |
function XSkinData | GetLOD (index) end |
function XSkinData | GetRenderMesh (szMeshName, aOutRenderMeshes, nLODIndex) end |
function XSkinData | GetRenderMesh (szMeshName, nLODIndex) end |
function XSkinData | GetRawMesh (szMeshName, nLODIndex) end |
function XSkinData | GetVersion () end |
function XSkinData | GetRenderMeshNum (nLODIndex) end |
function XSkinData | GetRenderMesh (nMeshIndex, nLODIndex) end |
function XSkinData | GetRawMeshNum (nLODIndex) end |
function XSkinData | GetInitAABB (nLODIndex) end |
function XSkinData | GetFileName () end |
function XSkinData | GetVBByMeshType (eMeshType, nLODIndex) end |
function XSkinData | GetIBByMeshType (eMeshType, nLODIndex) end |
function XSkinData | SaveBinary () end |
function XSkinData | InitVBAndIB (eMeshType, nVBSize, nIBSize, nLODIndex) end |
function XSkinData | AddRenderMesh (pRenderMesh, nLODIndex) end |
function XSkinData | GetBoneNamesAndOBBs (nLODIndex) end |
function XSkinData | UpdateInitAABB () end |
Variables | |
XSkinData = {} | |
XSkinData | XMT_STATIC_MESH = 0 |
XSkinData | XMT_SKIN_MESH = 0 |
XSkinData | XMT_NUM = 0 |
XSkinData__BoneNameAndOBB = {} | |
XSkinData | BoneNameAndOBB = XSkinData__BoneNameAndOBB |
XSkinData__BoneNameAndOBB | strBoneName = '' |
@type string More... | |
XSkinData__BoneNameAndOBB | boneOBB = {} |
@type XCusOBB More... | |
XSkinData__XRawMesh = {} | |
XSkinData | XRawMesh = XSkinData__XRawMesh |
XSkinData__XRawMesh | nStartVertex = 0 |
@type number More... | |
XSkinData__XRawMesh | nVertices = 0 |
@type number More... | |
XSkinData__IndexPairAndNormal = {} | |
XSkinData | IndexPairAndNormal = XSkinData__IndexPairAndNormal |
XSkinData__IndexPairAndNormal | vertexIndex = 0 |
@type number More... | |
XSkinData__IndexPairAndNormal | uniqueIndex = 0 |
@type number More... | |
XSkinData__IndexPairAndNormal | normal = {} |
@type XVECTOR4 More... | |
XSkinData__XRenderMesh = {} | |
XSkinData | XRenderMesh = XSkinData__XRenderMesh |
function XSkinData AddRenderMesh | ( | pRenderMesh | , |
nLODIndex | |||
) |
添加一个RenderMesh
pRenderMesh | XSkinData::XRenderMesh |
nLODIndex | number |
function XSkinData__XLOD CalculateBoneOBB | ( | aBoneNames | , |
aBoneOBBs | |||
) |
function XSkinData__XLOD CalculateBoneOBB | ( | aBoneNames | ) |
function XSkinData__XLOD CalculateBoneOBBFromSkinVB | ( | aBoneNames | , |
aBoneOBBs | |||
) |
XSkinData_XLOD_CalculateBoneOBBFromSkinVB00
aBoneNames | string[] |
aBoneOBBs | XCusOBB[] |
function XSkinData__XRenderMesh CreateVertexDef | ( | ) |
创建顶点信息描述
function XSkinData GetBoneNamesAndOBBs | ( | nLODIndex | ) |
获取指定LOD的所有骨头名称和OBB信息
nLODIndex | number [类型][xint32]指定LOD索引,默认为0 |
function XSkinData GetFileName | ( | ) |
获取当前SkinData对应文件名称
function XSkinData GetIBByMeshType | ( | eMeshType | , |
nLODIndex | |||
) |
获取指定Mesh类型和指定LOD索引对应的顶点索引buffer
eMeshType | number |
nLODIndex | number |
function XSkinData GetInitAABB | ( | nLODIndex | ) |
function XSkinData GetLOD | ( | index | ) |
function XSkinData GetLODNum | ( | ) |
获取所有LOD个数
function XSkinData GetRawMesh | ( | szMeshName | , |
nLODIndex | |||
) |
根据Mesh名称获取对应的RawMesh
szMeshName | string |
nLODIndex | number |
根据Mesh名称获取对应的RawMesh
szMeshName | string |
nLODIndex | number |
function XSkinData GetRawMeshNum | ( | nLODIndex | ) |
获取指定LOD对应的所有RawMesh个数
nLODIndex | number |
function XSkinData GetRenderMesh | ( | szMeshName | , |
aOutRenderMeshes | , | ||
nLODIndex | |||
) |
XSkinData_GetRenderMesh00
szMeshName | string |
aOutRenderMeshes | XRenderMesh[] |
nLODIndex | number |
function XSkinData GetRenderMesh | ( | szMeshName | , |
nLODIndex | |||
) |
获取指定LOD和指定RenderMesh索引的RenderMesh
szMeshName | string |
nLODIndex | number |
function XSkinData GetRenderMesh | ( | nMeshIndex | , |
nLODIndex | |||
) |
获取指定LOD和指定RenderMesh索引的RenderMesh
nMeshIndex | number |
nLODIndex | number |
XSkinData_GetRenderMesh03
nMeshIndex | number |
nLODIndex | number |
function XSkinData GetRenderMeshNum | ( | nLODIndex | ) |
获取指定LOD对应的所有RenderMesh个数
nLODIndex | number |
function XSkinData__XRenderMesh GetTriVertex | ( | nTriIndex | , |
outVertices | , | ||
outIndices | |||
) |
@manual xelua_XEngine_XSkinData_XRenderMesh_GetTriVertex_manual XSkinData_XRenderMesh_GetTriVertex_manual
nTriIndex | number |
outVertices | XSkinMeshVertex |
outIndices | number |
function XSkinData__XRenderMesh GetTriVertex | ( | nTriIndex | ) |
@manual xelua_XEngine_XSkinData_XRenderMesh_GetTriVertex_manual XSkinData_XRenderMesh_GetTriVertex_manual
nTriIndex | number |
function XSkinData GetVBByMeshType | ( | eMeshType | , |
nLODIndex | |||
) |
获取指定Mesh类型和指定LOD索引对应的顶点buffer
eMeshType | number |
nLODIndex | number |
获取指定Mesh类型和指定LOD索引对应的顶点坐标buffer
eMeshType | number |
nLODIndex | number |
function XSkinData GetVersion | ( | ) |
获取版本号
function XSkinData InitVBAndIB | ( | eMeshType | , |
nVBSize | , | ||
nIBSize | , | ||
nLODIndex | |||
) |
初始化顶点buffer和顶点索引buffer
eMeshType | number |
nVBSize | number |
nIBSize | number |
nLODIndex | number |
function XSkinData__XRenderMesh new | ( | ) |
XSkinData_XRenderMesh_new00
XSkinData_XLOD_new00
function XSkinData Release | ( | ) |
@type XCusAABB
@type number @type XRenderMesh[] @type XRawMesh[] @type BoneNameAndOBB[] @type XSkinMeshVertex[] @type number[] 释放当前SkinData中的资源等
function XSkinData SaveBinary | ( | ) |
以2进制方式存储当前skindata信息
function XSkinData__XLOD SaveMeshBinary | ( | pFile | , |
nMeshIndex | |||
) |
以2进制形式保存指定Mesh信息到文件
pFile | XFileBase |
nMeshIndex | number |
function XSkinData UpdateInitAABB | ( | ) |
重新计算Skindata,以及RendeMesh的AABB
XSkinData BoneNameAndOBB = XSkinData__BoneNameAndOBB |
XSkinData__BoneNameAndOBB boneOBB = {} |
@type XCusOBB
XSkinData IndexPairAndNormal = XSkinData__IndexPairAndNormal |
XSkinData__IndexPairAndNormal normal = {} |
@type XVECTOR4
XSkinData__XRawMesh nStartVertex = 0 |
@type number
XSkinData__XRawMesh nVertices = 0 |
@type number
XSkinData__BoneNameAndOBB strBoneName = '' |
@type string
XSkinData__IndexPairAndNormal uniqueIndex = 0 |
@type number
XSkinData__IndexPairAndNormal vertexIndex = 0 |
@type number
XSkinData XMT_NUM = 0 |
XSkinData XMT_SKIN_MESH = 0 |
XSkinData XMT_STATIC_MESH = 0 |
XSkinData XRawMesh = XSkinData__XRawMesh |
XSkinData XRenderMesh = XSkinData__XRenderMesh |
XSkinData = {} |
XSkinData__XRawMesh = {} |