Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Painter Class Reference

Defines a Painter visitor used to draw a Model and its constituents on the screen. More...

#include <Painter.h>

Inheritance diagram for Painter:

List of all members.

Public Member Functions

virtual ~Painter ()
 Virtual (emtpy) destructor defined to ensure that derived classes' destructors are invoked.

virtual void paintModel (const Model &model, const Vector &eye, const Vector &light) const
 Iterate through all the Meshes of the given Model and paintMesh them.

virtual void paintMesh (const Mesh &mesh, const Vector &eye, const Vector &light) const
 Iterate through all the Triangles of the given Mesh and paintTriangle them.

virtual void paintTriangle (const Triangle &triangle, const Vector &eye, const Vector &light) const
 Iterate through all the Vertices of the given Triangle and render them.


Detailed Description

Defines a Painter visitor used to draw a Model and its constituents on the screen.


Member Function Documentation

void Painter::paintMesh const Mesh mesh,
const Vector eye,
const Vector light
const [virtual]
 

Iterate through all the Triangles of the given Mesh and paintTriangle them.

The rendering is "flat", using the material color and detail texture (if any).

void Painter::paintTriangle const Triangle triangle,
const Vector eye,
const Vector light
const [virtual]
 

Iterate through all the Vertices of the given Triangle and render them.

The rendering is "flat", using the material color and detail texture (if any).


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 23:40:58 2003 for Shadow by doxygen 1.3.2