29 return _is_registered;
44 return get_registry()->register_munger(munger, current_thread);
53 get_registry()->unregister_mungers_for_gsg(gsg);
70 return ((
GeomMunger *)
this)->do_munge_format(format, animation);
82 return ((
GeomMunger *)
this)->munge_data_impl(data);
93 return ((
GeomMunger *)
this)->do_premunge_format(format);
104 return ((
GeomMunger *)
this)->premunge_data_impl(data);
116 INLINE
void GeomMunger::
118 ((
GeomMunger *)
this)->premunge_geom_impl(geom, data);
125 INLINE
int GeomMunger::
131 if (type != other_type) {
136 return compare_to_impl(&other);
145 INLINE
int GeomMunger::
146 geom_compare_to(
const GeomMunger &other)
const {
151 if (type != other_type) {
156 return geom_compare_to_impl(&other);
168 INLINE
void GeomMunger::
169 unregister_myself() {
171 get_registry()->unregister_munger(
this);
178 INLINE GeomMunger::Registry *GeomMunger::
180 if (_registry ==
nullptr) {
Objects of this class are used to convert vertex data from a Geom into a format suitable for passing ...
GraphicsStateGuardianBase * get_gsg() const
Returns a pointer to the GSG that created this munger.
static void unregister_mungers_for_gsg(GraphicsStateGuardianBase *gsg)
Removes all the mungers from the registry that are associated with the indicated GSG.
bool is_registered() const
Returns true if this munger has been registered, false if it has not.
This object describes how the vertex animation, if any, represented in a GeomVertexData is encoded.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
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.
TypeHandle is the identifier used to differentiate C++ class types.
get_index
Returns the integer index associated with this TypeHandle.
CPT(GeomVertexFormat) GeomMunger
Given a source GeomVertexFormat, converts it if necessary to the appropriate format for rendering.
PT(GeomMunger) GeomMunger
Adds the indicated munger to the registry, if there is not an equivalent munger already there; in eit...