Panda3D
|
This is just a simple derivative of GeomMunger that adds the ability to munge states. More...
#include "stateMunger.h"
Public Member Functions | |
StateMunger (GraphicsStateGuardianBase *gsg) | |
CPT (RenderState) munge_state(const RenderState *state) | |
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. | |
Protected Types | |
typedef pmap< WCPT(RenderState), WCPT(RenderState) > | StateMap |
Protected Member Functions | |
virtual | CPT (RenderState) munge_state_impl(const RenderState *state) |
Protected Attributes | |
StateMap | _state_map |
This is just a simple derivative of GeomMunger that adds the ability to munge states.
That functionality can't be declared in the base class, since it doesn't really know about RenderState.
Definition at line 30 of file stateMunger.h.
static void StateMunger::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 GeomMunger.
Reimplemented in StandardMunger, DXGeomMunger8, DXGeomMunger9, and TinyGeomMunger.
Definition at line 46 of file stateMunger.h.
References GeomMunger::init_type().
Referenced by StandardMunger::init_type().