Browse Source

Added default template arguments to vector and matrix types

Christophe Riccio 12 years ago
parent
commit
0a23b0a796

+ 1 - 1
glm/core/type_mat2x2.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat2x2
 	{
 		// Implementation detail

+ 1 - 1
glm/core/type_mat2x3.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat2x3
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat2x4.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat2x4
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat3x2.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat3x2
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat3x3.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat3x3
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat3x4.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat3x4
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat4x2.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat4x2
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat4x3.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat4x3
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_mat4x4.hpp

@@ -35,7 +35,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tmat4x4
 	{
 		enum ctor{_null};

+ 1 - 1
glm/core/type_vec1.hpp

@@ -36,7 +36,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tvec1
 	{
 		//////////////////////////////////////

+ 1 - 1
glm/core/type_vec2.hpp

@@ -36,7 +36,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tvec2
 	{
 		//////////////////////////////////////

+ 1 - 1
glm/core/type_vec3.hpp

@@ -36,7 +36,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tvec3
 	{	
 		//////////////////////////////////////

+ 1 - 1
glm/core/type_vec4.hpp

@@ -36,7 +36,7 @@
 namespace glm{
 namespace detail
 {
-	template <typename T, precision P>
+	template <typename T = float, precision P = defaultp>
 	struct tvec4
 	{
 		//////////////////////////////////////