瀏覽代碼

dx uses ColorMunger

David Rose 21 年之前
父節點
當前提交
08a1d4227f
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      panda/src/dxgsg8/dxGeomMunger8.I
  2. 1 1
      panda/src/dxgsg8/dxGeomMunger8.cxx
  3. 4 4
      panda/src/dxgsg8/dxGeomMunger8.h

+ 1 - 1
panda/src/dxgsg8/dxGeomMunger8.I

@@ -24,6 +24,6 @@
 ////////////////////////////////////////////////////////////////////
 INLINE DXGeomMunger8::
 DXGeomMunger8(GraphicsStateGuardian *gsg, const RenderState *state) :
-  qpGeomMunger(gsg, state)
+  ColorMunger(gsg, state, 1, qpGeomVertexDataType::NT_packed_argb)
 {
 }

+ 1 - 1
panda/src/dxgsg8/dxGeomMunger8.cxx

@@ -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);
 }

+ 4 - 4
panda/src/dxgsg8/dxGeomMunger8.h

@@ -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();