#include <sglLightProcessor.hpp>
Inheritance diagram for sglCountSortedLightProcessor::
Public Methods | |
sglCountSortedLightProcessor (unsigned int num_bins=10) | |
virtual | ~sglCountSortedLightProcessor () |
virtual void | reset () |
virtual void | addLight (const sglMat4f &matrix, const sglLight *light) |
virtual unsigned int | getNumLights () const |
virtual void | apply () |
Definition at line 158 of file sglLightProcessor.hpp.
|
Constructor.
|
|
Destructor.
|
|
Resets the processor for the next frame (e.g. clears list of lights).
Reimplemented from sglLightProcessor. Definition at line 171 of file sglLightProcessor.hpp. |
|
Add a light for the current frame.
Reimplemented from sglLightProcessor. |
|
Query the number of lights collected while culling the current frame.
Reimplemented from sglLightProcessor. Definition at line 181 of file sglLightProcessor.hpp. |
|
Applys the lights collected for this frame. Note: this will apply at most sgl::s_max_lights. Reimplemented from sglLightProcessor. |