![]() |
Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
|
This is the base class for all objects that can be drawn by OpenGL. More...
Public Member Functions | |
DrawableObject (glm::mat4 &_modelMatrix) | |
Constructor. More... | |
virtual | ~DrawableObject () |
Destructor. More... | |
virtual void | update (double)=0 |
Abstract update function. More... | |
virtual void | draw (glm::mat4 &_projectionMatrix)=0 |
Abstract draw function. More... | |
Protected Attributes | |
glm::mat4 | modelMatrix |
holds the current model matrix More... | |
Private Member Functions | |
DrawableObject (const DrawableObject &) | |
Hidden copy-constructor. More... | |
This is the base class for all objects that can be drawn by OpenGL.
An abstract interface for ensuring all drawable objects have update and draw functions.
Definition at line 15 of file DrawableObject.h.
DrawableObject::DrawableObject | ( | glm::mat4 & | _modelMatrix | ) |
Constructor.
[in] | _modelMatrix | is the model matrix that places the object in the world coordinate system. |
Definition at line 5 of file DrawableObject.cpp.
|
virtual |
Destructor.
Definition at line 6 of file DrawableObject.cpp.
|
private |
Hidden copy-constructor.
|
pure virtual |
Abstract draw function.
[in] | _projectionMatrix | passes the combined view and projectino matrices. |
Implemented in vis2::GeometricObjectTextured, vis2::ModelMultiTextured, vis2::GeometricObject, vis2::ModelTextured, vis2::SpinningCube, vis2::QuadTextured, and vis2::SpinningCubeTextured.
|
pure virtual |
Abstract update function.
Implemented in vis2::GeometricObjectTextured, vis2::ModelMultiTextured, vis2::GeometricObject, vis2::ModelTextured, vis2::SpinningCubeTextured, vis2::QuadTextured, and vis2::SpinningCube.
|
protected |
holds the current model matrix
Definition at line 37 of file DrawableObject.h.