#include <ivf/IvfCulling.h>
Inheritance diagram for CIvfCulling:
Public Member Functions | |
CIvfCulling () | |
virtual | ~CIvfCulling () |
IvfClassInfo ("CIvfCulling", CIvfBase) | |
void | cull () |
void | setComposite (CIvfComposite *composite) |
void | setCullView (CIvfView *view) |
int | getCullCount () |
Implements a scene culling algorithm using bounding spheres. The following code example illustrates using the CIvfCulling class:
void CMyWindow::onInit() { m_culling = new CIvfCulling(); m_scene = new CIvfComposite(); m_camera = new CIvfCamera(); . . m_culling->setComposite(m_scene); m_culling->setCullView(m_camera); . . } void CMyWindow::onRender() { m_culling->cull(); m_camera->render(); m_scene->render(); }
Definition at line 68 of file IvfCulling.h.
|
CIvfCulling constructor |
|
CIvfCulling destructor |
|
Initiates the cull operation Culls the assigned composite objects against the the view frustum of the assigned view. When an object has been culled the culled flag is set to true,
|
|
Returns the number of objects culled |
|
Sets the composite to be culled (required) |
|
Sets the view used to cull the composite (required) |