Panda3D
Public Member Functions | Static Public Member Functions | List of all members
CullHandler Class Reference

This defines the abstract interface for an object that receives Geoms identified by the CullTraverser. More...

#include "cullHandler.h"

Inheritance diagram for CullHandler:
BinCullHandler DrawCullHandler PipeOcclusionCullTraverser

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...
 

Detailed Description

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.

Member Function Documentation

◆ draw()

void CullHandler::draw ( CullableObject object,
GraphicsStateGuardianBase gsg,
bool  force,
Thread current_thread 
)
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().

◆ end_traverse()

void CullHandler::end_traverse ( )
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().

◆ record_object()

void CullHandler::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.

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().


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