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:

PainterMultipass PainterMultitexture PainterPixelShader List of all members.

Public Methods

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.


Constructor & Destructor Documentation

virtual Painter::~Painter   [inline, virtual]
 

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


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

Reimplemented in PainterMultipass, PainterMultitexture, and PainterPixelShader.

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

Reimplemented in PainterMultipass, PainterMultitexture, and PainterPixelShader.


The documentation for this class was generated from the following files:
Generated on Sat Mar 22 15:12:08 2003 for Bumpmap by doxygen1.3-rc2