Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
vis2::DrawableObject Class Referenceabstract

This is the base class for all objects that can be drawn by OpenGL. More...

Inheritance diagram for vis2::DrawableObject:
vis2::GeometricObject vis2::ModelMultiTextured vis2::QuadTextured vis2::GeometricObjectTextured vis2::SpinningCube vis2::ModelTextured vis2::SpinningCubeTextured

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

DrawableObject::DrawableObject ( glm::mat4 &  _modelMatrix)

Constructor.

Parameters
[in]_modelMatrixis the model matrix that places the object in the world coordinate system.

Definition at line 5 of file DrawableObject.cpp.

DrawableObject::~DrawableObject ( )
virtual

Destructor.

Definition at line 6 of file DrawableObject.cpp.

vis2::DrawableObject::DrawableObject ( const DrawableObject )
private

Hidden copy-constructor.

Member Function Documentation

virtual void vis2::DrawableObject::draw ( glm::mat4 &  _projectionMatrix)
pure virtual

Abstract draw function.

Parameters
[in]_projectionMatrixpasses the combined view and projectino matrices.

Implemented in vis2::GeometricObjectTextured, vis2::ModelMultiTextured, vis2::GeometricObject, vis2::ModelTextured, vis2::SpinningCube, vis2::QuadTextured, and vis2::SpinningCubeTextured.

virtual void vis2::DrawableObject::update ( double  )
pure virtual

Member Data Documentation

glm::mat4 vis2::DrawableObject::modelMatrix
protected

holds the current model matrix

Definition at line 37 of file DrawableObject.h.


The documentation for this class was generated from the following files: