C# Class Fusion.Engine.Graphics.Camera

Exibir arquivo Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Camera ( ) : System

GetCameraMatrix ( StereoEye stereoEye ) : System.Matrix

Gets camera matrix for given stereo eye.

GetCameraPosition ( StereoEye stereoEye ) : System.Vector3

Returns camera position as Vector3

GetCameraPosition4 ( StereoEye stereoEye ) : System.Vector4

Returns camera position as Vector4

GetProjectionMatrix ( StereoEye stereoEye ) : System.Matrix

Gets projection matrix for given stereo eye.

GetViewMatrix ( StereoEye stereoEye ) : System.Matrix

Gets view matrix for given stereo eye.

SetupCamera ( System.Matrix viewMatrix, float height, float width, float near, float far, float convergence, float separation ) : void

Sets camera up.

SetupCameraCubeFace ( System.Vector3 origin, CubeFace cubeFace, float near, float far ) : void

SetupCameraFov ( System.Matrix view, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void

Setups camera.

SetupCameraFov ( System.Vector3 origin, System.Vector3 target, System.Vector3 up, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void

Setups camera.

Method Details

Camera() public method

public Camera ( ) : System
return System

GetCameraMatrix() public method

Gets camera matrix for given stereo eye.
public GetCameraMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
return System.Matrix

GetCameraPosition() public method

Returns camera position as Vector3
public GetCameraPosition ( StereoEye stereoEye ) : System.Vector3
stereoEye StereoEye
return System.Vector3

GetCameraPosition4() public method

Returns camera position as Vector4
public GetCameraPosition4 ( StereoEye stereoEye ) : System.Vector4
stereoEye StereoEye
return System.Vector4

GetProjectionMatrix() public method

Gets projection matrix for given stereo eye.
public GetProjectionMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
return System.Matrix

GetViewMatrix() public method

Gets view matrix for given stereo eye.
public GetViewMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
return System.Matrix

SetupCamera() public method

Sets camera up.
public SetupCamera ( System.Matrix viewMatrix, float height, float width, float near, float far, float convergence, float separation ) : void
viewMatrix System.Matrix View matrix. The left-eye and right-eye view matricies will be constructed from this matrix.
height float Frustum with at near plane.
width float Frustum height ar near place.
near float Camera near clipping plane distance.
far float Camera far clipping plane distance.
convergence float
separation float Stereo separation or distance between eyes.
return void

SetupCameraCubeFace() public method

public SetupCameraCubeFace ( System.Vector3 origin, CubeFace cubeFace, float near, float far ) : void
origin System.Vector3
cubeFace CubeFace
near float
far float
return void

SetupCameraFov() public method

Setups camera.
public SetupCameraFov ( System.Matrix view, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void
view System.Matrix
fov float
near float
far float
convergence float
separation float
aspectRatio float
return void

SetupCameraFov() public method

Setups camera.
public SetupCameraFov ( System.Vector3 origin, System.Vector3 target, System.Vector3 up, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void
origin System.Vector3 Camera's origin
target System.Vector3 Vector directed toward the target
up System.Vector3 Camera's up vector
fov float Camera FOV in radians
near float Near Z-clipping plane distance
far float Fat Z-clipping place distance
convergence float Stereo convergence distance
separation float Stereo camera separation
aspectRatio float Viewport width divided by viewport height
return void