Public Member Functions | Protected Member Functions | Protected Attributes | Properties

visLU.Camera Class Reference

base camera class More...

Inheritance diagram for visLU.Camera:
visLU.InteractiveCamera

List of all members.

Public Member Functions

 Camera (Game _game)
 Initializes new camera component.
override void Update (GameTime gameTime)
 Updates camera with input and updates view matrix.

Protected Member Functions

virtual void updateView ()
void updateProjection ()

Protected Attributes

Vector3 cameraPosition
Vector3 cameraTarget
Vector3 upVector
Matrix viewMatrix
Matrix projectionMatrix
Matrix viewProjectionMatrix
bool needUpdateView
bool needUpdateProjection
bool needUpdateViewProjection

Properties

Vector3 CameraPosition [get, set]
 Gets or sets camera position.
Vector3 CameraTarget [get, set]
 Gets or sets position of the target for camera.
Vector3 CameraUpVector [get, set]
 Gets or sets camera orientation / up vector.
Matrix View [get]
 Gets camera view matrix.
Matrix Projection [get]
 Gets camera projection matrix.
Matrix ViewProjection [get]
 Gets camera viewProjectionMatrix = view matrix multiplied by projection matrix.

Detailed Description

base camera class

Definition at line 16 of file Camera.cs.


Constructor & Destructor Documentation

visLU.Camera.Camera ( Game  _game )

Initializes new camera component.

Parameters:
gameGame to which attach this camera.

Definition at line 85 of file Camera.cs.


Member Function Documentation

override void visLU.Camera.Update ( GameTime  gameTime )

Updates camera with input and updates view matrix.

Parameters:
gameTime

Reimplemented in visLU.InteractiveCamera.

Definition at line 114 of file Camera.cs.

void visLU.Camera.updateProjection (  ) [protected]

Definition at line 154 of file Camera.cs.

virtual void visLU.Camera.updateView (  ) [protected, virtual]

Reimplemented in visLU.InteractiveCamera.

Definition at line 141 of file Camera.cs.


Member Data Documentation

Vector3 visLU.Camera.cameraPosition [protected]

Definition at line 23 of file Camera.cs.

Vector3 visLU.Camera.cameraTarget [protected]

Definition at line 24 of file Camera.cs.

Definition at line 44 of file Camera.cs.

bool visLU.Camera.needUpdateView [protected]

Definition at line 43 of file Camera.cs.

Definition at line 45 of file Camera.cs.

Matrix visLU.Camera.projectionMatrix [protected]

Definition at line 39 of file Camera.cs.

Vector3 visLU.Camera.upVector [protected]

Definition at line 29 of file Camera.cs.

Matrix visLU.Camera.viewMatrix [protected]

Definition at line 38 of file Camera.cs.

Definition at line 40 of file Camera.cs.


Property Documentation

Vector3 visLU.Camera.CameraPosition [get, set]

Gets or sets camera position.

Definition at line 56 of file Camera.cs.

Vector3 visLU.Camera.CameraTarget [get, set]

Gets or sets position of the target for camera.

Definition at line 60 of file Camera.cs.

Vector3 visLU.Camera.CameraUpVector [get, set]

Gets or sets camera orientation / up vector.

Definition at line 64 of file Camera.cs.

Matrix visLU.Camera.Projection [get]

Gets camera projection matrix.

Definition at line 73 of file Camera.cs.

Matrix visLU.Camera.View [get]

Gets camera view matrix.

Definition at line 69 of file Camera.cs.

Matrix visLU.Camera.ViewProjection [get]

Gets camera viewProjectionMatrix = view matrix multiplied by projection matrix.

Definition at line 77 of file Camera.cs.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties