Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Application Class Reference

Defines the Application we are about to run. More...

#include <Application.h>

List of all members.

Public Member Functions

 Application ()
 Default constructor, initialize application defaults.

void init (const char *modelFileName)
 Setup OpenGL state and load the Model.

const VectorgetEyePosition () const
 Retrieve the eye position.

const MatrixgetSceneMatrix () const
 Retrieve the Matrix which transforms the scene.

void setSceneMatrix (const Matrix &sceneMatrix)
 Set the Matrix which transforms the scene.

const MatrixgetModelMatrix () const
 Retrieve the Matrix which transforms the model (Model::getMatrix).

void setModelMatrix (const Matrix &modelMatrix)
 Set the Matrix which transforms the scene (Model::setMatrix).

const MatrixgetLightMatrix () const
 Retrieve the Matrix which transforms the light.

void setLightMatrix (const Matrix &lightMatrix)
 Set the Matrix which transforms the light.

ModelgetModel ()
 Retrieve the Model drawn by this Application.

void draw () const
 Draw the scene.


Private Member Functions

void drawScene () const
 Draw the scene surrounding the Model.


Private Attributes

Color m_lightAmbientColor
 The color of the ambient light.

Color m_lightDiffuseColor
 The color of the diffuse light.

Vector m_lightPosition
 The position of the diffuse light.

Vector m_eyePosition
 The position of the eye.

Matrix m_sceneMatrix
 The scene matrix.

Matrix m_lightMatrix
 The light matrix.

Model m_model
 The model to draw on the screen.


Detailed Description

Defines the Application we are about to run.


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 23:40:58 2003 for Shadow by doxygen 1.3.2