AR_Engine_SDK
Functions | Variables
XInternalResource.lua File Reference
类 IXVertexIndexStatGroup 继承关系图:
Inheritance graph
类 XIndexBuffer16 继承关系图:
Inheritance graph
类 XIndexBuffer32 继承关系图:
Inheritance graph
类 XTypeVertexBuffer< T > 继承关系图:
Inheritance graph
类 XVertexElement 继承关系图:
Inheritance graph
类 XVertexDesc 继承关系图:
Inheritance graph

Functions

function XIndexBuffer16 new (bDynamic, nSize, nGrowSize) end
 
function XIndexBuffer16 Type () end
 
function XIndexBuffer16 GetResourceIdx () end
 
function XIndexBuffer16 SetResourceIdx (nIdx) end
 
function XIndexBuffer16 IsDynamic () end
 
function XIndexBuffer16 Update () end
 
function XIndexBuffer16 GetIdxNum () end
 
function XIndexBuffer16 GetData (pDestBuf) end
 
function XIndexBuffer16 GetSize () end
 
function XIndexBuffer16 GetStride () end
 
function XIndexBuffer16 SetIndexNum (nNum) end
 
function XIndexBuffer16 AddIndex (nIdx) end
 
function XIndexBuffer16 GetIndex (nIdx) end
 
function XIndexBuffer16 Flush () end
 
function XIndexBuffer16 GetIndices () end
 
function XVertexElement new () end
 
function XVertexElement new (pVertBuf, nOffset, type, usage, nUsageIdx) end
 
function XVertexElement GetVertexBuffer () end
 
function XVertexElement GetOffset () end
 
function XVertexElement GetType () end
 
function XVertexElement GetUsage () end
 
function XVertexElement GetUsageIdx () end
 
function XVertexDesc new (name) end
 
function XVertexDesc GetVertElementNum () end
 
function XVertexDesc GetVertElement (nIdx) end
 
function XVertexDesc GetName () end
 
function XVertexDesc AddVertElement (vertElement) end
 
function XVertexDesc ClearAllElements () end
 

Variables

 XIndexBuffer16 = {}
 

Function Documentation

◆ AddIndex()

function XIndexBuffer32 AddIndex ( nIdx  )

XIndexBuffer16_AddIndex00

Parameters
nIdxnumber
Returns
void

XIndexBuffer32_AddIndex00

Parameters
nIdxnumber
Returns
void

◆ AddVertElement()

function XVertexDesc AddVertElement ( vertElement  )

XVertexDesc_AddVertElement00

Parameters
vertElementXVertexElement
Returns
void

◆ ClearAllElements()

function XVertexDesc ClearAllElements ( )

XVertexDesc_ClearAllElements00

Returns
void

◆ Flush()

function XIndexBuffer32 Flush ( )

XIndexBuffer16_Flush00

Returns
void

XIndexBuffer32_Flush00

Returns
void

◆ GetData()

function XIndexBuffer32 GetData ( pDestBuf  )

XIndexBuffer16_GetData00

Parameters
pDestBufuserdata
Returns
void

XIndexBuffer32_GetData00

Parameters
pDestBufuserdata
Returns
void

◆ GetIdxNum()

function XIndexBuffer32 GetIdxNum ( )

获取资源id数目

Returns
number 资源id数目

◆ GetIndex()

function XIndexBuffer32 GetIndex ( nIdx  )

XIndexBuffer16_GetIndex00

Parameters
nIdxnumber
Returns
number

XIndexBuffer32_GetIndex00

Parameters
nIdxnumber
Returns
number

◆ GetIndices()

function XIndexBuffer32 GetIndices ( )

XIndexBuffer16_GetIndices00

Returns
userdata

XIndexBuffer16_GetIndices01

Returns
userdata

XIndexBuffer32_GetIndices00

Returns
userdata

XIndexBuffer32_GetIndices01

Returns
userdata

◆ GetName()

function XVertexDesc GetName ( )

XVertexDesc_GetName00

Returns
number

◆ GetOffset()

function XVertexElement GetOffset ( )

XVertexElement_GetOffset00

Returns
number

◆ GetResourceIdx()

function XVertexDesc GetResourceIdx ( )

获取资源id

Returns
number 资源id

◆ GetSize()

function XIndexBuffer32 GetSize ( )

获取资源数据buffer

Returns
number

◆ GetStride()

function XIndexBuffer32 GetStride ( )

XIndexBuffer16_GetStride00

Returns
number

XIndexBuffer32_GetStride00

Returns
number

◆ GetType()

function XVertexElement GetType ( )

XVertexElement_GetType00

Returns
XVertElementType

◆ GetUsage()

function XVertexElement GetUsage ( )

XVertexElement_GetUsage00

Returns
XVertElementUsage

◆ GetUsageIdx()

function XVertexElement GetUsageIdx ( )

XVertexElement_GetUsageIdx00

Returns
number

◆ GetVertElement()

function XVertexDesc GetVertElement ( nIdx  )

XVertexDesc_GetVertElement00

Parameters
nIdxnumber
Returns
IXVertexElement

◆ GetVertElementNum()

function XVertexDesc GetVertElementNum ( )

XVertexDesc_GetVertElementNum00

Returns
number

◆ GetVertexBuffer()

function XVertexElement GetVertexBuffer ( )

XVertexElement_GetVertexBuffer00

Returns
IXVertexBuffer

◆ IsDynamic()

function XVertexDesc IsDynamic ( )

判断是否是动态内存

Returns
boolean 是否是动态内存

◆ new() [1/4]

function XIndexBuffer32 new ( bDynamic  ,
nSize  ,
nGrowSize   
)

XIndexBuffer16_new00

Parameters
bDynamicboolean
nSizenumber
nGrowSizenumber
Returns
XIndexBuffer16

XIndexBuffer32_new00

Parameters
bDynamicboolean
nSizenumber
nGrowSizenumber
Returns
XIndexBuffer32

◆ new() [2/4]

function XVertexElement new ( )

XVertexElement_new00

Returns
XVertexElement

◆ new() [3/4]

function XVertexElement new ( pVertBuf  ,
nOffset  ,
type  ,
usage  ,
nUsageIdx   
)

XVertexElement_new01

Parameters
pVertBufIXVertexBuffer
nOffsetnumber
typeXVertElementType
usageXVertElementUsage
nUsageIdxnumber
Returns
XVertexElement

◆ new() [4/4]

function XVertexDesc new ( name  )

XVertexDesc_new00

Parameters
namenumber
Returns
XVertexDesc

◆ SetIndexNum()

function XIndexBuffer32 SetIndexNum ( nNum  )

XIndexBuffer16_SetIndexNum00

Parameters
nNumnumber
Returns
void

XIndexBuffer32_SetIndexNum00

Parameters
nNumnumber
Returns
void

◆ SetResourceIdx()

function XVertexDesc SetResourceIdx ( nIdx  )

设置资源id

Parameters
nIdxnumber 资源id
Returns
void

◆ Type()

function XVertexDesc Type ( )

获取内存数据类型

Returns
XResType 内存数据类型

◆ Update()

function XVertexDesc Update ( )

更新资源

Returns
void

Variable Documentation

◆ XIndexBuffer16