- Main Page
- Related Pages
- Modules
- Files

- File List

vec1.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
30
31
32
33
34
35
36
37 #ifndef GLM_GTX_vec1
38 #define GLM_GTX_vec1 GLM_VERSION
39
40 // Dependency:
41 #include "../glm.hpp"
42 #include "../core/type_vec1.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
45 # pragma message("GLM: GLM_GTX_vec1 extension included")
46 #endif
47
48 namespace glm
49 {
53 typedef detail::highp_vec1_t highp_vec1;
57 typedef detail::mediump_vec1_t mediump_vec1;
61 typedef detail::lowp_vec1_t lowp_vec1;
62
66 typedef detail::highp_ivec1_t highp_ivec1;
70 typedef detail::mediump_ivec1_t mediump_ivec1;
74 typedef detail::lowp_ivec1_t lowp_ivec1;
75
79 typedef detail::highp_uvec1_t highp_uvec1;
83 typedef detail::mediump_uvec1_t mediump_uvec1;
87 typedef detail::lowp_uvec1_t lowp_uvec1;
88
90 // vec1 definition
91
94 typedef detail::tvec1<bool> bvec1;
95
96 #if(defined(GLM_PRECISION_HIGHP_FLOAT))
97 typedef highp_vec1 vec1;
98 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
99 typedef mediump_vec1 vec1;
100 #elif(defined(GLM_PRECISION_LOWP_FLOAT))
101 typedef lowp_vec1 vec1;
102 #else
103
104
105 typedef mediump_vec1 vec1;
106 #endif//GLM_PRECISION
107
108 #if(defined(GLM_PRECISION_HIGHP_INT))
109 typedef highp_ivec1 ivec1;
110 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
111 typedef mediump_ivec1 ivec1;
112 #elif(defined(GLM_PRECISION_LOWP_INT))
113 typedef lowp_ivec1 ivec1;
114 #else
115
116
117 typedef mediump_ivec1 ivec1;
118 #endif//GLM_PRECISION
119
120 #if(defined(GLM_PRECISION_HIGHP_UINT))
121 typedef highp_uvec1 uvec1;
122 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
123 typedef mediump_uvec1 uvec1;
124 #elif(defined(GLM_PRECISION_LOWP_UINT))
125 typedef lowp_uvec1 uvec1;
126 #else
127
128
129 typedef mediump_uvec1 uvec1;
130 #endif//GLM_PRECISION
131
132 }// namespace glm
133
134 #include "vec1.inl"
135
136 #endif//GLM_GTX_vec1
137