C#Code
C#Code
Public Member Functions | Protected Attributes | Properties
Libraries._3D.BaseObj3D Class Reference
Inheritance diagram for Libraries._3D.BaseObj3D:
Libraries._3D.Obj3DPoints Libraries._3D.Obj3DPoints

List of all members.

Public Member Functions

 BaseObj3D ()
 BaseObj3D (bool visible, Vector3 pos, Vector3 rot, Vector3 scale)
abstract void Update (int timePassed)
abstract void Render (GraphicsDevice device)
virtual void UpdateShader (int timePassed)
virtual void GenerateWorldTransform ()
Matrix GetWorldTransform ()
Matrix CreateWorldInverseTranspose ()
 BaseObj3D ()
 BaseObj3D (bool visible, Vector3 pos, Vector3 rot, Vector3 scale)
abstract void Update (int timePassed)
abstract void Render (GraphicsDevice device)
virtual void UpdateShader (int timePassed)
virtual void GenerateWorldTransform ()
Matrix GetWorldTransform ()

Protected Attributes

bool m_visible
 Value is true if the object should be visible, false if not.
Vector3 m_pos
 Position in world space.
Vector3 m_rot
 Rotation to apply.
Vector3 m_scale
 Scaling to apply.
Libraries.Shaders.Shader m_shader
 Shader the object will use.
Matrix m_worldTransform
 Holds the world transformation.

Properties

bool Visible [get, set]
virtual Vector3 Position [get, set]
Vector3 Rotation [get, set]
Vector3 Scale [get, set]
Libraries.Shaders.Shader Shader [get, set]

Detailed Description

Class to act as a base derived class for 3D objects.


Constructor & Destructor Documentation

Libraries._3D.BaseObj3D.BaseObj3D ( )

Default constructor.

Libraries._3D.BaseObj3D.BaseObj3D ( bool  visible,
Vector3  pos,
Vector3  rot,
Vector3  scale 
)

Constructor.

visible - True if the 3D object should be visible, false if not.
pos - Position to use.
rot - Rotation to use.
scale - Scale to use.
Libraries._3D.BaseObj3D.BaseObj3D ( )

Default constructor.

Libraries._3D.BaseObj3D.BaseObj3D ( bool  visible,
Vector3  pos,
Vector3  rot,
Vector3  scale 
)

Constructor.

visible - True if the 3D object should be visible, false if not.
pos - Position to use.
rot - Rotation to use.
scale - Scale to use.

Member Function Documentation

Matrix Libraries._3D.BaseObj3D.CreateWorldInverseTranspose ( )

Takes the world transform and transposes and inverts it. Needed for lighting. The scale is not included.

Return:
Value is the matrix.

virtual void Libraries._3D.BaseObj3D.GenerateWorldTransform ( ) [virtual]

Generate the world transform with the current properties and store.

virtual void Libraries._3D.BaseObj3D.GenerateWorldTransform ( ) [virtual]

Generate the world transform with the current properties and store.

Matrix Libraries._3D.BaseObj3D.GetWorldTransform ( )

Returns the currently stored world transformation matrix for the object.

Matrix Libraries._3D.BaseObj3D.GetWorldTransform ( )

Returns the currently stored world transformation matrix for the object.

abstract void Libraries._3D.BaseObj3D.Render ( GraphicsDevice  device) [pure virtual]

Render the object.

device - Graphics device to render with.

Implemented in Libraries._3D.Obj3DPoints, and Libraries._3D.Obj3DPoints.

abstract void Libraries._3D.BaseObj3D.Render ( GraphicsDevice  device) [pure virtual]

Render the object.

device - Graphics device to render with.

Implemented in Libraries._3D.Obj3DPoints, and Libraries._3D.Obj3DPoints.

abstract void Libraries._3D.BaseObj3D.Update ( int  timePassed) [pure virtual]

Update the object with the time passed.

timePassed - How much time to account for with the update.

Implemented in Libraries._3D.Obj3DPoints, and Libraries._3D.Obj3DPoints.

abstract void Libraries._3D.BaseObj3D.Update ( int  timePassed) [pure virtual]

Update the object with the time passed.

timePassed - How much time to account for with the update.

Implemented in Libraries._3D.Obj3DPoints, and Libraries._3D.Obj3DPoints.

virtual void Libraries._3D.BaseObj3D.UpdateShader ( int  timePassed) [virtual]

Update the shader with the current properties.

timePassed - How much time to account for with the update.
virtual void Libraries._3D.BaseObj3D.UpdateShader ( int  timePassed) [virtual]

Update the shader with the current properties.

timePassed - How much time to account for with the update.

Member Data Documentation

Vector3 Libraries::_3D.BaseObj3D::m_pos [protected]

Position in world space.

Vector3 Libraries::_3D.BaseObj3D::m_rot [protected]

Rotation to apply.

Vector3 Libraries::_3D.BaseObj3D::m_scale [protected]

Scaling to apply.

Libraries Shaders Shader Libraries::_3D.BaseObj3D::m_shader [protected]

Shader the object will use.

Value is true if the object should be visible, false if not.

Holds the world transformation.


Property Documentation

Vector3 Libraries::_3D.BaseObj3D::Position [get, set]

Getter/Setter for the model position.

Vector3 Libraries::_3D.BaseObj3D::Rotation [get, set]

Getter/Setter for the model rotation.

Vector3 Libraries::_3D.BaseObj3D::Scale [get, set]

Getter/Setter for the model scale.

Libraries Shaders Shader Libraries::_3D.BaseObj3D::Shader [get, set]

Getter/Setter for the shader to use for the object.

bool Libraries::_3D.BaseObj3D::Visible [get, set]

Getter/Setter for wether the model is visible. True if it is, false if not.


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