Panda3D
|
A specific kind of CullBin that does not reorder the geometry; it simply passes it through to the GSG in the same order it was encountered, which will be in scene-graph order. More...
#include "cullBinUnsorted.h"
Public Member Functions | |
CullBinUnsorted (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 objects in the bin, in the appropriate order. | |
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 does not reorder the geometry; it simply passes it through to the GSG in the same order it was encountered, which will be in scene-graph order.
Definition at line 30 of file cullBinUnsorted.h.
void CullBinUnsorted::add_object | ( | CullableObject * | object, |
Thread * | current_thread | ||
) | [virtual] |
Adds a geom, along with its associated state, to the bin for rendering.
Implements CullBin.
Definition at line 55 of file cullBinUnsorted.cxx.
void CullBinUnsorted::draw | ( | bool | force, |
Thread * | current_thread | ||
) | [virtual] |
Draws all the objects in the bin, in the appropriate order.
Implements CullBin.
Definition at line 66 of file cullBinUnsorted.cxx.
void CullBinUnsorted::fill_result_graph | ( | CullBin::ResultGraphBuilder & | builder | ) | [protected, virtual] |
Called by CullBin::make_result_graph() to add all the geoms to the special cull result scene graph.
Implements CullBin.
Definition at line 82 of file cullBinUnsorted.cxx.
References CullBin::ResultGraphBuilder::add_object().
static void CullBinUnsorted::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from CullBin.
Definition at line 55 of file cullBinUnsorted.h.
References CullBin::init_type().
CullBin * CullBinUnsorted::make_bin | ( | const string & | name, |
GraphicsStateGuardianBase * | gsg, | ||
const PStatCollector & | draw_region_pcollector | ||
) | [static] |
Factory constructor for passing to the CullBinManager.
Definition at line 43 of file cullBinUnsorted.cxx.