Panda3D
|
This special kind of CullHandler immediately draws its contents as soon as it receives them. More...
#include "drawCullHandler.h"
Public Member Functions | |
DrawCullHandler (GraphicsStateGuardianBase *gsg) | |
virtual void | end_traverse () |
This callback function is intended to be overridden by a derived class. | |
virtual void | record_object (CullableObject *object, const CullTraverser *traverser) |
This callback function is intended to be overridden by a derived class. | |
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. |
This special kind of CullHandler immediately draws its contents as soon as it receives them.
This draws geometry immediately as it is encountered in the scene graph by cull, mixing the draw and cull traversals into one traversal, and prohibiting state sorting. However, it has somewhat lower overhead than separating out draw and cull, if state sorting and multiprocessing are not required.
Definition at line 34 of file drawCullHandler.h.
void CullHandler::draw | ( | CullableObject * | object, |
GraphicsStateGuardianBase * | gsg, | ||
bool | force, | ||
Thread * | current_thread | ||
) | [inline, static, inherited] |
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 24 of file cullHandler.I.
Referenced by record_object().
void CullHandler::end_traverse | ( | ) | [virtual, inherited] |
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 66 of file cullHandler.cxx.
Referenced by CullTraverser::end_traverse().
void DrawCullHandler::record_object | ( | CullableObject * | object, |
const CullTraverser * | traverser | ||
) | [virtual] |
This callback function is intended to be overridden by a derived class.
This is called as each Geom is discovered by the CullTraverser.
Reimplemented from CullHandler.
Definition at line 32 of file drawCullHandler.cxx.
References CullHandler::draw(), CullTraverser::get_current_thread(), and CullableObject::munge_geom().