Interactive Camera class. More...
Public Member Functions | |
| InteractiveCamera () | |
| Creates new interactive camera instance. More... | |
| override void | Initialize () |
| Sets initial View, Projection and ViewProjection matrices for the camera. More... | |
| override void | Update () |
| Updates the camera position and oriantation according to the mouse input. Updates the View matrix and the ViewProjection matrix. More... | |
Public Member Functions inherited from visLU.Camera | |
| Camera () | |
| Creates new camera instance. More... | |
Protected Member Functions | |
| override void | updateView () |
| Updates the View matrix. More... | |
Protected Member Functions inherited from visLU.Camera | |
| void | updateProjection () |
| Updates the Projection matrix. More... | |
Protected Attributes | |
| Quaternion | cameraRotation = new Quaternion(0, 0, 0, 1) |
Protected Attributes inherited from visLU.Camera | |
| Vector3 | cameraPosition |
| Vector3 | cameraTarget |
| Vector3 | upVector |
| Matrix | worldMatrix |
| Matrix | viewMatrix |
| Matrix | projectionMatrix |
| Matrix | viewProjectionMatrix |
| bool | needUpdateView |
| bool | needUpdateProjection |
| bool | needUpdateViewProjection |
| Vector3 | cameraInput |
Properties | |
| Quaternion | CameraRotation [get, set] |
| Gets and sets camera rotation. More... | |
Properties inherited from visLU.Camera | |
| Vector3 | CameraPosition [get, set] |
| Gets or sets camera position. More... | |
| Vector3 | CameraTarget [get, set] |
| Gets or sets position of the target for camera. More... | |
| Vector3 | CameraUpVector [get, set] |
| Vector3 | CameraInput [set] |
| Sets user input values for the camera position and orientation. More... | |
| bool | SetPerspectiveProjecton [set] |
| Sets the camera to perspective or orthogonal projection More... | |
| int[] | SetClientSize [set] |
| Updates the projection matrix when the application window resizes. More... | |
| Viewport | Viewport [get, set] |
| Matrix | World [get, set] |
| Sets or gets the camera matrix, default is identity. More... | |
| Matrix | View [get] |
| Gets camera view matrix. More... | |
| Matrix | Projection [get] |
| Gets camera projection matrix. More... | |
| Matrix | ViewProjection [get] |
| Gets camera viewProjectionMatrix = view matrix multiplied by projection matrix. More... | |
Interactive Camera class.
Definition at line 16 of file InteractiveCamera.cs.
| visLU.InteractiveCamera.InteractiveCamera | ( | ) |
Creates new interactive camera instance.
Definition at line 36 of file InteractiveCamera.cs.
|
virtual |
Sets initial View, Projection and ViewProjection matrices for the camera.
Reimplemented from visLU.Camera.
Definition at line 48 of file InteractiveCamera.cs.
|
virtual |
Updates the camera position and oriantation according to the mouse input. Updates the View matrix and the ViewProjection matrix.
| gameTime |
Reimplemented from visLU.Camera.
Definition at line 64 of file InteractiveCamera.cs.
|
protectedvirtual |
Updates the View matrix.
Reimplemented from visLU.Camera.
Definition at line 91 of file InteractiveCamera.cs.
|
getset |
Gets and sets camera rotation.
Definition at line 28 of file InteractiveCamera.cs.
1.8.4