AR_Engine_SDK
Functions | Variables
XSkinData.lua File Reference
类 XSkinData 继承关系图:
Inheritance graph

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 Documentation

◆ AddRenderMesh()

function XSkinData AddRenderMesh ( pRenderMesh  ,
nLODIndex   
)

添加一个RenderMesh

Parameters
pRenderMeshXSkinData::XRenderMesh
nLODIndexnumber
Returns
void

◆ CalculateBoneOBB() [1/2]

function XSkinData__XLOD CalculateBoneOBB ( aBoneNames  ,
aBoneOBBs   
)

XSkinData_XLOD_CalculateBoneOBB00

Parameters
aBoneNamesstring[]
aBoneOBBsXCusOBB[]
Returns
void

◆ CalculateBoneOBB() [2/2]

function XSkinData__XLOD CalculateBoneOBB ( aBoneNames  )

XSkinData_XLOD_CalculateBoneOBB01

Parameters
aBoneNamesstring[]
Returns
XCusOBB[]
void

◆ CalculateBoneOBBFromSkinVB()

function XSkinData__XLOD CalculateBoneOBBFromSkinVB ( aBoneNames  ,
aBoneOBBs   
)

XSkinData_XLOD_CalculateBoneOBBFromSkinVB00

Parameters
aBoneNamesstring[]
aBoneOBBsXCusOBB[]
Returns
void

◆ CreateVertexDef()

function XSkinData__XRenderMesh CreateVertexDef ( )

创建顶点信息描述

Returns
void

◆ GetBoneNamesAndOBBs()

function XSkinData GetBoneNamesAndOBBs ( nLODIndex  )

获取指定LOD的所有骨头名称和OBB信息

Parameters
nLODIndexnumber [类型][xint32]指定LOD索引,默认为0
Returns
BoneNameAndOBB[] [类型][constXArray<BoneNameAndOBB>]获取到的指定LOD的所有骨头名称和OBB信息数组

◆ GetFileName()

function XSkinData GetFileName ( )

获取当前SkinData对应文件名称

Returns
string [类型][constxchar]对应的文件名称

◆ GetIBByMeshType()

function XSkinData GetIBByMeshType ( eMeshType  ,
nLODIndex   
)

获取指定Mesh类型和指定LOD索引对应的顶点索引buffer

Parameters
eMeshTypenumber
nLODIndexnumber
Returns
IXIndexBuffer

◆ GetInitAABB()

function XSkinData GetInitAABB ( nLODIndex  )

获取指定LOD索引的初始化AABB信息

Parameters
nLODIndexnumber
Returns
XCusAABB

◆ GetLOD()

function XSkinData GetLOD ( index  )

获取指定LOD

Parameters
indexnumber
Returns
XSkinData__XLOD

◆ GetLODNum()

function XSkinData GetLODNum ( )

获取所有LOD个数

Returns
number [类型][xint32]所有LOD个数

◆ GetRawMesh()

function XSkinData GetRawMesh ( szMeshName  ,
nLODIndex   
)

根据Mesh名称获取对应的RawMesh

Parameters
szMeshNamestring
nLODIndexnumber
Returns
XSkinData__XRawMesh XRawMesh]获取到的RawMesh指针

根据Mesh名称获取对应的RawMesh

Parameters
szMeshNamestring
nLODIndexnumber
Returns
XSkinData__XRawMesh

◆ GetRawMeshNum()

function XSkinData GetRawMeshNum ( nLODIndex  )

获取指定LOD对应的所有RawMesh个数

Parameters
nLODIndexnumber
Returns
number

◆ GetRenderMesh() [1/3]

function XSkinData GetRenderMesh ( szMeshName  ,
aOutRenderMeshes  ,
nLODIndex   
)

XSkinData_GetRenderMesh00

Parameters
szMeshNamestring
aOutRenderMeshesXRenderMesh[]
nLODIndexnumber
Returns
void

◆ GetRenderMesh() [2/3]

function XSkinData GetRenderMesh ( szMeshName  ,
nLODIndex   
)

获取指定LOD和指定RenderMesh索引的RenderMesh

Parameters
szMeshNamestring
nLODIndexnumber
Returns
XRenderMesh[]
void

◆ GetRenderMesh() [3/3]

function XSkinData GetRenderMesh ( nMeshIndex  ,
nLODIndex   
)

获取指定LOD和指定RenderMesh索引的RenderMesh

Parameters
nMeshIndexnumber
nLODIndexnumber
Returns
XSkinData__XRenderMesh

XSkinData_GetRenderMesh03

Parameters
nMeshIndexnumber
nLODIndexnumber
Returns
XSkinData__XRenderMesh

◆ GetRenderMeshNum()

function XSkinData GetRenderMeshNum ( nLODIndex  )

获取指定LOD对应的所有RenderMesh个数

Parameters
nLODIndexnumber
Returns
number

◆ GetTriVertex() [1/2]

function XSkinData__XRenderMesh GetTriVertex ( nTriIndex  ,
outVertices  ,
outIndices   
)

@manual xelua_XEngine_XSkinData_XRenderMesh_GetTriVertex_manual XSkinData_XRenderMesh_GetTriVertex_manual

Parameters
nTriIndexnumber
outVerticesXSkinMeshVertex
outIndicesnumber
Returns
boolean

◆ GetTriVertex() [2/2]

function XSkinData__XRenderMesh GetTriVertex ( nTriIndex  )

@manual xelua_XEngine_XSkinData_XRenderMesh_GetTriVertex_manual XSkinData_XRenderMesh_GetTriVertex_manual

Parameters
nTriIndexnumber
Returns
XSkinMeshVertex
number
boolean

◆ GetVBByMeshType()

function XSkinData GetVBByMeshType ( eMeshType  ,
nLODIndex   
)

获取指定Mesh类型和指定LOD索引对应的顶点buffer

Parameters
eMeshTypenumber
nLODIndexnumber
Returns
IXVertexBuffer

获取指定Mesh类型和指定LOD索引对应的顶点坐标buffer

Parameters
eMeshTypenumber
nLODIndexnumber
Returns
IXVertexBuffer

◆ GetVersion()

function XSkinData GetVersion ( )

获取版本号

Returns
number [类型][xint32]版本号

◆ InitVBAndIB()

function XSkinData InitVBAndIB ( eMeshType  ,
nVBSize  ,
nIBSize  ,
nLODIndex   
)

初始化顶点buffer和顶点索引buffer

Parameters
eMeshTypenumber
nVBSizenumber
nIBSizenumber
nLODIndexnumber
Returns
void

◆ new()

function XSkinData__XRenderMesh new ( )

XSkinData_XRenderMesh_new00

Returns
XSkinData__XRenderMesh

XSkinData_XLOD_new00

Returns
XSkinData__XLOD

◆ Release()

function XSkinData Release ( )

@type XCusAABB

@type number @type XRenderMesh[] @type XRawMesh[] @type BoneNameAndOBB[] @type XSkinMeshVertex[] @type number[] 释放当前SkinData中的资源等

Returns
void

◆ SaveBinary()

function XSkinData SaveBinary ( )

以2进制方式存储当前skindata信息

Returns
void

◆ SaveMeshBinary()

function XSkinData__XLOD SaveMeshBinary ( pFile  ,
nMeshIndex   
)

以2进制形式保存指定Mesh信息到文件

Parameters
pFileXFileBase
nMeshIndexnumber
Returns
void

◆ UpdateInitAABB()

function XSkinData UpdateInitAABB ( )

重新计算Skindata,以及RendeMesh的AABB

Returns
void

Variable Documentation

◆ BoneNameAndOBB

◆ boneOBB

@type XCusOBB

◆ IndexPairAndNormal

◆ normal

@type XVECTOR4

◆ nStartVertex

XSkinData__XRawMesh nStartVertex = 0

@type number

◆ nVertices

XSkinData__XRawMesh nVertices = 0

@type number

◆ strBoneName

XSkinData__BoneNameAndOBB strBoneName = ''

@type string

◆ uniqueIndex

@type number

◆ vertexIndex

@type number

◆ XMT_NUM

XSkinData XMT_NUM = 0

◆ XMT_SKIN_MESH

XSkinData XMT_SKIN_MESH = 0

◆ XMT_STATIC_MESH

XSkinData XMT_STATIC_MESH = 0

◆ XRawMesh

◆ XRenderMesh

◆ XSkinData

XSkinData = {}

◆ XSkinData__BoneNameAndOBB

◆ XSkinData__IndexPairAndNormal

◆ XSkinData__XRawMesh

◆ XSkinData__XRenderMesh