37 return _is_registered;
57 return get_registry()->register_munger(munger, current_thread);
68 get_registry()->unregister_mungers_for_gsg(gsg);
83 munge_format(const GeomVertexFormat *format,
88 return ((
GeomMunger *)
this)->do_munge_format(format, animation);
102 return ((
GeomMunger *)
this)->munge_data_impl(data);
116 premunge_format(const GeomVertexFormat *format)
const {
117 return ((
GeomMunger *)
this)->do_premunge_format(format);
132 return ((
GeomMunger *)
this)->premunge_data_impl(data);
149 INLINE
void GeomMunger::
151 ((
GeomMunger *)
this)->premunge_geom_impl(geom, data);
167 if (type != other_type) {
172 return compare_to_impl(&other);
191 if (type != other_type) {
196 return geom_compare_to_impl(&other);
211 INLINE
void GeomMunger::
212 unregister_myself() {
214 get_registry()->unregister_munger(
this);
223 INLINE GeomMunger::Registry *GeomMunger::
225 if (_registry == (Registry *)NULL) {
int get_index() const
Returns the integer index associated with this TypeHandle.
This object describes how the vertex animation, if any, represented in a GeomVertexData is encoded...
Objects of this class are used to convert vertex data from a Geom into a format suitable for passing ...
static void unregister_mungers_for_gsg(GraphicsStateGuardianBase *gsg)
Removes all the mungers from the registry that are associated with the indicated GSG.
int compare_to(const GeomMunger &other) const
Provides an arbitrary ordering among all unique GeomMungers, so we can store the essentially differen...
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
bool is_registered() const
Returns true if this munger has been registered, false if it has not.
int geom_compare_to(const GeomMunger &other) const
Compares two GeomMungers, considering only whether they would produce a different answer to munge_for...
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.
GraphicsStateGuardianBase * get_gsg() const
Returns a pointer to the GSG that created this munger.