C# 클래스 Fusion.Engine.Graphics.Camera

파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

Camera() 공개 메소드

public Camera ( ) : System
리턴 System

GetCameraMatrix() 공개 메소드

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

GetCameraPosition() 공개 메소드

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

GetCameraPosition4() 공개 메소드

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

GetProjectionMatrix() 공개 메소드

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

GetViewMatrix() 공개 메소드

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

SetupCamera() 공개 메소드

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.
리턴 void

SetupCameraCubeFace() 공개 메소드

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

SetupCameraFov() 공개 메소드

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
리턴 void

SetupCameraFov() 공개 메소드

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
리턴 void