GLM: type_vec.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

type_vec.hpp
1
29 #ifndef glm_core_type_vec
30 #define glm_core_type_vec
31
32 #include "precision.hpp"
33 #include "type_int.hpp"
34
35 namespace glm{
36 namespace detail
37 {
38 template <typename T, precision P> struct tvec1;
39 template <typename T, precision P> struct tvec2;
40 template <typename T, precision P> struct tvec3;
41 template <typename T, precision P> struct tvec4;
42 }//namespace detail
43
44 typedef detail::tvec1<float, highp> highp_vec1_t;
45 typedef detail::tvec1<float, mediump> mediump_vec1_t;
46 typedef detail::tvec1<float, lowp> lowp_vec1_t;
47 typedef detail::tvec1<int, highp> highp_ivec1_t;
48 typedef detail::tvec1<int, mediump> mediump_ivec1_t;
49 typedef detail::tvec1<int, lowp> lowp_ivec1_t;
50 typedef detail::tvec1<uint, highp> highp_uvec1_t;
51 typedef detail::tvec1<uint, mediump> mediump_uvec1_t;
52 typedef detail::tvec1<uint, lowp> lowp_uvec1_t;
53 typedef detail::tvec1<bool, highp> highp_bvec1_t;
54 typedef detail::tvec1<bool, mediump> mediump_bvec1_t;
55 typedef detail::tvec1<bool, lowp> lowp_bvec1_t;
56
59
65 typedef detail::tvec2<float, highp> highp_vec2;
66
72 typedef detail::tvec2<float, mediump> mediump_vec2;
73
79 typedef detail::tvec2<float, lowp> lowp_vec2;
80
86 typedef detail::tvec2<double, highp> highp_dvec2;
87
93 typedef detail::tvec2<double, mediump> mediump_dvec2;
94
100 typedef detail::tvec2<double, lowp> lowp_dvec2;
101
107 typedef detail::tvec2<int, highp> highp_ivec2;
108
114 typedef detail::tvec2<int, mediump> mediump_ivec2;
115
121 typedef detail::tvec2<int, lowp> lowp_ivec2;
122
128 typedef detail::tvec2<uint, highp> highp_uvec2;
129
135 typedef detail::tvec2<uint, mediump> mediump_uvec2;
136
142 typedef detail::tvec2<uint, lowp> lowp_uvec2;
143
149 typedef detail::tvec2<bool, highp> highp_bvec2;
150
156 typedef detail::tvec2<bool, mediump> mediump_bvec2;
157
163 typedef detail::tvec2<bool, lowp> lowp_bvec2;
164
166
167
170
176 typedef detail::tvec3<float, highp> highp_vec3;
177
183 typedef detail::tvec3<float, mediump> mediump_vec3;
184
190 typedef detail::tvec3<float, lowp> lowp_vec3;
191
197 typedef detail::tvec3<double, highp> highp_dvec3;
198
204 typedef detail::tvec3<double, mediump> mediump_dvec3;
205
211 typedef detail::tvec3<double, lowp> lowp_dvec3;
212
218 typedef detail::tvec3<int, highp> highp_ivec3;
219
225 typedef detail::tvec3<int, mediump> mediump_ivec3;
226
232 typedef detail::tvec3<int, lowp> lowp_ivec3;
233
239 typedef detail::tvec3<uint, highp> highp_uvec3;
240
246 typedef detail::tvec3<uint, mediump> mediump_uvec3;
247
253 typedef detail::tvec3<uint, lowp> lowp_uvec3;
254
259 typedef detail::tvec3<bool, highp> highp_bvec3;
260
265 typedef detail::tvec3<bool, mediump> mediump_bvec3;
266
271 typedef detail::tvec3<bool, lowp> lowp_bvec3;
272
274
277
282 typedef detail::tvec4<float, highp> highp_vec4;
283
288 typedef detail::tvec4<float, mediump> mediump_vec4;
289
294 typedef detail::tvec4<float, lowp> lowp_vec4;
295
300 typedef detail::tvec4<double, highp> highp_dvec4;
301
306 typedef detail::tvec4<double, mediump> mediump_dvec4;
307
312 typedef detail::tvec4<double, lowp> lowp_dvec4;
313
318 typedef detail::tvec4<int, highp> highp_ivec4;
319
324 typedef detail::tvec4<int, mediump> mediump_ivec4;
325
330 typedef detail::tvec4<int, lowp> lowp_ivec4;
331
336 typedef detail::tvec4<uint, highp> highp_uvec4;
337
342 typedef detail::tvec4<uint, mediump> mediump_uvec4;
343
348 typedef detail::tvec4<uint, lowp> lowp_uvec4;
349
354 typedef detail::tvec4<bool, highp> highp_bvec4;
355
360 typedef detail::tvec4<bool, mediump> mediump_bvec4;
361
366 typedef detail::tvec4<bool, lowp> lowp_bvec4;
367
369
372
374 // Default float definition
375
376 #if(defined(GLM_PRECISION_LOWP_FLOAT))
377 typedef lowp_vec2 vec2;
378 typedef lowp_vec3 vec3;
379 typedef lowp_vec4 vec4;
380 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
381 typedef mediump_vec2 vec2;
382 typedef mediump_vec3 vec3;
383 typedef mediump_vec4 vec4;
384 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
385 typedef highp_vec2 vec2;
389
393 typedef highp_vec3 vec3;
394
398 typedef highp_vec4 vec4;
399 #endif//GLM_PRECISION
400
402 // Default double definition
403
404 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
405 typedef lowp_dvec2 dvec2;
406 typedef lowp_dvec3 dvec3;
407 typedef lowp_dvec4 dvec4;
408 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
409 typedef mediump_dvec2 dvec2;
410 typedef mediump_dvec3 dvec3;
411 typedef mediump_dvec4 dvec4;
412 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
413 typedef highp_dvec2 dvec2;
417
421 typedef highp_dvec3 dvec3;
422
426 typedef highp_dvec4 dvec4;
427 #endif//GLM_PRECISION
428
430 // Signed integer definition
431
432 #if(defined(GLM_PRECISION_LOWP_INT))
433 typedef lowp_ivec2 ivec2;
434 typedef lowp_ivec3 ivec3;
435 typedef lowp_ivec4 ivec4;
436 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
437 typedef mediump_ivec2 ivec2;
438 typedef mediump_ivec3 ivec3;
439 typedef mediump_ivec4 ivec4;
440 #else //defined(GLM_PRECISION_HIGHP_INT)
441 typedef highp_ivec2 ivec2;
445
449 typedef highp_ivec3 ivec3;
450
454 typedef highp_ivec4 ivec4;
455 #endif//GLM_PRECISION
456
458 // Unsigned integer definition
459
460 #if(defined(GLM_PRECISION_LOWP_UINT))
461 typedef lowp_uvec2 uvec2;
462 typedef lowp_uvec3 uvec3;
463 typedef lowp_uvec4 uvec4;
464 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
465 typedef mediump_uvec2 uvec2;
466 typedef mediump_uvec3 uvec3;
467 typedef mediump_uvec4 uvec4;
468 #else //defined(GLM_PRECISION_HIGHP_UINT)
469 typedef highp_uvec2 uvec2;
473
477 typedef highp_uvec3 uvec3;
478
482 typedef highp_uvec4 uvec4;
483 #endif//GLM_PRECISION
484
486 // Boolean definition
487
488 #if(defined(GLM_PRECISION_LOWP_BOOL))
489 typedef lowp_bvec2 bvec2;
490 typedef lowp_bvec3 bvec3;
491 typedef lowp_bvec4 bvec4;
492 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
493 typedef mediump_bvec2 bvec2;
494 typedef mediump_bvec3 bvec3;
495 typedef mediump_bvec4 bvec4;
496 #else //defined(GLM_PRECISION_HIGHP_BOOL)
497 typedef highp_bvec2 bvec2;
501
505 typedef highp_bvec3 bvec3;
506
510 typedef highp_bvec4 bvec4;
511 #endif//GLM_PRECISION
512
514 }//namespace glm
515
516 #endif//glm_core_type_vec
glm::ivec4
highp_ivec4 ivec4
4 components vector of signed integer numbers.
Definition: type_vec.hpp:454
glm::highp_bvec4
detail::tvec4< bool, highp > highp_bvec4
4 components vector of high precision bool numbers.
Definition: type_vec.hpp:354
glm::highp_uvec2
detail::tvec2< uint, highp > highp_uvec2
2 components vector of high precision unsigned integer numbers.
Definition: type_vec.hpp:128
glm::highp_uvec4
detail::tvec4< uint, highp > highp_uvec4
4 components vector of high precision unsigned integer numbers.
Definition: type_vec.hpp:336
glm::bvec3
highp_bvec3 bvec3
3 components vector of boolean.
Definition: type_vec.hpp:505
glm::mediump_ivec3
detail::tvec3< int, mediump > mediump_ivec3
3 components vector of medium precision signed integer numbers.
Definition: type_vec.hpp:225
glm::bvec2
highp_bvec2 bvec2
2 components vector of boolean.
Definition: type_vec.hpp:500
glm::vec3
highp_vec3 vec3
3 components vector of floating-point numbers.
Definition: type_vec.hpp:393
glm::dvec3
highp_dvec3 dvec3
3 components vector of double-precision floating-point numbers.
Definition: type_vec.hpp:421
glm::mediump_ivec2
detail::tvec2< int, mediump > mediump_ivec2
2 components vector of medium precision signed integer numbers.
Definition: type_vec.hpp:114
glm::lowp_dvec4
detail::tvec4< double, lowp > lowp_dvec4
4 components vector of low double-precision floating-point numbers.
Definition: type_vec.hpp:312
glm::ivec2
highp_ivec2 ivec2
2 components vector of signed integer numbers.
Definition: type_vec.hpp:444
glm::lowp_uvec2
detail::tvec2< uint, lowp > lowp_uvec2
2 components vector of low precision unsigned integer numbers.
Definition: type_vec.hpp:142
glm::vec4
highp_vec4 vec4
4 components vector of floating-point numbers.
Definition: type_vec.hpp:398
glm::mediump_vec4
detail::tvec4< float, mediump > mediump_vec4
4 components vector of medium single-precision floating-point numbers.
Definition: type_vec.hpp:288
glm::mediump_bvec2
detail::tvec2< bool, mediump > mediump_bvec2
2 components vector of medium precision bool numbers.
Definition: type_vec.hpp:156
glm::lowp_bvec4
detail::tvec4< bool, lowp > lowp_bvec4
4 components vector of low precision bool numbers.
Definition: type_vec.hpp:366
glm::lowp_uvec3
detail::tvec3< uint, lowp > lowp_uvec3
3 components vector of low precision unsigned integer numbers.
Definition: type_vec.hpp:253
glm::lowp_vec3
detail::tvec3< float, lowp > lowp_vec3
3 components vector of low single-precision floating-point numbers.
Definition: type_vec.hpp:190
glm::lowp_ivec4
detail::tvec4< int, lowp > lowp_ivec4
4 components vector of low precision signed integer numbers.
Definition: type_vec.hpp:330
glm::highp_bvec2
detail::tvec2< bool, highp > highp_bvec2
2 components vector of high precision bool numbers.
Definition: type_vec.hpp:149
glm::highp_dvec4
detail::tvec4< double, highp > highp_dvec4
4 components vector of high double-precision floating-point numbers.
Definition: type_vec.hpp:300
glm::lowp_uvec4
detail::tvec4< uint, lowp > lowp_uvec4
4 components vector of low precision unsigned integer numbers.
Definition: type_vec.hpp:348
glm::highp_vec3
detail::tvec3< float, highp > highp_vec3
3 components vector of high single-precision floating-point numbers.
Definition: type_vec.hpp:176
glm::dvec2
highp_dvec2 dvec2
2 components vector of double-precision floating-point numbers.
Definition: type_vec.hpp:416
glm::mediump_bvec3
detail::tvec3< bool, mediump > mediump_bvec3
3 components vector of medium precision bool numbers.
Definition: type_vec.hpp:265
glm::mediump_dvec4
detail::tvec4< double, mediump > mediump_dvec4
4 components vector of medium double-precision floating-point numbers.
Definition: type_vec.hpp:306
glm::highp_dvec2
detail::tvec2< double, highp > highp_dvec2
2 components vector of high double-precision floating-point numbers.
Definition: type_vec.hpp:86
glm::highp_uvec3
detail::tvec3< uint, highp > highp_uvec3
3 components vector of high precision unsigned integer numbers.
Definition: type_vec.hpp:239
glm::ivec3
highp_ivec3 ivec3
3 components vector of signed integer numbers.
Definition: type_vec.hpp:449
glm::mediump_uvec3
detail::tvec3< uint, mediump > mediump_uvec3
3 components vector of medium precision unsigned integer numbers.
Definition: type_vec.hpp:246
glm::mediump_bvec4
detail::tvec4< bool, mediump > mediump_bvec4
4 components vector of medium precision bool numbers.
Definition: type_vec.hpp:360
glm::lowp_bvec3
detail::tvec3< bool, lowp > lowp_bvec3
3 components vector of low precision bool numbers.
Definition: type_vec.hpp:271
glm::highp_dvec3
detail::tvec3< double, highp > highp_dvec3
3 components vector of high double-precision floating-point numbers.
Definition: type_vec.hpp:197
glm::uvec3
highp_uvec3 uvec3
3 components vector of unsigned integer numbers.
Definition: type_vec.hpp:477
glm::dvec4
highp_dvec4 dvec4
4 components vector of double-precision floating-point numbers.
Definition: type_vec.hpp:426
glm::mediump_uvec2
detail::tvec2< uint, mediump > mediump_uvec2
2 components vector of medium precision unsigned integer numbers.
Definition: type_vec.hpp:135
glm::lowp_ivec2
detail::tvec2< int, lowp > lowp_ivec2
2 components vector of low precision signed integer numbers.
Definition: type_vec.hpp:121
glm::lowp_bvec2
detail::tvec2< bool, lowp > lowp_bvec2
2 components vector of low precision bool numbers.
Definition: type_vec.hpp:163
glm::mediump_ivec4
detail::tvec4< int, mediump > mediump_ivec4
4 components vector of medium precision signed integer numbers.
Definition: type_vec.hpp:324
glm::lowp_dvec2
detail::tvec2< double, lowp > lowp_dvec2
2 components vector of low double-precision floating-point numbers.
Definition: type_vec.hpp:100
glm::highp_vec2
detail::tvec2< float, highp > highp_vec2
2 components vector of high single-precision floating-point numbers.
Definition: type_vec.hpp:65
glm::mediump_dvec3
detail::tvec3< double, mediump > mediump_dvec3
3 components vector of medium double-precision floating-point numbers.
Definition: type_vec.hpp:204
glm::lowp_dvec3
detail::tvec3< double, lowp > lowp_dvec3
3 components vector of low double-precision floating-point numbers.
Definition: type_vec.hpp:211
glm::lowp_vec2
detail::tvec2< float, lowp > lowp_vec2
2 components vector of low single-precision floating-point numbers.
Definition: type_vec.hpp:79
glm::mediump_dvec2
detail::tvec2< double, mediump > mediump_dvec2
2 components vector of medium double-precision floating-point numbers.
Definition: type_vec.hpp:93
glm::uvec4
highp_uvec4 uvec4
4 components vector of unsigned integer numbers.
Definition: type_vec.hpp:482
glm::lowp_ivec3
detail::tvec3< int, lowp > lowp_ivec3
3 components vector of low precision signed integer numbers.
Definition: type_vec.hpp:232
glm::uvec2
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
Definition: type_vec.hpp:472
glm::bvec4
highp_bvec4 bvec4
4 components vector of boolean.
Definition: type_vec.hpp:510
glm::highp_ivec2
detail::tvec2< int, highp > highp_ivec2
2 components vector of high precision signed integer numbers.
Definition: type_vec.hpp:107
glm::lowp_vec4
detail::tvec4< float, lowp > lowp_vec4
4 components vector of low single-precision floating-point numbers.
Definition: type_vec.hpp:294
glm::mediump_vec2
detail::tvec2< float, mediump > mediump_vec2
2 components vector of medium single-precision floating-point numbers.
Definition: type_vec.hpp:72
glm::vec2
highp_vec2 vec2
2 components vector of floating-point numbers.
Definition: type_vec.hpp:388
glm::highp_ivec3
detail::tvec3< int, highp > highp_ivec3
3 components vector of high precision signed integer numbers.
Definition: type_vec.hpp:218
glm::highp_bvec3
detail::tvec3< bool, highp > highp_bvec3
3 components vector of high precision bool numbers.
Definition: type_vec.hpp:259
glm::highp_vec4
detail::tvec4< float, highp > highp_vec4
4 components vector of high single-precision floating-point numbers.
Definition: type_vec.hpp:282
glm::highp_ivec4
detail::tvec4< int, highp > highp_ivec4
4 components vector of high precision signed integer numbers.
Definition: type_vec.hpp:318
glm::mediump_uvec4
detail::tvec4< uint, mediump > mediump_uvec4
4 components vector of medium precision unsigned integer numbers.
Definition: type_vec.hpp:342
glm::mediump_vec3
detail::tvec3< float, mediump > mediump_vec3
3 components vector of medium single-precision floating-point numbers.
Definition: type_vec.hpp:183