type_float.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "setup.hpp"
32 
33 namespace glm{
34 namespace detail
35 {
36  typedef float float32;
37  typedef double float64;
38 }//namespace detail
39 
40  typedef float lowp_float_t;
41  typedef float mediump_float_t;
42  typedef double highp_float_t;
43 
46 
53 
60 
67 
68 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
70 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
71  typedef highp_float float_t;
72 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
73  typedef mediump_float float_t;
74 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
75  typedef lowp_float float_t;
76 #else
77 # error "GLM error: multiple default precision requested for floating-point types"
78 #endif
79 
80  typedef float float32;
81  typedef double float64;
82 
84 // check type sizes
85 #ifndef GLM_STATIC_ASSERT_NULL
86  GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
87  GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
88 #endif//GLM_STATIC_ASSERT_NULL
89 
91 
92 }//namespace glm
glm::lowp_float_t
float lowp_float_t
Definition: type_float.hpp:40
glm::float32
float float32
Definition: type_float.hpp:80
detail
glm::float64
double float64
Definition: type_float.hpp:81
GLM_STATIC_ASSERT
#define GLM_STATIC_ASSERT(x, message)
Definition: setup.hpp:691
glm::detail::float64
double float64
Definition: type_float.hpp:37
glm::mediump_float
mediump_float_t mediump_float
Definition: type_float.hpp:59
setup.hpp
glm::mediump_float_t
float mediump_float_t
Definition: type_float.hpp:41
glm::highp_float
highp_float_t highp_float
Definition: type_float.hpp:66
glm::highp_float_t
double highp_float_t
Definition: type_float.hpp:42
glm
Definition: _literals.hpp:31
glm::detail::float32
float float32
Definition: type_float.hpp:36
glm::float_t
mediump_float float_t
Definition: type_float.hpp:69
glm::lowp_float
lowp_float_t lowp_float
Definition: type_float.hpp:52


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22