mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
dx uses ColorMunger
This commit is contained in:
parent
c32abac2b1
commit
08a1d4227f
@ -24,6 +24,6 @@
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE DXGeomMunger8::
|
||||
DXGeomMunger8(GraphicsStateGuardian *gsg, const RenderState *state) :
|
||||
qpGeomMunger(gsg, state)
|
||||
ColorMunger(gsg, state, 1, qpGeomVertexDataType::NT_packed_argb)
|
||||
{
|
||||
}
|
||||
|
@ -94,5 +94,5 @@ int DXGeomMunger8::
|
||||
compare_to_impl(const qpGeomMunger *other) const {
|
||||
// const DXGeomMunger8 *om = DCAST(DXGeomMunger8, other);
|
||||
|
||||
return 0;
|
||||
return ColorMunger::compare_to_impl(other);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define DXGEOMMUNGER8_H
|
||||
|
||||
#include "pandabase.h"
|
||||
#include "qpgeomMunger.h"
|
||||
#include "colorMunger.h"
|
||||
#include "graphicsStateGuardian.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -31,7 +31,7 @@
|
||||
// and that all relevant components are packed into a
|
||||
// single array, in the correct order.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDADX DXGeomMunger8 : public qpGeomMunger {
|
||||
class EXPCL_PANDADX DXGeomMunger8 : public ColorMunger {
|
||||
public:
|
||||
INLINE DXGeomMunger8(GraphicsStateGuardian *gsg, const RenderState *state);
|
||||
|
||||
@ -45,9 +45,9 @@ public:
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type() {
|
||||
qpGeomMunger::init_type();
|
||||
ColorMunger::init_type();
|
||||
register_type(_type_handle, "DXGeomMunger8",
|
||||
qpGeomMunger::get_class_type());
|
||||
ColorMunger::get_class_type());
|
||||
}
|
||||
virtual TypeHandle get_type() const {
|
||||
return get_class_type();
|
||||
|
Loading…
x
Reference in New Issue
Block a user