Panda3D
|
This specialization on GeomMunger finesses vertices for DirectX rendering. More...
#include "dxGeomMunger8.h"
Public Member Functions | |
DXGeomMunger8 (GraphicsStateGuardian *gsg, const RenderState *state) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual void | wp_callback (void *) |
This callback is set to be made whenever the associated _texture or _tex_gen attributes are destructed, in which case the GeomMunger is invalid and should no longer be used. | |
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 Member Functions | |
virtual int | compare_to_impl (const GeomMunger *other) const |
Called to compare two GeomMungers who are known to be of the same type, for an apples-to-apples comparison. | |
virtual | CPT (GeomVertexFormat) premunge_format_impl(const GeomVertexFormat *orig) |
virtual | CPT (GeomVertexFormat) munge_format_impl(const GeomVertexFormat *orig |
virtual int | geom_compare_to_impl (const GeomMunger *other) const |
Called to compare two GeomMungers who are known to be of the same type, for an apples-to-apples comparison. | |
Protected Attributes | |
virtual const GeomVertexAnimationSpec & | animation |
This specialization on GeomMunger finesses vertices for DirectX rendering.
In particular, it makes sure colors are stored in DirectX's packed_argb format, and that all relevant components are packed into a single array, in the correct order.
Definition at line 32 of file dxGeomMunger8.h.
int DXGeomMunger8::compare_to_impl | ( | const GeomMunger * | other | ) | const [protected, virtual] |
Called to compare two GeomMungers who are known to be of the same type, for an apples-to-apples comparison.
This will never be called on two pointers of a different type.
Reimplemented from StandardMunger.
Definition at line 287 of file dxGeomMunger8.cxx.
int DXGeomMunger8::geom_compare_to_impl | ( | const GeomMunger * | other | ) | const [protected, virtual] |
Called to compare two GeomMungers who are known to be of the same type, for an apples-to-apples comparison.
This will never be called on two pointers of a different type.
Reimplemented from StandardMunger.
Definition at line 308 of file dxGeomMunger8.cxx.
static void DXGeomMunger8::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 StandardMunger.
Definition at line 66 of file dxGeomMunger8.h.
References StandardMunger::init_type().
void DXGeomMunger8::wp_callback | ( | void * | ) | [virtual] |
This callback is set to be made whenever the associated _texture or _tex_gen attributes are destructed, in which case the GeomMunger is invalid and should no longer be used.
Implements WeakPointerCallback.
Definition at line 45 of file dxGeomMunger8.cxx.
References GeomMunger::unregister_myself().