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

Functions

function XPerspectiveCamera new () end
 
function XPerspectiveCamera Init () end
 
function XPerspectiveCamera Init (fFov, fZNear, fZFar, fRatio) end
 
function XPerspectiveCamera Release () end
 
function XPerspectiveCamera IsPerspective () end
 
function XPerspectiveCamera IsOrthogonal () end
 
function XPerspectiveCamera SetFOV (fFOV) end
 
function XPerspectiveCamera GetFOV () end
 
function XPerspectiveCamera GetRatio () end
 
function XPerspectiveCamera SetProjectionParam (fFOV, fZNear, fZFar, fRatio) end
 
function XPerspectiveCamera GetProjectionParam (pvFOV, pfZNear, pfZFar, pfRatio) end
 
function XPerspectiveCamera GetProjectionParam () end
 

Variables

 XPerspectiveCamera = {}
 

Function Documentation

◆ GetFOV()

function XPerspectiveCamera GetFOV ( )

获取当前相机的视场角

Returns
number 视场角

◆ GetProjectionParam() [1/2]

function XPerspectiveCamera GetProjectionParam ( pvFOV  ,
pfZNear  ,
pfZFar  ,
pfRatio   
)

XPerspectiveCamera_GetProjectionParam00

Parameters
pvFOVnumber
pfZNearnumber
pfZFarnumber
pfRationumber
Returns
void

◆ GetProjectionParam() [2/2]

function XPerspectiveCamera GetProjectionParam ( )

XPerspectiveCamera_GetProjectionParam01

Returns
number
number
number
number
void

◆ GetRatio()

function XPerspectiveCamera GetRatio ( )

获取当前相机视口的宽高比

Returns
number 视口的宽高比

◆ Init() [1/2]

function XPerspectiveCamera Init ( )

初始化相机

Returns
boolean 是否初始化成功.

◆ Init() [2/2]

function XPerspectiveCamera Init ( fFov  ,
fZNear  ,
fZFar  ,
fRatio   
)

XPerspectiveCamera_Init01

Parameters
fFovnumber
fZNearnumber
fZFarnumber
fRationumber
Returns
boolean

◆ IsOrthogonal()

function XPerspectiveCamera IsOrthogonal ( )

判断当前相机是否是正交投影相机

Returns
boolean 如果是,返回xtrue,否则,返回xfalse.

◆ IsPerspective()

function XPerspectiveCamera IsPerspective ( )

判断当前相机是否是透视投影相机

Returns
boolean 如果是,返回xtrue,否则,返回xfalse.

◆ new()

function XPerspectiveCamera new ( )

XPerspectiveCamera_new00

Returns
XPerspectiveCamera

◆ Release()

function XPerspectiveCamera Release ( )

释放资源

Returns
void

◆ SetFOV()

function XPerspectiveCamera SetFOV ( fFOV  )

设置当前相机的视场角

Parameters
fFOVnumber 视场角
Returns
void

◆ SetProjectionParam()

function XPerspectiveCamera SetProjectionParam ( fFOV  ,
fZNear  ,
fZFar  ,
fRatio   
)

设置当前相机的参数信息

Parameters
fFOVnumber 视场角
fZNearnumber 透视投影视椎体的近平面到相机的距离
fZFarnumber 透视投影视椎体的远平面到相机的距离
fRationumber 视口的宽高比
Returns
boolean 是否设置成功

Variable Documentation

◆ XPerspectiveCamera