Browse Source

Fixed missing precision matrix types

Christophe Riccio 14 years ago
parent
commit
ffb940cbdf
3 changed files with 67 additions and 9 deletions
  1. 23 3
      glm/core/type_mat2x2.hpp
  2. 21 3
      glm/core/type_mat3x3.hpp
  3. 23 3
      glm/core/type_mat4x4.hpp

+ 23 - 3
glm/core/type_mat2x2.hpp

@@ -224,17 +224,37 @@ namespace glm
 	{
 	{
 		//! 2 columns of 2 components matrix of low precision floating-point numbers.
 		//! 2 columns of 2 components matrix of low precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat2x2<lowp_float>		lowp_mat2;
+
+		//! 2 columns of 2 components matrix of medium precision floating-point numbers. 
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat2x2<mediump_float>	mediump_mat2;
+
+		//! 2 columns of 2 components matrix of high precision floating-point numbers. 
+		//! There is no guarantee on the actual precision. 
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat2x2<highp_float>	highp_mat2;
+
+		//! 2 columns of 2 components matrix of low precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat2x2<lowp_float>		lowp_mat2x2;
 		typedef detail::tmat2x2<lowp_float>		lowp_mat2x2;
+
 		//! 2 columns of 2 components matrix of medium precision floating-point numbers. 
 		//! 2 columns of 2 components matrix of medium precision floating-point numbers. 
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat2x2<mediump_float>	mediump_mat2x2;
 		typedef detail::tmat2x2<mediump_float>	mediump_mat2x2;
+
 		//! 2 columns of 2 components matrix of high precision floating-point numbers. 
 		//! 2 columns of 2 components matrix of high precision floating-point numbers. 
 		//! There is no guarantee on the actual precision. 
 		//! There is no guarantee on the actual precision. 
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat2x2<highp_float>	highp_mat2x2;
 		typedef detail::tmat2x2<highp_float>	highp_mat2x2;
 	}
 	}

+ 21 - 3
glm/core/type_mat3x3.hpp

@@ -223,17 +223,35 @@ namespace glm
 	{
 	{
 		//! 3 columns of 3 components matrix of low precision floating-point numbers.
 		//! 3 columns of 3 components matrix of low precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat3x3<lowp_float>		lowp_mat3;
+		//! 3 columns of 3 components matrix of medium precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat3x3<mediump_float>	mediump_mat3;
+		//! 3 columns of 3 components matrix of high precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat3x3<highp_float>	highp_mat3;
+
+		//! 3 columns of 3 components matrix of low precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat3x3<lowp_float>		lowp_mat3x3;
 		typedef detail::tmat3x3<lowp_float>		lowp_mat3x3;
+
 		//! 3 columns of 3 components matrix of medium precision floating-point numbers.
 		//! 3 columns of 3 components matrix of medium precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat3x3<mediump_float>	mediump_mat3x3;
 		typedef detail::tmat3x3<mediump_float>	mediump_mat3x3;
+
 		//! 3 columns of 3 components matrix of high precision floating-point numbers.
 		//! 3 columns of 3 components matrix of high precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat3x3<highp_float>	highp_mat3x3;
 		typedef detail::tmat3x3<highp_float>	highp_mat3x3;
 	}
 	}

+ 23 - 3
glm/core/type_mat4x4.hpp

@@ -223,17 +223,37 @@ namespace glm
 	{
 	{
 		//! 4 columns of 4 components matrix of low precision floating-point numbers.
 		//! 4 columns of 4 components matrix of low precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat4x4<lowp_float>		lowp_mat4;
+
+		//! 4 columns of 4 components matrix of medium precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat4x4<mediump_float>	mediump_mat4;
+
+		//! 4 columns of 4 components matrix of high precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
+		//! \ingroup core_precision
+		typedef detail::tmat4x4<highp_float>	highp_mat4;
+
+		//! 4 columns of 4 components matrix of low precision floating-point numbers.
+		//! There is no guarantee on the actual precision.
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat4x4<lowp_float>		lowp_mat4x4;
 		typedef detail::tmat4x4<lowp_float>		lowp_mat4x4;
+
 		//! 4 columns of 4 components matrix of medium precision floating-point numbers.
 		//! 4 columns of 4 components matrix of medium precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat4x4<mediump_float>	mediump_mat4x4;
 		typedef detail::tmat4x4<mediump_float>	mediump_mat4x4;
+
 		//! 4 columns of 4 components matrix of high precision floating-point numbers.
 		//! 4 columns of 4 components matrix of high precision floating-point numbers.
 		//! There is no guarantee on the actual precision.
 		//! There is no guarantee on the actual precision.
-		//! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers)
+		//! From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers
 		//! \ingroup core_precision
 		//! \ingroup core_precision
 		typedef detail::tmat4x4<highp_float>	highp_mat4x4;
 		typedef detail::tmat4x4<highp_float>	highp_mat4x4;
 	}
 	}