Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions

CullBinUnsorted Class Reference

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"

Inheritance diagram for CullBinUnsorted:
CullBin TypedReferenceCount CullBinEnums TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations