Public Member Functions
||CullBinFrontToBack (const string &name, GraphicsStateGuardianBase *gsg, const PStatCollector &draw_region_pcollector)|
|virtual void ||add_object (CullableObject *object, Thread *current_thread)|
| ||Adds a geom, along with its associated state, to the bin for rendering. |
|virtual void ||draw (bool force, Thread *current_thread)|
| ||Draws all the geoms in the bin, in the appropriate order. |
|virtual void ||finish_cull (SceneSetup *scene_setup, Thread *current_thread)|
| ||Called after all the geoms have been added, this indicates that the cull process is finished for this frame and gives the bins a chance to do any post-processing (like sorting) before moving on to draw. |
virtual TypeHandle ||force_init_type ()|
virtual TypeHandle ||get_type () const |
Static Public Member Functions
static TypeHandle ||get_class_type ()|
|static void ||init_type ()|
| ||This function is declared non-inline to work around a compiler bug in g++ 2.96. |
|static CullBin * ||make_bin (const string &name, GraphicsStateGuardianBase *gsg, const PStatCollector &draw_region_pcollector)|
| ||Factory constructor for passing to the CullBinManager. |
Protected Member Functions
|virtual void ||fill_result_graph (ResultGraphBuilder &builder)|
| ||Called by CullBin::make_result_graph() to add all the geoms to the special cull result scene graph. |
A specific kind of CullBin that sorts geometry in order from nearest to furthest based on the center of its bounding volume.
This is useful for rendering opaque geometry, taking optimal advantage of a hierarchical Z-buffer.
Definition at line 35 of file cullBinFrontToBack.h.