Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglDefaultLightProcessor Class Reference

#include <sglLightProcessor.hpp>

Inheritance diagram for sglDefaultLightProcessor::

sglLightProcessor sglObject List of all members.

Public Methods

 sglDefaultLightProcessor ()
virtual ~sglDefaultLightProcessor ()
virtual void reset ()
virtual void addLight (const sglMat4f &matrix, const sglLight *light)
virtual unsigned int getNumLights () const
virtual void apply ()

Detailed Description

The sglDefaultLightProcessor is the default light processor used by sglCull. It is the quickest, stupidest implementation of an sglLightProcessor. It applies the first sgl::s_max_lights it receives, in the order it received them. If the scene has many lights, this method will almost surely _not_ choose the lights that would affect the scene the most.

Definition at line 81 of file sglLightProcessor.hpp.

Constructor & Destructor Documentation

sglDefaultLightProcessor::sglDefaultLightProcessor ( ) [inline]


Definition at line 85 of file sglLightProcessor.hpp.

sglDefaultLightProcessor::~sglDefaultLightProcessor ( ) [inline, virtual]


Definition at line 88 of file sglLightProcessor.hpp.

Member Function Documentation

void sglDefaultLightProcessor::reset ( ) [inline, virtual]

Resets the processor for the next frame (e.g. clears list of lights).

Reimplemented from sglLightProcessor.

Definition at line 91 of file sglLightProcessor.hpp.

virtual void sglDefaultLightProcessor::addLight ( const sglMat4f & matrix,
const sglLight * light ) [virtual]

Add a light for the current frame.

matrix   modelview matrix to be used when applying this light
light   pointer to the new light

Reimplemented from sglLightProcessor.

unsigned int sglDefaultLightProcessor::getNumLights ( ) const [inline, virtual]

Query the number of lights collected while culling the current frame.

the number of lights collected while culling the current frame.

Reimplemented from sglLightProcessor.

Definition at line 97 of file sglLightProcessor.hpp.

virtual void sglDefaultLightProcessor::apply ( ) [virtual]

Applys the lights collected for this frame. Note: this will apply at most sgl::s_max_lights.

Reimplemented from sglLightProcessor.

The documentation for this class was generated from the following file:
Generated at Mon Jul 1 18:00:07 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001