AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
XE3DTextureComponent.lua 文件参考

#include <XE3DTextureComponent.h>

类 XE3DTextureComponent 继承关系图:
Inheritance graph

函数

function XE3DTextureComponent new () end
 
function XE3DTextureComponent SetRenderTexture (pTexture, bReleaseOld) end
 
function XE3DTextureComponent GetAssetPath () end
 
function XE3DTextureComponent SetPinToScreen (bSet) end
 
function XE3DTextureComponent IsPinToScreen () end
 
function XE3DTextureComponent SetFaceViewportCamera (bSet) end
 
function XE3DTextureComponent IsFaceViewportCamera () end
 
function XE3DTextureComponent BuildVertices () end
 
function XE3DTextureComponent ResetAndBuildStanderData (fScale, eTexcoordOriginType) end
 
function XE3DTextureComponent IsVertiesAndIndiesValid () end
 
function XE3DTextureComponent IsDataValid () end
 
function XE3DTextureComponent UpdateRenderVertiesAndIndies (pViewport) end
 
function XE3DTextureComponent SetPivotVerticalType (eType) end
 
function XE3DTextureComponent GetPivotVerticalType () end
 
function XE3DTextureComponent GetVertexLocalLocation (nVertIndex) end
 
function XE3DTextureComponent GetVertexLocation (nVertIndex) end
 

变量

 XE3DTextureComponent = {}
 

函数说明

◆ BuildVertices()

function XE3DTextureComponent BuildVertices ( )

构建纹理的顶点坐标

返回
boolean 是否成功

◆ GetAssetPath()

function XE3DTextureComponent GetAssetPath ( )

获取资源路径

返回
string 资源路径

◆ GetPivotVerticalType()

function XE3DTextureComponent GetPivotVerticalType ( )

获取支点在竖直方向的类型

返回
number

◆ GetVertexLocalLocation()

function XE3DTextureComponent GetVertexLocalLocation ( nVertIndex  )

3D顶点相对于位置点(原点)的位置(模型坐标空间)

参数
nVertIndexnumber
返回
XVECTOR3

◆ GetVertexLocation()

function XE3DTextureComponent GetVertexLocation ( nVertIndex  )

3D顶点世界空间位置

参数
nVertIndexnumber
返回
XVECTOR3

◆ IsDataValid()

function XE3DTextureComponent IsDataValid ( )

数据是否有效,用于纹理的顶点坐标和纹理坐标构建

返回
boolean 是否有效

◆ IsFaceViewportCamera()

function XE3DTextureComponent IsFaceViewportCamera ( )

空间纹理是否面向相机

返回
boolean 为xture时为面向当前视口相机

◆ IsPinToScreen()

function XE3DTextureComponent IsPinToScreen ( )

空间纹理是否保持在相机视图空间里不变(在屏幕位置不变)

返回
boolean

◆ IsVertiesAndIndiesValid()

function XE3DTextureComponent IsVertiesAndIndiesValid ( )

顶点和索引数据是否有效

返回
boolean 是否有效

◆ new()

function XE3DTextureComponent new ( )

XE3DTextureComponent_new00

返回
XE3DTextureComponent

◆ ResetAndBuildStanderData()

function XE3DTextureComponent ResetAndBuildStanderData ( fScale  ,
eTexcoordOriginType   
)

重置并构建标准的四方网格数据,用于纹理的顶点坐标和纹理坐标构建

参数
fScalenumber
eTexcoordOriginTypenumber
返回
void

◆ SetFaceViewportCamera()

function XE3DTextureComponent SetFaceViewportCamera ( bSet  )

设置空间纹理面向相机

参数
bSetboolean
返回
void

◆ SetPinToScreen()

function XE3DTextureComponent SetPinToScreen ( bSet  )

设置空间纹理保持在相机视图空间里不变(即在屏幕位置不变)

参数
bSetboolean
返回
void

◆ SetPivotVerticalType()

function XE3DTextureComponent SetPivotVerticalType ( eType  )

设置支点在竖直方向的类型

参数
eTypenumber 类型
返回
void

◆ SetRenderTexture()

function XE3DTextureComponent SetRenderTexture ( pTexture  ,
bReleaseOld   
)

设置要渲染的2D纹理对象

参数
pTextureIXTexture 纹理实例对象
bReleaseOldboolean 是否释放旧的纹理实例
返回
void

◆ UpdateRenderVertiesAndIndies()

function XE3DTextureComponent UpdateRenderVertiesAndIndies ( pViewport  )

更新渲染帧的顶点数据和索引数据

参数
pViewportXEViewport
返回
void

变量说明

◆ XE3DTextureComponent