#include <Application.h>
Public Methods | |
Application () | |
Initialize application state. | |
void | init (const char *modelFileName) |
Setup OpenGL state and load the Model. | |
const Vector & | getEyePosition () const |
Retrieve the eye position. | |
Model & | getModel () |
Retrieve the Model drawn by this Application. | |
void | draw () const |
Draw 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. | |
Model | m_model |
The Model to draw on the screen. |
|
Setup OpenGL state and load the Model.
|