IDrawable Class Referenceabstract

An interface for drawable objects. More...

#include <IDrawable.h>

Inherited by Geometry, Model, and RenderQueue.

Public Member Functions

virtual  ~IDrawable ()
  Virtual destructor. More...
 
virtual void  draw (GLenum mode)=0
  Draws an object to the screen. More...
 
virtual void  drawInstance (const std::string &instanceName, GLenum mode)=0
  Draws an instance of the object to the screen. More...
 

Detailed Description

An interface for drawable objects.

Author
David Steiner

Constructor & Destructor Documentation

virtual IDrawable::~IDrawable ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

virtual void IDrawable::draw ( GLenum  mode )
pure virtual

Draws an object to the screen.

Parameters
[in] mode

Implemented in Model, RenderQueue, and Geometry.

virtual void IDrawable::drawInstance ( const std::string &  instanceName,
GLenum  mode 
)
pure virtual

Draws an instance of the object to the screen.

Parameters
[in] instanceName
[in] mode

Implemented in Model, RenderQueue, and Geometry.