AR_Engine_SDK
|
Functions | |
function XECustomMeshVertex | new () end |
function XECustomPrimtiveMeshData | SetVertex (vVertices) end |
function XECustomPrimtiveMeshData | SetIndex (vIndices) end |
function XECustomPrimtiveMeshData | GetAABB () end |
function XECustomPrimtive | CreateMesh () end |
function XECustomPrimtive | RemoveMesh (pMeshData) end |
function XECustomPrimtive | GetMeshesNum () end |
function XECustomPrimtive | GetMeshByIndex (nIndex) end |
function XECustomPrimtive | SetMaterialIns (pMaterialIns, bReleaseWhenDelted) end |
function XECustomPrimtive | SetMaterialIns (strMaterialTemp, bReleaseWhenDelted) end |
function XECustomPrimtive | SetMaterialNormal () end |
function XECustomPrimtive | SetMaterialTransparent () end |
function XECustomPrimtive | GetMaterialIns () end |
function XECustomPrimtive | SetMaterialTextureByName (strParamName, strTexturePath) end |
function XECustomPrimtive | GetComponent () end |
Variables | |
XECustomMeshVertex = {} | |
function XECustomPrimtive CreateMesh | ( | ) |
创建一个Mesh,用于填充需要渲染的顶点和顶点索引数据
function XECustomPrimtiveMeshData GetAABB | ( | ) |
获取该顶点集合的AABB包围盒
function XECustomPrimtive GetComponent | ( | ) |
获取当前Primtive所依附的Component,通常情况是XECustomMeshComponent类型的Cmoponent
function XECustomPrimtive GetMaterialIns | ( | ) |
获取渲染时使用的材质实例,默认的材质实例为渲染半透明模型的材质实例
function XECustomPrimtive GetMeshByIndex | ( | nIndex | ) |
根据索引获取已经被创建的Mesh数据
nIndex | number Mesh数据的索引值,范围为0~N,N是当前Mesh总数 |
function XECustomPrimtive GetMeshesNum | ( | ) |
获取当前Mesh总数
function XECustomMeshVertex new | ( | ) |
XECustomMeshVertex_new00
function XECustomPrimtive RemoveMesh | ( | pMeshData | ) |
function XECustomPrimtiveMeshData SetIndex | ( | vIndices | ) |
设置顶点索引数据
vIndices | number[] 顶点索引数组,每个索引的类型为xuint16 |
function XECustomPrimtive SetMaterialIns | ( | pMaterialIns | , |
bReleaseWhenDelted | |||
) |
设置渲染时使用的材质实例,一般不会手动更改,默认的材质实例为渲染半透明模型的材质实例
pMaterialIns | IXMaterialInstance |
bReleaseWhenDelted | boolean 当该Primtive被销毁时,是否需要帮忙释放pMaterialIns。如果不需要释放就传xfalse,需要就传xtrue |
function XECustomPrimtive SetMaterialIns | ( | strMaterialTemp | , |
bReleaseWhenDelted | |||
) |
XECustomPrimtive_SetMaterialIns01
strMaterialTemp | string |
bReleaseWhenDelted | boolean |
function XECustomPrimtive SetMaterialNormal | ( | ) |
XECustomPrimtive_SetMaterialNormal00
function XECustomPrimtive SetMaterialTextureByName | ( | strParamName | , |
strTexturePath | |||
) |
XECustomPrimtive_SetMaterialTextureByName00
strParamName | string |
strTexturePath | string |
function XECustomPrimtive SetMaterialTransparent | ( | ) |
XECustomPrimtive_SetMaterialTransparent00
function XECustomPrimtiveMeshData SetVertex | ( | vVertices | ) |
XECustomMeshVertex = {} |