Panda3D
Public Member Functions | List of all members
DrawCullHandler Class Reference

This special kind of CullHandler immediately draws its contents as soon as it receives them. More...

#include "drawCullHandler.h"

Inheritance diagram for DrawCullHandler:
CullHandler

Public Member Functions

 DrawCullHandler (GraphicsStateGuardianBase *gsg)
 
virtual void record_object (CullableObject *object, const CullTraverser *traverser)
 This callback function is intended to be overridden by a derived class. More...
 
- Public Member Functions inherited from CullHandler
virtual void end_traverse ()
 This callback function is intended to be overridden by a derived class. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CullHandler
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...
 

Detailed Description

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 30 of file drawCullHandler.h.

Member Function Documentation

◆ record_object()

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 28 of file drawCullHandler.cxx.

References CullHandler::draw(), CullTraverser::get_current_thread(), and CullableObject::munge_geom().


The documentation for this class was generated from the following files: