• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /// @ref gtx_number_precision
2 /// @file glm/gtx/number_precision.hpp
3 ///
4 /// @see core (dependence)
5 /// @see gtc_type_precision (dependence)
6 /// @see gtc_quaternion (dependence)
7 ///
8 /// @defgroup gtx_number_precision GLM_GTX_number_precision
9 /// @ingroup gtx
10 ///
11 /// @brief Defined size types.
12 ///
13 /// <glm/gtx/number_precision.hpp> need to be included to use these functionalities.
14 
15 #pragma once
16 
17 // Dependency:
18 #include "../glm.hpp"
19 #include "../gtc/type_precision.hpp"
20 
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 #	pragma message("GLM: GLM_GTX_number_precision extension included")
23 #endif
24 
25 namespace glm{
26 namespace gtx
27 {
28 	/////////////////////////////
29 	// Unsigned int vector types
30 
31 	/// @addtogroup gtx_number_precision
32 	/// @{
33 
34 	typedef u8			u8vec1;		//!< \brief 8bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
35 	typedef u16			u16vec1;    //!< \brief 16bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
36 	typedef u32			u32vec1;    //!< \brief 32bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
37 	typedef u64			u64vec1;    //!< \brief 64bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
38 
39 	//////////////////////
40 	// Float vector types
41 
42 	typedef f32			f32vec1;    //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)
43 	typedef f64			f64vec1;    //!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)
44 
45 	//////////////////////
46 	// Float matrix types
47 
48 	typedef f32			f32mat1;	//!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)
49 	typedef f32			f32mat1x1;	//!< \brief Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)
50 	typedef f64			f64mat1;	//!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension)
51 	typedef f64			f64mat1x1;	//!< \brief Double-precision floating-point scalar. (from GLM_GTX_number_precision extension)
52 
53 	/// @}
54 }//namespace gtx
55 }//namespace glm
56 
57 #include "number_precision.inl"
58