15 #ifndef STANDARDMUNGER_H
16 #define STANDARDMUNGER_H
18 #include "pandabase.h"
19 #include "stateMunger.h"
20 #include "graphicsStateGuardian.h"
21 #include "colorAttrib.h"
22 #include "colorScaleAttrib.h"
23 #include "renderModeAttrib.h"
24 #include "pointerTo.h"
25 #include "weakPointerTo.h"
37 int num_components, NumericType numeric_type,
45 virtual int compare_to_impl(
const GeomMunger *other)
const;
49 virtual int geom_compare_to_impl(
const GeomMunger *other)
const;
52 INLINE RenderModeAttrib::Mode get_render_mode()
const;
56 NumericType _numeric_type;
61 bool _munge_color_scale;
71 static void init_type() {
72 StateMunger::init_type();
73 register_type(_type_handle,
"StandardMunger",
74 StateMunger::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
85 #include "standardMunger.I"
This is just a simple derivative of GeomMunger that adds the ability to munge states.
Objects of this class are used to convert vertex data from a Geom into a format suitable for passing ...
Performs some generic munging that is appropriate for all GSG types; for instance, applies ColorAttrib and ColorScaleAttrib to the vertices, and checks for hardware-accelerated animation capabilities.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
This is the base class for all three-component vectors and points.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend...
Specifies how polygons are to be drawn.
TypeHandle is the identifier used to differentiate C++ class types.
GraphicsStateGuardianBase * get_gsg() const
Returns a pointer to the GSG that created this munger.