Public Member Functions

glut::Material Class Reference
[Wavepacket Glut Library Wrapper]

A Material is anything that needs to be set up prior to drawing, and possibly requiring some cleanup afterwards. More...

#include <material.h>

Inheritance diagram for glut::Material:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Material (void) throw ()
virtual bool hasTexture (void) const throw ()
 does this material include a texture?
virtual void prepare (void)
 this is called right before polygons needing the material are drawn
virtual void cleanup (void) throw ()
 this is called after polygons have been drawn.

Detailed Description

A Material is anything that needs to be set up prior to drawing, and possibly requiring some cleanup afterwards.

This includes setup such as texture binding etc. This is a non functional base class for others to inherit from.

Definition at line 51 of file material.h.


Constructor & Destructor Documentation

glut::Material::~Material ( void   )  throw () [virtual]

Definition at line 40 of file material.cpp.


Member Function Documentation

bool glut::Material::hasTexture ( void   )  const throw () [virtual]

does this material include a texture?

Definition at line 46 of file material.cpp.

void glut::Material::prepare ( void   )  [virtual]

this is called right before polygons needing the material are drawn

Definition at line 59 of file material.cpp.

void glut::Material::cleanup ( void   )  throw () [virtual]

this is called after polygons have been drawn.

Not all material objects need cleanup, but this hook is here for those that do. Note that any cleanup is not allowed to throw.

Definition at line 69 of file material.cpp.


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