| 0.9.7

- Main Page
- Modules
- Files

- File List

type_float.hpp
Go to the documentation of this file.
1
33 #pragma once
34
35 #include "setup.hpp"
36
37 namespace glm{
38 namespace detail
39 {
40 typedef float float32;
41 typedef double float64;
42 }//namespace detail
43
44 typedef float lowp_float_t;
45 typedef float mediump_float_t;
46 typedef double highp_float_t;
47
50
56 typedef lowp_float_t lowp_float;
57
63 typedef mediump_float_t mediump_float;
64
70 typedef highp_float_t highp_float;
71
72 #if(!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 highp_float float_t;
76 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
77 typedef mediump_float float_t;
78 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
79 typedef lowp_float float_t;
80 #else
81 # error "GLM error: multiple default precision requested for floating-point types"
82 #endif
83
84 typedef float float32;
85 typedef double float64;
86
88 // check type sizes
89 #ifndef GLM_STATIC_ASSERT_NULL
90 GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
91 GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
92 #endif//GLM_STATIC_ASSERT_NULL
93
95
96 }//namespace glm
glm::lowp_float
lowp_float_t lowp_float
Low precision floating-point numbers.
Definition: type_float.hpp:56
glm::float32
float float32
Default 32 bit single-precision floating-point scalar.
Definition: type_float.hpp:84
glm
Definition: _noise.hpp:40
glm::mediump_float
mediump_float_t mediump_float
Medium precision floating-point numbers.
Definition: type_float.hpp:63
setup.hpp
OpenGL Mathematics (glm.g-truc.net)
glm::float64
double float64
Default 64 bit double-precision floating-point scalar.
Definition: type_float.hpp:85
glm::highp_float
highp_float_t highp_float
High precision floating-point numbers.
Definition: type_float.hpp:70