David Rose 20 tahun lalu
induk
melakukan
5003fb5342
3 mengubah file dengan 15 tambahan dan 6 penghapusan
  1. 0 6
      panda/src/egg/eggMorphList.h
  2. 12 0
      panda/src/egg/eggTexture.cxx
  3. 3 0
      panda/src/egg/eggTexture.h

+ 0 - 6
panda/src/egg/eggMorphList.h

@@ -89,12 +89,6 @@ private:
 #define NAME vector_LVector4f
 #include "vector_src.h"
 
-// Now export each EggMorphList.
-
-EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEGG, EXPTP_PANDAEGG, EggMorphList<LVector3d>)
-EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEGG, EXPTP_PANDAEGG, EggMorphList<LVector2d>)
-EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEGG, EXPTP_PANDAEGG, EggMorphList<LVector4f>)
-
 typedef EggMorphList<EggMorphVertex> EggMorphVertexList;
 typedef EggMorphList<EggMorphNormal> EggMorphNormalList;
 typedef EggMorphList<EggMorphTexCoord> EggMorphTexCoordList;

+ 12 - 0
panda/src/egg/eggTexture.cxx

@@ -846,6 +846,18 @@ string_tex_gen(const string &string) {
   }
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: EggTexture::as_transform
+//       Access: Public, Virtual
+//  Description: Returns this object cross-cast to an EggTransform
+//               pointer, if it inherits from EggTransform, or NULL if
+//               it does not.
+////////////////////////////////////////////////////////////////////
+EggTransform *EggTexture::
+as_transform() {
+  return this;
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: EggTexture::egg_start_parse_body
 //       Access: Protected, Virtual

+ 3 - 0
panda/src/egg/eggTexture.h

@@ -243,6 +243,9 @@ PUBLISHED:
   static CombineOperand string_combine_operand(const string &string);
   static TexGen string_tex_gen(const string &string);
 
+public:
+  virtual EggTransform *as_transform();
+
 protected:
   virtual bool egg_start_parse_body();