Wraps a Renderer performing occlusion culling acceleration.
More...
#include <OcclusionCullRenderer.hpp>
List of all members.
Detailed Description
Wraps a Renderer performing occlusion culling acceleration.
For more information see OpenGL-Accelerated Occlusion Culling Tutorial
Constructor & Destructor Documentation
| OcclusionCullRenderer::OcclusionCullRenderer |
( |
) |
|
Member Function Documentation
Renders using the wrapped renderer but also performing occlusion culling.
Reimplemented from vl::Renderer.
| void OcclusionCullRenderer::setWrappedRenderer |
( |
Renderer * |
renderer ) |
|
The renderer to be wrapped by this occlusion culling renderer.
| const Renderer* vl::OcclusionCullRenderer::wrappedRenderer |
( |
) |
const [inline] |
The renderer to be wrapped by this occlusion culling renderer.
| Renderer* vl::OcclusionCullRenderer::wrappedRenderer |
( |
) |
[inline] |
The renderer to we wrapped by this occlusion culling renderer.
| void vl::OcclusionCullRenderer::setOcclusionThreshold |
( |
int |
threshold ) |
[inline] |
The number of pixels visible for an actor to be considered occluded (default = 0)
| int vl::OcclusionCullRenderer::occlusionThreshold |
( |
) |
const [inline] |
The number of pixels visible for an actor to be considered occluded (default = 0)
| const RenderTarget * OcclusionCullRenderer::renderTarget |
( |
) |
const [virtual] |
| RenderTarget * OcclusionCullRenderer::renderTarget |
( |
) |
[virtual] |
| int vl::OcclusionCullRenderer::statsTotalObjects |
( |
) |
const [inline] |
Returns the total number or objects candidate for rendering before occlusion culling.
| int vl::OcclusionCullRenderer::statsOccludedObjects |
( |
) |
const [inline] |
Returns the number or objects not rendered due to the occlusion culling.
| Shader* vl::OcclusionCullRenderer::occlusionShader |
( |
) |
[inline] |
The Shader used to render the bounding boxes during the occlusion culling query.
For example if you have problems with the zbuffer percision you can access the Shader to modify the polygon offset settings.
| const Shader* vl::OcclusionCullRenderer::occlusionShader |
( |
) |
const [inline] |
The Shader used to render the bounding boxes during the occlusion culling query.
For example if you have problems with the zbuffer percision you can access the Shader to modify the polygon offset settings.
| void vl::OcclusionCullRenderer::setOcclusionShader |
( |
Shader * |
occ_sh ) |
[inline] |
The Shader used to render the bounding boxes during the occlusion culling query.
For example if you have problems with the zbuffer percision you can access the Shader to modify the polygon offset settings.
| void OcclusionCullRenderer::render_pass1 |
( |
const RenderQueue * |
in_render_queue ) |
[protected] |
Retrieves the occlusion culling query results from the previous rendering frame.
| void OcclusionCullRenderer::render_pass2 |
( |
const RenderQueue * |
in_render_queue, |
|
|
Camera * |
camera |
|
) |
| [protected] |
Performs a new set of occlusion culling queries to be tested the next frame.
Member Data Documentation
The documentation for this class was generated from the following files: