diff options
Diffstat (limited to '')
-rw-r--r-- | external/include/glm/gtx/number_precision.hpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/external/include/glm/gtx/number_precision.hpp b/external/include/glm/gtx/number_precision.hpp index 736d035..3f4bee1 100644 --- a/external/include/glm/gtx/number_precision.hpp +++ b/external/include/glm/gtx/number_precision.hpp @@ -8,9 +8,9 @@ /// @defgroup gtx_number_precision GLM_GTX_number_precision /// @ingroup gtx /// -/// @brief Defined size types. +/// Include <glm/gtx/number_precision.hpp> to use the features of this extension. /// -/// <glm/gtx/number_precision.hpp> need to be included to use these functionalities. +/// Defined size types. #pragma once @@ -18,6 +18,10 @@ #include "../glm.hpp" #include "../gtc/type_precision.hpp" +#ifndef GLM_ENABLE_EXPERIMENTAL +# error "GLM: GLM_GTX_number_precision is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." +#endif + #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) # pragma message("GLM: GLM_GTX_number_precision extension included") #endif @@ -26,7 +30,7 @@ namespace glm{ namespace gtx { ///////////////////////////// - // Unsigned int vector types + // Unsigned int vector types /// @addtogroup gtx_number_precision /// @{ @@ -37,18 +41,18 @@ namespace gtx typedef u64 u64vec1; //!< \brief 64bit unsigned integer scalar. (from GLM_GTX_number_precision extension) ////////////////////// - // Float vector types + // Float vector types - typedef f32 f32vec1; //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension) - typedef f64 f64vec1; //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f32 f32vec1; //!< \brief Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f64 f64vec1; //!< \brief Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ////////////////////// - // Float matrix types + // Float matrix types - typedef f32 f32mat1; //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension) - typedef f32 f32mat1x1; //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension) - typedef f64 f64mat1; //!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension) - typedef f64 f64mat1x1; //!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f32 f32mat1; //!< \brief Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f32 f32mat1x1; //!< \brief Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f64 f64mat1; //!< \brief Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) + typedef f64 f64mat1x1; //!< \brief Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) /// @} }//namespace gtx |