Om
1.0.0
A universal framework for multimedia simulation
|
A class that contains all of the data needed to perform a rendering pass for a graphics scene. More...
#include <omGraphicsRenderQueue.h>
Public Member Functions | |
RenderQueue () | |
Create a new empty render queue that is ready to be used for rendering. More... | |
void | addMesh (const MeshChunk &mesh) |
Add a new mesh to the end of the render queue. More... | |
Size | getMeshCount () const |
Return the number of meshes there are in this render queue. More... | |
const MeshChunk & | getMesh (Index meshIndex) const |
Return a reference to the mesh chunk in this render queue at the given index. More... | |
void | addDirectionalLight (const Light *newDirectionalLight) |
Add the specified directional light to this render queue. More... | |
void | addPointLight (const Light *newPointLight, const Sphere3 &boundingSphere) |
Add the specified point light to this render queue. More... | |
void | addSpotLight (const Light *newSpotLight, const BoundingCone &boundingCone) |
Add the specified spot light to this render queue. More... | |
Size | getDirectionalLightCount () const |
Return a pointer to the directional light contained in this render queue at the specified index. More... | |
const Light * | getDirectionalLight (Index index) const |
Return a pointer to the directional light contained in this render queue at the specified index. More... | |
const Light * | getSortedDirectionalLight (Index index) const |
Return a pointer to the directional light contained in this render queue at the specified sorted index. More... | |
Size | getPointLightCount () const |
Return a pointer to the point light contained in this render queue at the specified index. More... | |
const Light * | getPointLight (Index index) const |
Return a pointer to the point light contained in this render queue at the specified index. More... | |
const Light * | getSortedPointLight (Index index) const |
Return a pointer to the point light contained in this render queue at the specified sorted index. More... | |
Size | getSpotLightCount () const |
Return a pointer to the spot light contained in this render queue at the specified index. More... | |
const Light * | getSpotLight (Index index) const |
Return a pointer to the spot light contained in this render queue at the specified index. More... | |
const Light * | getSortedSpotLight (Index index) const |
Return a pointer to the spot light contained in this render queue at the specified sorted index. More... | |
void | clear () |
Clear the render queue so that it is ready for another rendering pass. More... | |
void | sortLights (const Sphere3 &detector, Size maxNumLights=Size(10)) |
Sort the lights in this render queue in decreasing order based on the intensity for the given spherical detector. More... | |
A class that contains all of the data needed to perform a rendering pass for a graphics scene.
om::graphics::shapes::RenderQueue::RenderQueue | ( | ) |
Create a new empty render queue that is ready to be used for rendering.
|
inline |
Add a new mesh to the end of the render queue.
|
inline |
Return the number of meshes there are in this render queue.
Return a reference to the mesh chunk in this render queue at the given index.
|
inline |
Add the specified directional light to this render queue.
|
inline |
Add the specified point light to this render queue.
|
inline |
Add the specified spot light to this render queue.
|
inline |
Return a pointer to the directional light contained in this render queue at the specified index.
Return a pointer to the directional light contained in this render queue at the specified index.
|
inline |
Return a pointer to the directional light contained in this render queue at the specified sorted index.
|
inline |
Return a pointer to the point light contained in this render queue at the specified index.
Return a pointer to the point light contained in this render queue at the specified index.
Return a pointer to the point light contained in this render queue at the specified sorted index.
|
inline |
Return a pointer to the spot light contained in this render queue at the specified index.
Return a pointer to the spot light contained in this render queue at the specified index.
Return a pointer to the spot light contained in this render queue at the specified sorted index.
void om::graphics::shapes::RenderQueue::clear | ( | ) |
Clear the render queue so that it is ready for another rendering pass.
void om::graphics::shapes::RenderQueue::sortLights | ( | const Sphere3 & | detector, |
Size | maxNumLights = Size(10) |
||
) |
Sort the lights in this render queue in decreasing order based on the intensity for the given spherical detector.
At most the given maximum number of lights are considered from the render queue. The lights are partially sorted by intensity at the detector in decreasing order.