AR_Engine_SDK
|
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 XPerspectiveCamera GetFOV | ( | ) |
获取当前相机的视场角
function XPerspectiveCamera GetProjectionParam | ( | pvFOV | , |
pfZNear | , | ||
pfZFar | , | ||
pfRatio | |||
) |
XPerspectiveCamera_GetProjectionParam00
pvFOV | number |
pfZNear | number |
pfZFar | number |
pfRatio | number |
function XPerspectiveCamera GetProjectionParam | ( | ) |
XPerspectiveCamera_GetProjectionParam01
function XPerspectiveCamera GetRatio | ( | ) |
获取当前相机视口的宽高比
function XPerspectiveCamera Init | ( | ) |
初始化相机
function XPerspectiveCamera Init | ( | fFov | , |
fZNear | , | ||
fZFar | , | ||
fRatio | |||
) |
XPerspectiveCamera_Init01
fFov | number |
fZNear | number |
fZFar | number |
fRatio | number |
function XPerspectiveCamera IsOrthogonal | ( | ) |
判断当前相机是否是正交投影相机
function XPerspectiveCamera IsPerspective | ( | ) |
判断当前相机是否是透视投影相机
function XPerspectiveCamera new | ( | ) |
XPerspectiveCamera_new00
function XPerspectiveCamera Release | ( | ) |
释放资源
function XPerspectiveCamera SetFOV | ( | fFOV | ) |
设置当前相机的视场角
fFOV | number 视场角 |
function XPerspectiveCamera SetProjectionParam | ( | fFOV | , |
fZNear | , | ||
fZFar | , | ||
fRatio | |||
) |
设置当前相机的参数信息
fFOV | number 视场角 |
fZNear | number 透视投影视椎体的近平面到相机的距离 |
fZFar | number 透视投影视椎体的远平面到相机的距离 |
fRatio | number 视口的宽高比 |
XPerspectiveCamera = {} |