C#Code
C#Code
Public Member Functions | Public Attributes | Static Public Attributes | Properties
Libraries.Shaders.CameraProperty Class Reference
Inheritance diagram for Libraries.Shaders.CameraProperty:
Libraries.Shaders.BaseShaderProperty Libraries.Shaders.BaseShaderProperty

List of all members.

Public Member Functions

 CameraProperty ()
 CameraProperty (Camera3D camera, bool setView, bool setProjection, bool setPos)
override void Update (int timePassed, Effect effect)
 CameraProperty ()
 CameraProperty (Camera3D camera, bool setView, bool setProjection, bool setPos)
override void Update (int timePassed, Effect effect)

Public Attributes

Camera3D m_camera
 Camera to use.
bool m_setView
 Set the camera view matrix.
bool m_setProjection
 Set the camera projection matrix.
bool m_setPos
 Set the camera position.

Static Public Attributes

static readonly
Libraries.StringType 
s_propertyName = new Libraries.StringType("camera_prop")

Properties

bool UseViewMatrix [get, set]
bool UseProjectionMatrix [get, set]
bool UsePosition [get, set]

Detailed Description

Handles camera values like position.


Constructor & Destructor Documentation

Libraries.Shaders.CameraProperty.CameraProperty ( )

Default constructor.

Libraries.Shaders.CameraProperty.CameraProperty ( Camera3D  camera,
bool  setView,
bool  setProjection,
bool  setPos 
)

Constructor.

camera - Camera to store and take properties from.
setView - True to use the view matrix from the camera, false if not.
setProjection - True to use the projection matrix from the camera, false if not.
setPos - True to set the camera position, false if not.
Libraries.Shaders.CameraProperty.CameraProperty ( )

Default constructor.

Libraries.Shaders.CameraProperty.CameraProperty ( Camera3D  camera,
bool  setView,
bool  setProjection,
bool  setPos 
)

Constructor.

camera - Camera to store and take properties from.
setView - True to use the view matrix from the camera, false if not.
setProjection - True to use the projection matrix from the camera, false if not.
setPos - True to set the camera position, false if not.

Member Function Documentation

override void Libraries.Shaders.CameraProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.

override void Libraries.Shaders.CameraProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.


Member Data Documentation

Camera to use.

Set the camera position.

Set the camera projection matrix.

Set the camera view matrix.

static readonly Libraries StringType Libraries::Shaders.CameraProperty::s_propertyName = new Libraries.StringType("camera_prop") [static]

Property Documentation

bool Libraries::Shaders.CameraProperty::UsePosition [get, set]

Getter/Setter for if the camera position should be set. True if it should, false if not.

bool Libraries::Shaders.CameraProperty::UseProjectionMatrix [get, set]

Getter/Setter for if the view matrix should be set. True if it should, false if not.

bool Libraries::Shaders.CameraProperty::UseViewMatrix [get, set]

Getter/Setter for if the view matrix should be set. True if it should, false if not.


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