Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

DXGeomMunger9 Class Reference

This specialization on GeomMunger finesses vertices for DirectX rendering. More...

#include "dxGeomMunger9.h"

Inheritance diagram for DXGeomMunger9:
StandardMunger WeakPointerCallback StateMunger GeomMunger TypedReferenceCount GeomEnums TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 DXGeomMunger9 (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

Detailed Description

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 dxGeomMunger9.h.


Member Function Documentation

int DXGeomMunger9::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 317 of file dxGeomMunger9.cxx.

int DXGeomMunger9::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 338 of file dxGeomMunger9.cxx.

static void DXGeomMunger9::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 dxGeomMunger9.h.

References StandardMunger::init_type().

void DXGeomMunger9::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 dxGeomMunger9.cxx.

References GeomMunger::unregister_myself().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations