#include <Application.h>
Public Member Functions | |
Application () | |
Default constructor, initialize application defaults. | |
void | init (const char *modelFileName) |
Setup OpenGL state and load the Model. | |
const Vector & | getEyePosition () const |
Retrieve the eye position. | |
const Matrix & | getSceneMatrix () const |
Retrieve the Matrix which transforms the scene. | |
void | setSceneMatrix (const Matrix &sceneMatrix) |
Set the Matrix which transforms the scene. | |
const Matrix & | getModelMatrix () 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 Matrix & | getLightMatrix () const |
Retrieve the Matrix which transforms the light. | |
void | setLightMatrix (const Matrix &lightMatrix) |
Set the Matrix which transforms the light. | |
Model & | getModel () |
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. |