Bläddra i källkod

Fixed shadows template parameter warnings

Christophe Riccio 8 år sedan
förälder
incheckning
8624e38379

+ 4 - 4
glm/detail/type_mat2x2.hpp

@@ -36,8 +36,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<2, 2, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<2, 2, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<2, 2, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -61,8 +61,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat2x3.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<2, 3, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<2, 3, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<2, 3, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -62,8 +62,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 3, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 3, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat2x4.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<2, 4, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<2, 4, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<2, 4, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -64,8 +64,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 4, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 4, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat3x2.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<3, 2, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<3, 2, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<3, 2, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -69,8 +69,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 2, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 2, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat3x3.hpp

@@ -36,8 +36,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<3, 3, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<3, 3, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<3, 3, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -68,8 +68,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat3x4.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<3, 4, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<3, 4, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<3, 4, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -69,8 +69,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 4, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 4, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat4x2.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<4, 2, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<4, 2, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<4, 2, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T scalar);
 		GLM_FUNC_DECL mat(
@@ -74,8 +74,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 2, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 2, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat4x3.hpp

@@ -37,8 +37,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<4, 3, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<4, 3, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<4, 3, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T const& x);
 		GLM_FUNC_DECL mat(
@@ -74,8 +74,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 3, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 3, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/detail/type_mat4x4.hpp

@@ -36,8 +36,8 @@ namespace glm
 
 		GLM_FUNC_DECL mat() GLM_DEFAULT;
 		GLM_FUNC_DECL mat(mat<4, 4, T, Q> const& m) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL mat(mat<4, 4, T, Q> const& m);
+		template<qualifier P>
+		GLM_FUNC_DECL mat(mat<4, 4, T, P> const& m);
 
 		GLM_FUNC_DECL explicit mat(T const& x);
 		GLM_FUNC_DECL mat(
@@ -73,8 +73,8 @@ namespace glm
 
 		// -- Matrix conversions --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 4, U, Q> const& m);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 4, U, P> const& m);
 
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
 		GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);

+ 4 - 4
glm/gtc/quaternion.hpp

@@ -79,8 +79,8 @@ namespace glm
 
 		GLM_FUNC_DECL GLM_CONSTEXPR tquat() GLM_DEFAULT;
 		GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, Q> const& q) GLM_DEFAULT;
-		template<qualifier Q>
-		GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, Q> const& q);
+		template<qualifier P>
+		GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, P> const& q);
 
 		// -- Explicit basic constructors --
 
@@ -89,8 +89,8 @@ namespace glm
 
 		// -- Conversion constructors --
 
-		template<typename U, qualifier Q>
-		GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT tquat(tquat<U, Q> const& q);
+		template<typename U, qualifier P>
+		GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT tquat(tquat<U, P> const& q);
 
 		/// Explicit conversion operators
 #		if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS