0.9.9 API documenation
gtc/type_aligned.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #if !GLM_HAS_ALIGNED_TYPE
15 # error "GLM: Aligned types are not supported on this platform"
16 #endif
17 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
18 # pragma message("GLM: GLM_GTC_type_aligned extension included")
19 #endif
20 
21 #include "../vec2.hpp"
22 #include "../vec3.hpp"
23 #include "../vec4.hpp"
24 #include "../gtc/vec1.hpp"
25 
26 namespace glm
27 {
30 
31  // -- *vec1 --
32 
33  typedef vec<1, float, aligned_highp> aligned_highp_vec1;
34  typedef vec<1, float, aligned_mediump> aligned_mediump_vec1;
35  typedef vec<1, float, aligned_lowp> aligned_lowp_vec1;
36  typedef vec<1, double, aligned_highp> aligned_highp_dvec1;
37  typedef vec<1, double, aligned_mediump> aligned_mediump_dvec1;
38  typedef vec<1, double, aligned_lowp> aligned_lowp_dvec1;
39  typedef vec<1, int, aligned_highp> aligned_highp_ivec1;
40  typedef vec<1, int, aligned_mediump> aligned_mediump_ivec1;
41  typedef vec<1, int, aligned_lowp> aligned_lowp_ivec1;
42  typedef vec<1, uint, aligned_highp> aligned_highp_uvec1;
43  typedef vec<1, uint, aligned_mediump> aligned_mediump_uvec1;
44  typedef vec<1, uint, aligned_lowp> aligned_lowp_uvec1;
45  typedef vec<1, bool, aligned_highp> aligned_highp_bvec1;
46  typedef vec<1, bool, aligned_mediump> aligned_mediump_bvec1;
47  typedef vec<1, bool, aligned_lowp> aligned_lowp_bvec1;
48 
49  typedef vec<1, float, packed_highp> packed_highp_vec1;
50  typedef vec<1, float, packed_mediump> packed_mediump_vec1;
51  typedef vec<1, float, packed_lowp> packed_lowp_vec1;
52  typedef vec<1, double, packed_highp> packed_highp_dvec1;
53  typedef vec<1, double, packed_mediump> packed_mediump_dvec1;
54  typedef vec<1, double, packed_lowp> packed_lowp_dvec1;
55  typedef vec<1, int, packed_highp> packed_highp_ivec1;
56  typedef vec<1, int, packed_mediump> packed_mediump_ivec1;
57  typedef vec<1, int, packed_lowp> packed_lowp_ivec1;
58  typedef vec<1, uint, packed_highp> packed_highp_uvec1;
59  typedef vec<1, uint, packed_mediump> packed_mediump_uvec1;
60  typedef vec<1, uint, packed_lowp> packed_lowp_uvec1;
61  typedef vec<1, bool, packed_highp> packed_highp_bvec1;
62  typedef vec<1, bool, packed_mediump> packed_mediump_bvec1;
63  typedef vec<1, bool, packed_lowp> packed_lowp_bvec1;
64 
65  // -- *vec2 --
66 
69  typedef vec<2, float, aligned_highp> aligned_highp_vec2;
70 
73  typedef vec<2, float, aligned_mediump> aligned_mediump_vec2;
74 
77  typedef vec<2, float, aligned_lowp> aligned_lowp_vec2;
78 
81  typedef vec<2, double, aligned_highp> aligned_highp_dvec2;
82 
85  typedef vec<2, double, aligned_mediump> aligned_mediump_dvec2;
86 
89  typedef vec<2, double, aligned_lowp> aligned_lowp_dvec2;
90 
93  typedef vec<2, int, aligned_highp> aligned_highp_ivec2;
94 
97  typedef vec<2, int, aligned_mediump> aligned_mediump_ivec2;
98 
101  typedef vec<2, int, aligned_lowp> aligned_lowp_ivec2;
102 
105  typedef vec<2, uint, aligned_highp> aligned_highp_uvec2;
106 
109  typedef vec<2, uint, aligned_mediump> aligned_mediump_uvec2;
110 
113  typedef vec<2, uint, aligned_lowp> aligned_lowp_uvec2;
114 
117  typedef vec<2, bool, aligned_highp> aligned_highp_bvec2;
118 
121  typedef vec<2, bool, aligned_mediump> aligned_mediump_bvec2;
122 
125  typedef vec<2, bool, aligned_lowp> aligned_lowp_bvec2;
126 
127  // -- *vec3 --
128 
131  typedef vec<3, float, aligned_highp> aligned_highp_vec3;
132 
135  typedef vec<3, float, aligned_mediump> aligned_mediump_vec3;
136 
139  typedef vec<3, float, aligned_lowp> aligned_lowp_vec3;
140 
143  typedef vec<3, double, aligned_highp> aligned_highp_dvec3;
144 
147  typedef vec<3, double, aligned_mediump> aligned_mediump_dvec3;
148 
151  typedef vec<3, double, aligned_lowp> aligned_lowp_dvec3;
152 
155  typedef vec<3, int, aligned_highp> aligned_highp_ivec3;
156 
159  typedef vec<3, int, aligned_mediump> aligned_mediump_ivec3;
160 
163  typedef vec<3, int, aligned_lowp> aligned_lowp_ivec3;
164 
167  typedef vec<3, uint, aligned_highp> aligned_highp_uvec3;
168 
171  typedef vec<3, uint, aligned_mediump> aligned_mediump_uvec3;
172 
175  typedef vec<3, uint, aligned_lowp> aligned_lowp_uvec3;
176 
178  typedef vec<3, bool, aligned_highp> aligned_highp_bvec3;
179 
181  typedef vec<3, bool, aligned_mediump> aligned_mediump_bvec3;
182 
184  typedef vec<3, bool, aligned_lowp> aligned_lowp_bvec3;
185 
186  // -- *vec4 --
187 
189  typedef vec<4, float, aligned_highp> aligned_highp_vec4;
190 
192  typedef vec<4, float, aligned_mediump> aligned_mediump_vec4;
193 
195  typedef vec<4, float, aligned_lowp> aligned_lowp_vec4;
196 
198  typedef vec<4, double, aligned_highp> aligned_highp_dvec4;
199 
201  typedef vec<4, double, aligned_mediump> aligned_mediump_dvec4;
202 
204  typedef vec<4, double, aligned_lowp> aligned_lowp_dvec4;
205 
207  typedef vec<4, int, aligned_highp> aligned_highp_ivec4;
208 
210  typedef vec<4, int, aligned_mediump> aligned_mediump_ivec4;
211 
213  typedef vec<4, int, aligned_lowp> aligned_lowp_ivec4;
214 
216  typedef vec<4, uint, aligned_highp> aligned_highp_uvec4;
217 
219  typedef vec<4, uint, aligned_mediump> aligned_mediump_uvec4;
220 
222  typedef vec<4, uint, aligned_lowp> aligned_lowp_uvec4;
223 
225  typedef vec<4, bool, aligned_highp> aligned_highp_bvec4;
226 
228  typedef vec<4, bool, aligned_mediump> aligned_mediump_bvec4;
229 
231  typedef vec<4, bool, aligned_lowp> aligned_lowp_bvec4;
232 
233  // -- default --
234 
235 #if(defined(GLM_PRECISION_LOWP_FLOAT))
236  typedef aligned_lowp_vec1 aligned_vec1;
237  typedef aligned_lowp_vec2 aligned_vec2;
238  typedef aligned_lowp_vec3 aligned_vec3;
239  typedef aligned_lowp_vec4 aligned_vec4;
240 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
241  typedef aligned_mediump_vec1 aligned_vec1;
242  typedef aligned_mediump_vec2 aligned_vec2;
243  typedef aligned_mediump_vec3 aligned_vec3;
244  typedef aligned_mediump_vec4 aligned_vec4;
245 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
246  typedef aligned_highp_vec1 aligned_vec1;
248 
250  typedef aligned_highp_vec2 aligned_vec2;
251 
253  typedef aligned_highp_vec3 aligned_vec3;
254 
256  typedef aligned_highp_vec4 aligned_vec4;
257 #endif//GLM_PRECISION
258 
259 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
260  typedef aligned_lowp_dvec1 aligned_dvec1;
261  typedef aligned_lowp_dvec2 aligned_dvec2;
262  typedef aligned_lowp_dvec3 aligned_dvec3;
263  typedef aligned_lowp_dvec4 aligned_dvec4;
264 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
265  typedef aligned_mediump_dvec1 aligned_dvec1;
266  typedef aligned_mediump_dvec2 aligned_dvec2;
267  typedef aligned_mediump_dvec3 aligned_dvec3;
268  typedef aligned_mediump_dvec4 aligned_dvec4;
269 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
270  typedef aligned_highp_dvec1 aligned_dvec1;
272 
274  typedef aligned_highp_dvec2 aligned_dvec2;
275 
277  typedef aligned_highp_dvec3 aligned_dvec3;
278 
280  typedef aligned_highp_dvec4 aligned_dvec4;
281 #endif//GLM_PRECISION
282 
283 #if(defined(GLM_PRECISION_LOWP_INT))
284  typedef aligned_lowp_ivec1 aligned_ivec1;
285  typedef aligned_lowp_ivec2 aligned_ivec2;
286  typedef aligned_lowp_ivec3 aligned_ivec3;
287  typedef aligned_lowp_ivec4 aligned_ivec4;
288 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
289  typedef aligned_mediump_ivec1 aligned_ivec1;
290  typedef aligned_mediump_ivec2 aligned_ivec2;
291  typedef aligned_mediump_ivec3 aligned_ivec3;
292  typedef aligned_mediump_ivec4 aligned_ivec4;
293 #else //defined(GLM_PRECISION_HIGHP_INT)
294  typedef aligned_highp_ivec1 aligned_ivec1;
296 
298  typedef aligned_highp_ivec2 aligned_ivec2;
299 
301  typedef aligned_highp_ivec3 aligned_ivec3;
302 
304  typedef aligned_highp_ivec4 aligned_ivec4;
305 #endif//GLM_PRECISION
306 
307  // -- Unsigned integer definition --
308 
309 #if(defined(GLM_PRECISION_LOWP_UINT))
310  typedef aligned_lowp_uvec1 aligned_uvec1;
311  typedef aligned_lowp_uvec2 aligned_uvec2;
312  typedef aligned_lowp_uvec3 aligned_uvec3;
313  typedef aligned_lowp_uvec4 aligned_uvec4;
314 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
315  typedef aligned_mediump_uvec1 aligned_uvec1;
316  typedef aligned_mediump_uvec2 aligned_uvec2;
317  typedef aligned_mediump_uvec3 aligned_uvec3;
318  typedef aligned_mediump_uvec4 aligned_uvec4;
319 #else //defined(GLM_PRECISION_HIGHP_UINT)
320  typedef aligned_highp_uvec1 aligned_uvec1;
322 
324  typedef aligned_highp_uvec2 aligned_uvec2;
325 
327  typedef aligned_highp_uvec3 aligned_uvec3;
328 
330  typedef aligned_highp_uvec4 aligned_uvec4;
331 #endif//GLM_PRECISION
332 
333 #if(defined(GLM_PRECISION_LOWP_BOOL))
334  typedef aligned_lowp_bvec1 aligned_bvec1;
335  typedef aligned_lowp_bvec2 aligned_bvec2;
336  typedef aligned_lowp_bvec3 aligned_bvec3;
337  typedef aligned_lowp_bvec4 aligned_bvec4;
338 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
339  typedef aligned_mediump_bvec1 aligned_bvec1;
340  typedef aligned_mediump_bvec2 aligned_bvec2;
341  typedef aligned_mediump_bvec3 aligned_bvec3;
342  typedef aligned_mediump_bvec4 aligned_bvec4;
343 #else //defined(GLM_PRECISION_HIGHP_BOOL)
344  typedef aligned_highp_bvec1 aligned_bvec1;
346 
348  typedef aligned_highp_bvec2 aligned_bvec2;
349 
351  typedef aligned_highp_bvec3 aligned_bvec3;
352 
354  typedef aligned_highp_bvec4 aligned_bvec4;
355 #endif//GLM_PRECISION
356 
358 }//namespace glm
vec< 2, double, aligned_mediump > aligned_mediump_dvec2
2 components vector of medium double-qualifier floating-point numbers.
vec< 2, float, aligned_lowp > aligned_lowp_vec2
2 components vector of low single-qualifier floating-point numbers.
aligned_highp_ivec3 aligned_ivec3
3 components vector of signed integer numbers.
vec< 2, bool, aligned_highp > aligned_highp_bvec2
2 components vector of high qualifier bool numbers.
aligned_highp_dvec1 aligned_dvec1
1 component vector of double-qualifier floating-point numbers.
vec< 4, float, aligned_lowp > aligned_lowp_vec4
4 components vector of low single-qualifier floating-point numbers.
vec< 3, int, aligned_mediump > aligned_mediump_ivec3
3 components vector of medium qualifier signed integer numbers.
vec< 4, float, aligned_mediump > aligned_mediump_vec4
4 components vector of medium single-qualifier floating-point numbers.
vec< 3, uint, aligned_lowp > aligned_lowp_uvec3
3 components vector of low qualifier unsigned integer numbers.
vec< 3, double, aligned_lowp > aligned_lowp_dvec3
3 components vector of low double-qualifier floating-point numbers.
vec< 4, int, aligned_highp > aligned_highp_ivec4
4 components vector of high qualifier signed integer numbers.
vec< 2, int, aligned_mediump > aligned_mediump_ivec2
2 components vector of medium qualifier signed integer numbers.
vec< 4, double, aligned_lowp > aligned_lowp_dvec4
4 components vector of low double-qualifier floating-point numbers.
aligned_highp_dvec4 aligned_dvec4
4 components vector of double-qualifier floating-point numbers.
vec< 2, bool, aligned_lowp > aligned_lowp_bvec2
2 components vector of low qualifier bool numbers.
vec< 4, double, aligned_highp > aligned_highp_dvec4
4 components vector of high double-qualifier floating-point numbers.
aligned_highp_bvec4 aligned_bvec4
4 components vector of boolean.
Definition: _noise.hpp:11
vec< 4, float, aligned_highp > aligned_highp_vec4
4 components vector of high single-qualifier floating-point numbers.
aligned_highp_vec2 aligned_vec2
2 components vector of floating-point numbers.
vec< 3, int, aligned_highp > aligned_highp_ivec3
3 components vector of high qualifier signed integer numbers.
vec< 3, bool, aligned_mediump > aligned_mediump_bvec3
3 components vector of medium qualifier bool numbers.
vec< 4, bool, aligned_lowp > aligned_lowp_bvec4
4 components vector of low qualifier bool numbers.
vec< 4, int, aligned_mediump > aligned_mediump_ivec4
4 components vector of medium qualifier signed integer numbers.
vec< 4, uint, aligned_mediump > aligned_mediump_uvec4
4 components vector of medium qualifier unsigned integer numbers.
vec< 3, int, aligned_lowp > aligned_lowp_ivec3
3 components vector of low qualifier signed integer numbers.
vec< 2, float, aligned_mediump > aligned_mediump_vec2
2 components vector of medium single-qualifier floating-point numbers.
aligned_highp_ivec1 aligned_ivec1
1 component vector of signed integer numbers.
vec< 2, double, aligned_lowp > aligned_lowp_dvec2
2 components vector of low double-qualifier floating-point numbers.
vec< 3, bool, aligned_highp > aligned_highp_bvec3
3 components vector of high qualifier bool numbers.
aligned_highp_dvec3 aligned_dvec3
3 components vector of double-qualifier floating-point numbers.
aligned_highp_bvec1 aligned_bvec1
1 component vector of boolean.
vec< 4, bool, aligned_highp > aligned_highp_bvec4
4 components vector of high qualifier bool numbers.
vec< 4, uint, aligned_lowp > aligned_lowp_uvec4
4 components vector of low qualifier unsigned integer numbers.
vec< 4, int, aligned_lowp > aligned_lowp_ivec4
4 components vector of low qualifier signed integer numbers.
aligned_highp_bvec3 aligned_bvec3
3 components vector of boolean.
vec< 2, uint, aligned_lowp > aligned_lowp_uvec2
2 components vector of low qualifier unsigned integer numbers.
vec< 3, double, aligned_highp > aligned_highp_dvec3
3 components vector of high double-qualifier floating-point numbers.
vec< 2, double, aligned_highp > aligned_highp_dvec2
2 components vector of high double-qualifier floating-point numbers.
vec< 2, int, aligned_lowp > aligned_lowp_ivec2
2 components vector of low qualifier signed integer numbers.
aligned_highp_uvec4 aligned_uvec4
4 components vector of unsigned integer numbers.
vec< 3, float, aligned_lowp > aligned_lowp_vec3
3 components vector of low single-qualifier floating-point numbers.
vec< 2, float, aligned_highp > aligned_highp_vec2
2 components vector of high single-qualifier floating-point numbers.
aligned_highp_vec4 aligned_vec4
4 components vector of floating-point numbers.
vec< 2, bool, aligned_mediump > aligned_mediump_bvec2
2 components vector of medium qualifier bool numbers.
vec< 3, bool, aligned_lowp > aligned_lowp_bvec3
3 components vector of low qualifier bool numbers.
aligned_highp_uvec3 aligned_uvec3
3 components vector of unsigned integer numbers.
vec< 2, uint, aligned_mediump > aligned_mediump_uvec2
2 components vector of medium qualifier unsigned integer numbers.
vec< 3, float, aligned_mediump > aligned_mediump_vec3
3 components vector of medium single-qualifier floating-point numbers.
vec< 2, uint, aligned_highp > aligned_highp_uvec2
2 components vector of high qualifier unsigned integer numbers.
vec< 4, double, aligned_mediump > aligned_mediump_dvec4
4 components vector of medium double-qualifier floating-point numbers.
aligned_highp_vec1 aligned_vec1
1 component vector of floating-point numbers.
aligned_highp_uvec1 aligned_uvec1
1 component vector of unsigned integer numbers.
aligned_highp_ivec2 aligned_ivec2
2 components vector of signed integer numbers.
vec< 2, int, aligned_highp > aligned_highp_ivec2
2 components vector of high qualifier signed integer numbers.
vec< 3, uint, aligned_mediump > aligned_mediump_uvec3
3 components vector of medium qualifier unsigned integer numbers.
vec< 4, uint, aligned_highp > aligned_highp_uvec4
4 components vector of high qualifier unsigned integer numbers.
vec< 3, double, aligned_mediump > aligned_mediump_dvec3
3 components vector of medium double-qualifier floating-point numbers.
aligned_highp_vec3 aligned_vec3
3 components vector of floating-point numbers.
aligned_highp_bvec2 aligned_bvec2
2 components vector of boolean.
aligned_highp_ivec4 aligned_ivec4
4 components vector of signed integer numbers.
vec< 3, float, aligned_highp > aligned_highp_vec3
3 components vector of high single-qualifier floating-point numbers.
vec< 3, uint, aligned_highp > aligned_highp_uvec3
3 components vector of high qualifier unsigned integer numbers.
aligned_highp_dvec2 aligned_dvec2
2 components vector of double-qualifier floating-point numbers.
aligned_highp_uvec2 aligned_uvec2
2 components vector of unsigned integer numbers.
vec< 4, bool, aligned_mediump > aligned_mediump_bvec4
4 components vector of medium qualifier bool numbers.