This defines the abstract interface for an object that receives Geoms identified by the CullTraverser. More...
#include "cullHandler.h"
Public Member Functions | |
virtual void | end_traverse () |
This callback function is intended to be overridden by a derived class. More... | |
virtual void | record_object (CullableObject *object, const CullTraverser *traverser) |
This callback function is intended to be overridden by a derived class. More... | |
Static Public Member Functions | |
static void | draw (CullableObject *object, GraphicsStateGuardianBase *gsg, bool force, Thread *current_thread) |
Draws the indicated CullableObject, with full support for decals if they are attached to the object. More... | |
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser.
By itself, it's not a particularly useful class; to use it, derive from it and redefine record_object().
Definition at line 28 of file cullHandler.h.
|
inlinestatic |
Draws the indicated CullableObject, with full support for decals if they are attached to the object.
The appropriate state is set on the GSG before drawing the object.
Definition at line 20 of file cullHandler.I.
Referenced by DrawCullHandler::record_object().
|
virtual |
This callback function is intended to be overridden by a derived class.
This is called at the end of the traversal.
Reimplemented in PipeOcclusionCullTraverser.
Definition at line 54 of file cullHandler.cxx.
Referenced by CullTraverser::end_traverse().
|
virtual |
This callback function is intended to be overridden by a derived class.
This is called as each Geom is discovered by the CullTraverser.
The CullHandler becomes the owner of the CullableObject pointer and is expected to delete it later.
Reimplemented in DrawCullHandler, and BinCullHandler.
Definition at line 43 of file cullHandler.cxx.
Referenced by CullTraverser::draw_bounding_volume(), PipeOcclusionCullTraverser::end_traverse(), PT(), and NodeCullCallbackData::upcall().