- Main Page
- Related Pages
- Modules
- Files

- File List

type_float.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef glm_core_type_float
30 #define glm_core_type_float
31
32 #include "type_half.hpp"
33 #include "setup.hpp"
34
35 namespace glm
36 {
37 #ifdef GLM_USE_HALF_SCALAR
38 typedef detail::half lowp_float_t;
39 #else//GLM_USE_HALF_SCALAR
40 typedef float lowp_float_t;
41 #endif//GLM_USE_HALF_SCALAR
42 typedef float mediump_float_t;
43 typedef double highp_float_t;
44
47
53 typedef lowp_float_t lowp_float;
54
60 typedef mediump_float_t mediump_float;
61
67 typedef highp_float_t highp_float;
68
69 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
70 typedef mediump_float float_t;
71 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
72 typedef highp_float float_t;
73 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
74 typedef mediump_float float_t;
75 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
76 typedef lowp_float float_t;
77 #else
78 # error "GLM error: multiple default precision requested for floating-point types"
79 #endif
80
82 }//namespace glm
83
84 #endif//glm_core_type_float