瀏覽代碼

Added missing constructors

Christophe Riccio 15 年之前
父節點
當前提交
656113c508
共有 2 個文件被更改,包括 19 次插入1 次删除
  1. 1 1
      glm/core/type_mat2x4.hpp
  2. 18 0
      glm/core/type_mat3x2.inl

+ 1 - 1
glm/core/type_mat2x4.hpp

@@ -60,7 +60,7 @@ namespace glm
 			tmat2x4(tmat2x4 const & m);
 			tmat2x4(tmat2x4 const & m);
 
 
 			explicit tmat2x4(
 			explicit tmat2x4(
-				ctor Null);
+				ctor);
 			explicit tmat2x4(
 			explicit tmat2x4(
 				value_type const & s);
 				value_type const & s);
 			explicit tmat2x4(
 			explicit tmat2x4(

+ 18 - 0
glm/core/type_mat3x2.inl

@@ -58,6 +58,24 @@ namespace detail
         this->value[2] = col_type(0, 0);
         this->value[2] = col_type(0, 0);
     }
     }
 
 
+    template <typename T> 
+    inline tmat3x2<T>::tmat3x2
+	(
+		tmat3x2<T> const & m
+	)
+    {
+        this->value[0] = m.value[0];
+        this->value[1] = m.value[1];
+		this->value[2] = m.value[2];
+    }
+
+    template <typename T> 
+    inline tmat3x2<T>::tmat3x2
+	(
+		ctor
+	)
+    {}
+
     template <typename T> 
     template <typename T> 
     inline tmat3x2<T>::tmat3x2
     inline tmat3x2<T>::tmat3x2
 	(
 	(