Fixed extension names and API doc

master
Christophe Riccio ago%!(EXTRA string=7 years)
parent eead9500ef
commit 234d82e39d
  1. 57
      glm/detail/setup.hpp
  2. 12
      glm/detail/type_float.hpp
  3. 22
      glm/ext/vector_bvec1.hpp
  4. 20
      glm/ext/vector_bvec1_precision.hpp
  5. 22
      glm/ext/vector_dvec1.hpp
  6. 18
      glm/ext/vector_dvec1_precision.hpp
  7. 22
      glm/ext/vector_ivec1.hpp
  8. 32
      glm/ext/vector_uvec1.hpp
  9. 24
      glm/ext/vector_vec1.hpp

@ -630,6 +630,63 @@ namespace glm
# define GLM_CONFIG_ANONYMOUS_STRUCT GLM_DISABLE # define GLM_CONFIG_ANONYMOUS_STRUCT GLM_DISABLE
#endif #endif
///////////////////////////////////////////////////////////////////////////////////
// Precision
#define GLM_HIGHP 1
#define GLM_MEDIUMP 2
#define GLM_LOWP 3
#ifdef GLM_PRECISION_HIGHP_BOOL
# define GLM_CONFIG_PRECISION_BOOL GLM_HIGHP
#elif defined(GLM_PRECISION_MEDIUMP_BOOL)
# define GLM_CONFIG_PRECISION_BOOL GLM_MEDIUMP
#elif defined(GLM_PRECISION_LOWP_BOOL)
# define GLM_CONFIG_PRECISION_BOOL GLM_LOWP
#else
# define GLM_CONFIG_PRECISION_BOOL GLM_HIGHP
#endif
#ifdef GLM_PRECISION_HIGHP_INT
# define GLM_CONFIG_PRECISION_INT GLM_HIGHP
#elif defined(GLM_PRECISION_MEDIUMP_INT)
# define GLM_CONFIG_PRECISION_INT GLM_MEDIUMP
#elif defined(GLM_PRECISION_LOWP_INT)
# define GLM_CONFIG_PRECISION_INT GLM_LOWP
#else
# define GLM_CONFIG_PRECISION_INT GLM_HIGHP
#endif
#ifdef GLM_PRECISION_HIGHP_UINT
# define GLM_CONFIG_PRECISION_UINT GLM_HIGHP
#elif defined(GLM_PRECISION_MEDIUMP_UINT)
# define GLM_CONFIG_PRECISION_UINT GLM_MEDIUMP
#elif defined(GLM_PRECISION_LOWP_UINT)
# define GLM_CONFIG_PRECISION_UINT GLM_LOWP
#else
# define GLM_CONFIG_PRECISION_UINT GLM_HIGHP
#endif
#ifdef GLM_PRECISION_HIGHP_FLOAT
# define GLM_CONFIG_PRECISION_FLOAT GLM_HIGHP
#elif defined(GLM_PRECISION_MEDIUMP_FLOAT)
# define GLM_CONFIG_PRECISION_FLOAT GLM_MEDIUMP
#elif defined(GLM_PRECISION_LOWP_FLOAT)
# define GLM_CONFIG_PRECISION_FLOAT GLM_LOWP
#else
# define GLM_CONFIG_PRECISION_FLOAT GLM_HIGHP
#endif
#ifdef GLM_PRECISION_HIGHP_DOUBLE
# define GLM_CONFIG_PRECISION_DOUBLE GLM_HIGHP
#elif defined(GLM_PRECISION_MEDIUMP_DOUBLE)
# define GLM_CONFIG_PRECISION_DOUBLE GLM_MEDIUMP
#elif defined(GLM_PRECISION_LOWP_DOUBLE)
# define GLM_CONFIG_PRECISION_DOUBLE GLM_LOWP
#else
# define GLM_CONFIG_PRECISION_DOUBLE GLM_HIGHP
#endif
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// Check inclusions of different versions of GLM // Check inclusions of different versions of GLM

@ -43,22 +43,18 @@ namespace detail
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a>
typedef highp_float_t highp_float; typedef highp_float_t highp_float;
#if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT)) #if GLM_CONFIG_PRECISION_FLOAT == GLM_HIGHP
typedef mediump_float float_t;
#elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
typedef highp_float float_t; typedef highp_float float_t;
#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT)) #elif GLM_CONFIG_PRECISION_FLOAT == GLM_MEDIUMP
typedef mediump_float float_t; typedef mediump_float float_t;
#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT)) #elif GLM_CONFIG_PRECISION_FLOAT == GLM_LOWP
typedef lowp_float float_t; typedef lowp_float float_t;
#else
# error "GLM error: multiple default precision requested for floating-point types"
#endif #endif
typedef float float32; typedef float float32;
# ifndef GLM_FORCE_SINGLE_ONLY # ifndef GLM_FORCE_SINGLE_ONLY
typedef double float64; typedef double float64;
# endif//GLM_FORCE_SINGLE_ONLY # endif//GLM_FORCE_SINGLE_ONLY
//////////////////// ////////////////////

@ -1,21 +1,21 @@
/// @ref ext_bvec1 /// @ref ext_vector_bvec1
/// @file glm/ext/bvec1.hpp /// @file glm/ext/vector_bvec1.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_bvec1 GLM_EXT_bvec1 /// @defgroup ext_vector_bvec1 GLM_EXT_vector_bvec1
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/bvec1.hpp> to use the features of this extension. /// Include <glm/ext/vector_bvec1.hpp> to use the features of this extension.
/// ///
/// Expose bvec1 type. /// Exposes bvec1 vector type.
#pragma once #pragma once
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_bvec1 extension included") # pragma message("GLM: GLM_EXT_vector_bvec1 extension included")
#endif #endif
namespace glm namespace glm
@ -23,16 +23,16 @@ namespace glm
/// @addtogroup ext_bvec1 /// @addtogroup ext_bvec1
/// @{ /// @{
# if(defined(GLM_PRECISION_LOWP_BOOL)) # if GLM_CONFIG_PRECISION_BOOL == GLM_LOWP
typedef vec<1, bool, lowp> bvec1; typedef vec<1, bool, lowp> bvec1;
# elif(defined(GLM_PRECISION_MEDIUMP_BOOL)) # elif GLM_CONFIG_PRECISION_BOOL == GLM_MEDIUMP
typedef vec<1, bool, mediump> bvec1; typedef vec<1, bool, mediump> bvec1;
# else //defined(GLM_PRECISION_HIGHP_BOOL) # else
/// 1 components vector of boolean. /// 1 components vector of boolean.
/// ///
/// @see ext_bvec1 extension. /// @see ext_vector_bvec1 extension.
typedef vec<1, bool, highp> bvec1; typedef vec<1, bool, highp> bvec1;
# endif//GLM_PRECISION # endif
/// @} /// @}
}//namespace glm }//namespace glm

@ -1,41 +1,41 @@
/// @ref ext_bvec1_precision /// @ref ext_vector_bvec1_precision
/// @file glm/ext/bvec1_precision.hpp /// @file glm/ext/vector_bvec1_precision.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_bvec1_precision GLM_EXT_bvec1_precision /// @defgroup ext_vector_bvec1_precision GLM_EXT_vector_bvec1_precision
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/bvec1_precision.hpp> to use the features of this extension. /// Include <glm/ext/vector_bvec1_precision.hpp> to use the features of this extension.
/// ///
/// Add Exposes highp_bvec1, mediump_bvec1 and lowp_bvec1 types. /// Exposes highp_bvec1, mediump_bvec1 and lowp_bvec1 types.
#pragma once #pragma once
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_bvec1_precision extension included") # pragma message("GLM: GLM_EXT_vector_bvec1_precision extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_bvec1_precision /// @addtogroup ext_vector_bvec1_precision
/// @{ /// @{
/// 1 component vector of bool values. /// 1 component vector of bool values.
/// ///
/// @see ext_vec1 /// @see ext_vector_bvec1_precision
typedef vec<1, bool, highp> highp_bvec1; typedef vec<1, bool, highp> highp_bvec1;
/// 1 component vector of bool values. /// 1 component vector of bool values.
/// ///
/// @see ext_vec1 /// @see ext_vector_bvec1_precision
typedef vec<1, bool, mediump> mediump_bvec1; typedef vec<1, bool, mediump> mediump_bvec1;
/// 1 component vector of bool values. /// 1 component vector of bool values.
/// ///
/// @see ext_vec1 /// @see ext_vector_bvec1_precision
typedef vec<1, bool, lowp> lowp_bvec1; typedef vec<1, bool, lowp> lowp_bvec1;
/// @} /// @}

@ -1,12 +1,12 @@
/// @ref ext_dvec1 /// @ref ext_vector_dvec1
/// @file glm/ext/dvec1.hpp /// @file glm/ext/vector_dvec1.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_dvec1 GLM_EXT_dvec1 /// @defgroup ext_vector_dvec1 GLM_EXT_vector_dvec1
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/dvec1.hpp> to use the features of this extension. /// Include <glm/ext/vector_dvec1.hpp> to use the features of this extension.
/// ///
/// Expose dvec1 vector type. /// Expose dvec1 vector type.
@ -15,24 +15,24 @@
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_dvec1 extension included") # pragma message("GLM: GLM_EXT_vector_dvec1 extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_dvec1 /// @addtogroup ext_vector_dvec1
/// @{ /// @{
# if(defined(GLM_PRECISION_LOWP_DOUBLE)) # if GLM_CONFIG_PRECISION_DOUBLE == GLM_LOWP
typedef vec<1, double, lowp> dvec1; typedef vec<1, double, lowp> dvec1;
# elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE)) # elif GLM_CONFIG_PRECISION_DOUBLE == GLM_MEDIUMP
typedef vec<1, double, mediump> dvec1; typedef vec<1, double, mediump> dvec1;
# else //defined(GLM_PRECISION_HIGHP_DOUBLE) # else
/// 1 components vector of double-precision floating-point numbers. /// 1 components vector of double-precision floating-point numbers.
/// ///
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a> /// @see ext_vector_dvec1 extension.
typedef vec<1, double, highp> dvec1; typedef vec<1, double, highp> dvec1;
# endif//GLM_PRECISION # endif
/// @} /// @}
}//namespace glm }//namespace glm

@ -1,12 +1,12 @@
/// @ref ext_dvec1_precision /// @ref ext_vector_dvec1_precision
/// @file glm/ext/dvec1_precision.hpp /// @file glm/ext/vector_dvec1_precision.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_dvec1_precision GLM_EXT_dvec1_precision /// @defgroup ext_vector_dvec1_precision GLM_EXT_vector_dvec1_precision
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/fvec1_precision.hpp> to use the features of this extension. /// Include <glm/ext/vector_dvec1_precision.hpp> to use the features of this extension.
/// ///
/// Exposes highp_dvec1, mediump_dvec1 and lowp_dvec1 types. /// Exposes highp_dvec1, mediump_dvec1 and lowp_dvec1 types.
@ -15,27 +15,27 @@
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_dvec1_precision extension included") # pragma message("GLM: GLM_EXT_vector_dvec1_precision extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_dvec1_precision /// @addtogroup ext_vector_dvec1_precision
/// @{ /// @{
/// 1 component vector of double-precision floating-point numbers using high precision arithmetic in term of ULPs. /// 1 component vector of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
/// ///
/// @see ext_dvec1_precision /// @see ext_vector_dvec1_precision
typedef vec<1, double, highp> highp_dvec1; typedef vec<1, double, highp> highp_dvec1;
/// 1 component vector of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. /// 1 component vector of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
/// ///
/// @see ext_dvec1_precision /// @see ext_vector_dvec1_precision
typedef vec<1, double, mediump> mediump_dvec1; typedef vec<1, double, mediump> mediump_dvec1;
/// 1 component vector of double-precision floating-point numbers using low precision arithmetic in term of ULPs. /// 1 component vector of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
/// ///
/// @see ext_dvec1_precision /// @see ext_vector_dvec1_precision
typedef vec<1, double, lowp> lowp_dvec1; typedef vec<1, double, lowp> lowp_dvec1;
/// @} /// @}

@ -1,12 +1,12 @@
/// @ref ext_ivec1 /// @ref ext_vector_ivec1
/// @file glm/ext/ivec1.hpp /// @file glm/ext/vector_ivec1.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_ivec1 GLM_EXT_ivec1 /// @defgroup ext_vector_ivec1 GLM_EXT_vector_ivec1
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/ivec1.hpp> to use the features of this extension. /// Include <glm/ext/vector_ivec1.hpp> to use the features of this extension.
/// ///
/// Exposes ivec1 vector type. /// Exposes ivec1 vector type.
@ -15,24 +15,24 @@
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_ivec1 extension included") # pragma message("GLM: GLM_EXT_vector_ivec1 extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_ivec1 /// @addtogroup ext_vector_ivec1
/// @{ /// @{
# if(defined(GLM_PRECISION_LOWP_INT)) # if GLM_CONFIG_PRECISION_INT == GLM_LOWP
typedef vec<1, int, lowp> ivec1; typedef vec<1, int, lowp> ivec1;
# elif(defined(GLM_PRECISION_MEDIUMP_INT)) # elif GLM_CONFIG_PRECISION_INT == GLM_MEDIUMP
typedef vec<1, int, mediump> ivec1; typedef vec<1, int, mediump> ivec1;
#else //defined(GLM_PRECISION_HIGHP_INT) # else
/// 1 component vector of signed integer numbers. /// 1 component vector of signed integer numbers.
/// ///
/// @see ext_ivec1 extension. /// @see ext_vector_ivec1 extension.
typedef vec<1, int, highp> ivec1; typedef vec<1, int, highp> ivec1;
# endif//GLM_PRECISION # endif
/// @} /// @}
}//namespace glm }//namespace glm

@ -1,12 +1,12 @@
/// @ref ext_uvec1 /// @ref ext_vector_uvec1
/// @file glm/ext/uvec1.hpp /// @file glm/ext/vector_uvec1.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_uvec1 GLM_EXT_uvec1 /// @defgroup ext_vector_uvec1 GLM_EXT_vector_uvec1
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/uvec1.hpp> to use the features of this extension. /// Include <glm/ext/vector_uvec1.hpp> to use the features of this extension.
/// ///
/// Exposes uvec1 vector type. /// Exposes uvec1 vector type.
@ -15,24 +15,24 @@
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_uvec1 extension included") # pragma message("GLM: GLM_EXT_vector_uvec1 extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_uvec1 /// @addtogroup ext_vector_uvec1
/// @{ /// @{
# if(defined(GLM_PRECISION_LOWP_INT)) # if GLM_CONFIG_PRECISION_UINT == GLM_LOWP
typedef vec<1, uint, lowp> uvec1; typedef vec<1, uint, lowp> uvec1;
# elif(defined(GLM_PRECISION_MEDIUMP_INT)) # elif GLM_CONFIG_PRECISION_UINT == GLM_MEDIUMP
typedef vec<1, uint, mediump> uvec1; typedef vec<1, uint, mediump> uvec1;
#else //defined(GLM_PRECISION_HIGHP_INT) # else
/// 1 component vector of unsigned integer numbers. /// 1 component vector of unsigned integer numbers.
/// ///
/// @see ext_uvec1 extension. /// @see ext_vector_uvec1 extension.
typedef vec<1, uint, highp> uvec1; typedef vec<1, uint, highp> uvec1;
# endif//GLM_PRECISION # endif
/// @} /// @}
}//namespace glm }//namespace glm

@ -1,38 +1,38 @@
/// @ref ext_vec1 /// @ref ext_vector_vec1
/// @file glm/ext/vec1.hpp /// @file glm/ext/vector_vec1.hpp
/// ///
/// @see core (dependence) /// @see core (dependence)
/// ///
/// @defgroup ext_vec1 GLM_EXT_fvec1 /// @defgroup ext_vector_vec1 GLM_EXT_vector_vec1
/// @ingroup ext /// @ingroup ext
/// ///
/// Include <glm/ext/vec1.hpp> to use the features of this extension. /// Include <glm/ext/vector_vec1.hpp> to use the features of this extension.
/// ///
/// Expose vec1 vector type. /// Exposes vec1 vector type.
#pragma once #pragma once
#include "../detail/type_vec1.hpp" #include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_fvec1 extension included") # pragma message("GLM: GLM_EXT_vector_vec1 extension included")
#endif #endif
namespace glm namespace glm
{ {
/// @addtogroup ext_fvec1 /// @addtogroup ext_vector_vec1
/// @{ /// @{
# if(defined(GLM_PRECISION_LOWP_FLOAT)) # if GLM_CONFIG_PRECISION_FLOAT == GLM_LOWP
typedef vec<1, float, lowp> vec1; typedef vec<1, float, lowp> vec1;
# elif(defined(GLM_PRECISION_MEDIUMP_FLOAT)) # elif GLM_CONFIG_PRECISION_FLOAT == GLM_MEDIUMP
typedef vec<1, float, mediump> vec1; typedef vec<1, float, mediump> vec1;
# else //defined(GLM_PRECISION_HIGHP_FLOAT) # else
/// 1 components vector of single-precision floating-point numbers. /// 1 components vector of single-precision floating-point numbers.
/// ///
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a> /// @see ext_vector_vec1 extension.
typedef vec<1, float, highp> vec1; typedef vec<1, float, highp> vec1;
# endif//GLM_PRECISION # endif
/// @} /// @}
}//namespace glm }//namespace glm

Loading…
Cancel
Save