Browse Source

Deprecated some GTX functions

Christophe Riccio 12 years ago
parent
commit
0e31538c26
5 changed files with 104 additions and 85 deletions
  1. 80 61
      glm/gtx/color_cast.hpp
  2. 1 1
      glm/gtx/extend.hpp
  3. 4 4
      glm/gtx/extend.inl
  4. 14 14
      glm/gtx/transform2.hpp
  5. 5 5
      glm/gtx/verbose_operator.hpp

+ 80 - 61
glm/gtx/color_cast.hpp

@@ -54,67 +54,86 @@ namespace glm
 
 
 	//! Conversion of a floating value into a 8bit unsigned int value. 
 	//! Conversion of a floating value into a 8bit unsigned int value. 
 	/// @see gtx_color_cast
 	/// @see gtx_color_cast
-	template <typename valType> uint8 u8channel_cast(valType a);
-
-	/// Conversion of a floating value into a 16bit unsigned int value. 
-	/// @see gtx_color_cast
-	template <typename valType>	uint16 u16channel_cast(valType a);
-
-	template <typename T> uint32 u32_rgbx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_xrgb_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_bgrx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_xbgr_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> uint32 u32_rgba_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_argb_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_bgra_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint32 u32_abgr_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> uint64 u64_rgbx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_xrgb_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_bgrx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_xbgr_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> uint64 u64_rgba_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_argb_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_bgra_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-	template <typename T> uint64 u64_abgr_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f16 f16_channel_cast(T a);	//!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f16vec3 f16_rgbx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec3 f16_xrgb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec3 f16_bgrx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec3 f16_xbgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f16vec4 f16_rgba_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec4 f16_argb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec4 f16_bgra_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f16vec4 f16_abgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f32 f32_channel_cast(T a);		//!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f32vec3 f32_rgbx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec3 f32_xrgb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec3 f32_bgrx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec3 f32_xbgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f32vec4 f32_rgba_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec4 f32_argb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec4 f32_bgra_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f32vec4 f32_abgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f64 f64_channel_cast(T a);		//!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f64vec3 f64_rgbx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec3 f64_xrgb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec3 f64_bgrx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec3 f64_xbgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
-
-	template <typename T> f64vec4 f64_rgba_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec4 f64_argb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec4 f64_bgra_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
-	template <typename T> f64vec4 f64_abgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename valType>
+	GLM_DEPRECATED uint8 u8channel_cast(valType a);
+
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_rgbx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_xrgb_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_bgrx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_xbgr_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_rgba_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_argb_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_bgra_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint32 u32_abgr_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_rgbx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_xrgb_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_bgrx_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_xbgr_cast(const detail::tvec3<T, P>& c);		//!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_rgba_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_argb_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_bgra_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED uint64 u64_abgr_cast(const detail::tvec4<T, P>& c);		//!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f32 f32_channel_cast(T a);		//!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f32vec3 f32_rgbx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec3 f32_xrgb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec3 f32_bgrx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec3 f32_xbgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f32vec4 f32_rgba_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec4 f32_argb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec4 f32_bgra_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f32vec4 f32_abgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f64 f64_channel_cast(T a);		//!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f64vec3 f64_rgbx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec3 f64_xrgb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec3 f64_bgrx_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec3 f64_xbgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
+
+	template <typename T>
+	GLM_DEPRECATED f64vec4 f64_rgba_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec4 f64_argb_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec4 f64_bgra_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
+	template <typename T>
+	GLM_DEPRECATED f64vec4 f64_abgr_cast(T c);		//!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
 
 
 	/// @}
 	/// @}
 }//namespace glm
 }//namespace glm

+ 1 - 1
glm/gtx/extend.hpp

@@ -53,7 +53,7 @@ namespace glm
 	/// Extends of Length the Origin position using the (Source - Origin) direction.
 	/// Extends of Length the Origin position using the (Source - Origin) direction.
 	/// @see gtx_extend
 	/// @see gtx_extend
 	template <typename genType> 
 	template <typename genType> 
-	genType extend(
+	GLM_FUNC_DECL genType extend(
 		genType const & Origin, 
 		genType const & Origin, 
 		genType const & Source, 
 		genType const & Source, 
 		typename genType::value_type const Length);
 		typename genType::value_type const Length);

+ 4 - 4
glm/gtx/extend.inl

@@ -10,7 +10,7 @@
 namespace glm
 namespace glm
 {
 {
 	template <typename genType>
 	template <typename genType>
-	genType extend
+	GLM_FUNC_QUALIFIER genType extend
 	(
 	(
 		genType const & Origin, 
 		genType const & Origin, 
 		genType const & Source, 
 		genType const & Source, 
@@ -21,7 +21,7 @@ namespace glm
 	}
 	}
 
 
 	template <typename valType>
 	template <typename valType>
-	detail::tvec2<valType> extend
+	GLM_FUNC_QUALIFIER detail::tvec2<valType> extend
 	(
 	(
 		detail::tvec2<valType> const & Origin, 
 		detail::tvec2<valType> const & Origin, 
 		detail::tvec2<valType> const & Source, 
 		detail::tvec2<valType> const & Source, 
@@ -32,7 +32,7 @@ namespace glm
 	}
 	}
 
 
 	template <typename valType>
 	template <typename valType>
-	detail::tvec3<valType> extend
+	GLM_FUNC_QUALIFIER detail::tvec3<valType> extend
 	(
 	(
 		detail::tvec3<valType> const & Origin, 
 		detail::tvec3<valType> const & Origin, 
 		detail::tvec3<valType> const & Source, 
 		detail::tvec3<valType> const & Source, 
@@ -43,7 +43,7 @@ namespace glm
 	}
 	}
 
 
 	template <typename valType>
 	template <typename valType>
-	detail::tvec4<valType> extend
+	GLM_FUNC_QUALIFIER detail::tvec4<valType> extend
 	(
 	(
 		detail::tvec4<valType> const & Origin, 
 		detail::tvec4<valType> const & Origin, 
 		detail::tvec4<valType> const & Source, 
 		detail::tvec4<valType> const & Source, 

+ 14 - 14
glm/gtx/transform2.hpp

@@ -61,30 +61,30 @@ namespace glm
 
 
 	//! Transforms a matrix with a shearing on Y axis.
 	//! Transforms a matrix with a shearing on Y axis.
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat3x3<T, P> shearY2D(
 	detail::tmat3x3<T, P> shearY2D(
 		detail::tmat3x3<T, P> const & m, 
 		detail::tmat3x3<T, P> const & m, 
 		T x);
 		T x);
 
 
 	//! Transforms a matrix with a shearing on X axis
 	//! Transforms a matrix with a shearing on X axis
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat4x4<T, P> shearX3D(
 	detail::tmat4x4<T, P> shearX3D(
 		const detail::tmat4x4<T, P> & m,
 		const detail::tmat4x4<T, P> & m,
 		T y, 
 		T y, 
 		T z);
 		T z);
-		
+
 	//! Transforms a matrix with a shearing on Y axis.
 	//! Transforms a matrix with a shearing on Y axis.
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat4x4<T, P> shearY3D(
 	detail::tmat4x4<T, P> shearY3D(
 		const detail::tmat4x4<T, P> & m, 
 		const detail::tmat4x4<T, P> & m, 
 		T x, 
 		T x, 
 		T z);
 		T z);
-		
+
 	//! Transforms a matrix with a shearing on Z axis. 
 	//! Transforms a matrix with a shearing on Z axis. 
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat4x4<T, P> shearZ3D(
 	detail::tmat4x4<T, P> shearZ3D(
 		const detail::tmat4x4<T, P> & m, 
 		const detail::tmat4x4<T, P> & m, 
 		T x, 
 		T x, 
@@ -100,30 +100,30 @@ namespace glm
 		
 		
 	//! Build planar projection matrix along normal axis.
 	//! Build planar projection matrix along normal axis.
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat3x3<T, P> proj2D(
 	detail::tmat3x3<T, P> proj2D(
 		const detail::tmat3x3<T, P> & m, 
 		const detail::tmat3x3<T, P> & m, 
 		const detail::tvec3<T, P>& normal);
 		const detail::tvec3<T, P>& normal);
-				
+
 	//! Build planar projection matrix along normal axis.
 	//! Build planar projection matrix along normal axis.
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename T> 
+	template <typename T, precision P> 
 	detail::tmat4x4<T, P> proj3D(
 	detail::tmat4x4<T, P> proj3D(
 		const detail::tmat4x4<T, P> & m, 
 		const detail::tmat4x4<T, P> & m, 
 		const detail::tvec3<T, P>& normal);
 		const detail::tvec3<T, P>& normal);
 
 
 	//! Build a scale bias matrix. 
 	//! Build a scale bias matrix. 
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename valType> 
-	detail::tmat4x4<valType> scaleBias(
+	template <typename valType, precision P> 
+	detail::tmat4x4<valType, P> scaleBias(
 		valType scale, 
 		valType scale, 
 		valType bias);
 		valType bias);
 
 
 	//! Build a scale bias matrix.
 	//! Build a scale bias matrix.
 	//! From GLM_GTX_transform2 extension.
 	//! From GLM_GTX_transform2 extension.
-	template <typename valType> 
-	detail::tmat4x4<valType> scaleBias(
-		detail::tmat4x4<valType> const & m, 
+	template <typename valType, precision P> 
+	detail::tmat4x4<valType, P> scaleBias(
+		detail::tmat4x4<valType, P> const & m, 
 		valType scale, 
 		valType scale, 
 		valType bias);
 		valType bias);
 
 

+ 5 - 5
glm/gtx/verbose_operator.hpp

@@ -53,27 +53,27 @@ namespace glm
 	//! Addition of two values
 	//! Addition of two values
 	/// @see gtx_verbose_operator extension.
 	/// @see gtx_verbose_operator extension.
 	template <typename genTypeT, typename genTypeU> 
 	template <typename genTypeT, typename genTypeU> 
-	genTypeT add(genTypeT const & a, genTypeU const & b);
+	GLM_DEPRECATED genTypeT add(genTypeT const & a, genTypeU const & b);
 
 
 	//! Substration of two values
 	//! Substration of two values
 	/// @see gtx_verbose_operator extension.
 	/// @see gtx_verbose_operator extension.
 	template <typename genTypeT, typename genTypeU> 
 	template <typename genTypeT, typename genTypeU> 
-	genTypeT sub(genTypeT const & a, genTypeU const & b);
+	GLM_DEPRECATED genTypeT sub(genTypeT const & a, genTypeU const & b);
 
 
 	//! Multiplication of two values
 	//! Multiplication of two values
 	/// @see gtx_verbose_operator extension.
 	/// @see gtx_verbose_operator extension.
 	template <typename genTypeT, typename genTypeU> 
 	template <typename genTypeT, typename genTypeU> 
-	genTypeT mul(genTypeT const & a, genTypeU const & b);
+	GLM_DEPRECATED genTypeT mul(genTypeT const & a, genTypeU const & b);
 
 
 	//! Division of two values
 	//! Division of two values
 	/// @see gtx_verbose_operator extension.
 	/// @see gtx_verbose_operator extension.
 	template <typename genTypeT, typename genTypeU> 
 	template <typename genTypeT, typename genTypeU> 
-	genTypeT div(genTypeT const & a, genTypeU const & b);
+	GLM_DEPRECATED genTypeT div(genTypeT const & a, genTypeU const & b);
 
 
 	//! Multiplication and addition of three values
 	//! Multiplication and addition of three values
 	/// @see gtx_verbose_operator extension.
 	/// @see gtx_verbose_operator extension.
 	template <typename genTypeT, typename genTypeU, typename genTypeV> 
 	template <typename genTypeT, typename genTypeU, typename genTypeV> 
-	genTypeT mad(genTypeT const & a, genTypeU const & b, genTypeV const & c);
+	GLM_DEPRECATED genTypeT mad(genTypeT const & a, genTypeU const & b, genTypeV const & c);
 
 
 	/// @}
 	/// @}
 }// namespace glm
 }// namespace glm