Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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 List of all members.

Public Member Functions

 DrawCullHandler (GraphicsStateGuardianBase *gsg)
virtual void record_object (CullableObject *object)
 This callback function is intended to be overridden by a derived class.


Static Public Member Functions

void draw (CullableObject *object, GraphicsStateGuardianBase *gsg)
 Draws the indicated CullableObject, with full support for decals if they are attached to the object.

void draw_with_decals (CullableObject *object, GraphicsStateGuardianBase *gsg)
 Draws the indicated CullableObject, assuming it has attached decals.


Private Attributes

GraphicsStateGuardianBase_gsg

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


Constructor & Destructor Documentation

DrawCullHandler::DrawCullHandler GraphicsStateGuardianBase gsg  )  [inline]
 

Definition at line 32 of file drawCullHandler.I.


Member Function Documentation

void CullHandler::draw CullableObject object,
GraphicsStateGuardianBase gsg
[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 37 of file cullHandler.I.

Referenced by CullBinUnsorted::add_object().

void CullHandler::draw_with_decals CullableObject object,
GraphicsStateGuardianBase gsg
[static, inherited]
 

Draws the indicated CullableObject, assuming it has attached decals.

Definition at line 79 of file cullHandler.cxx.

References CullableObject::_geom, CullableObject::_next, CullableObject::_state, CullableObject::_transform, NULL, and GraphicsStateGuardianBase::set_state_and_transform().

void DrawCullHandler::record_object CullableObject object  )  [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 43 of file drawCullHandler.cxx.


Member Data Documentation

GraphicsStateGuardianBase* DrawCullHandler::_gsg [private]
 

Definition at line 58 of file drawCullHandler.h.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:49:33 2003 for Panda by doxygen1.3