فهرست منبع

expose some global functions

David Rose 22 سال پیش
والد
کامیت
2120ffc5a5

+ 5 - 0
panda/src/linmath/lmatrix3_src.cxx

@@ -113,6 +113,11 @@ scale_shear_mat(const FLOATNAME(LVecBase3) &scale,
                                  shear._v.v._0 * scale._v.v._1, scale._v.v._1, -shear._v.v._2 * scale._v.v._1,
                                  -shear._v.v._1 * scale._v.v._2, 0.0f, scale._v.v._2);
     }
+
+  case CS_default:
+  case CS_invalid:
+    // These should not be possible.
+    break;
   }
 
   linmath_cat.error()

+ 2 - 0
panda/src/linmath/lmatrix3_src.h

@@ -233,7 +233,9 @@ INLINE_LINMATH ostream &operator << (ostream &out, const FLOATNAME(LMatrix3) &ma
   return out;
 }
 
+BEGIN_PUBLISH
 INLINE_LINMATH FLOATNAME(LMatrix3) transpose(const FLOATNAME(LMatrix3) &a);
 INLINE_LINMATH FLOATNAME(LMatrix3) invert(const FLOATNAME(LMatrix3) &a);
+END_PUBLISH
 
 #include "lmatrix3_src.I"

+ 2 - 1
panda/src/linmath/lmatrix4_src.h

@@ -228,8 +228,9 @@ INLINE_LINMATH ostream &operator << (ostream &out, const FLOATNAME(LMatrix4) &ma
   return out;
 }
 
-
+BEGIN_PUBLISH
 INLINE_LINMATH FLOATNAME(LMatrix4) transpose(const FLOATNAME(LMatrix4) &a);
 INLINE_LINMATH FLOATNAME(LMatrix4) invert(const FLOATNAME(LMatrix4) &a);
+END_PUBLISH
 
 #include "lmatrix4_src.I"

+ 1 - 2
panda/src/linmath/lquaternion_src.h

@@ -94,9 +94,8 @@ INLINE_LINMATH ostream& operator<<(ostream& os, const FLOATNAME(LQuaternion)& q)
   return os;
 }
 
-INLINE_LINMATH FLOATNAME(LQuaternion) invert(const FLOATNAME(LQuaternion) &a);
-
 BEGIN_PUBLISH
+INLINE_LINMATH FLOATNAME(LQuaternion) invert(const FLOATNAME(LQuaternion) &a);
 INLINE_LINMATH FLOATNAME(LMatrix3)
 operator * (const FLOATNAME(LMatrix3) &m, const FLOATNAME(LQuaternion) &q);
 INLINE_LINMATH FLOATNAME(LMatrix4)