type_vec.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "precision.hpp"
32 #include "type_int.hpp"
33 
34 namespace glm{
35 namespace detail
36 {
37  template <typename T, precision P> struct tvec1;
38  template <typename T, precision P> struct tvec2;
39  template <typename T, precision P> struct tvec3;
40  template <typename T, precision P> struct tvec4;
41 }//namespace detail
42 
55 
58 
65 
72 
79 
86 
93 
100 
107 
114 
121 
128 
135 
142 
149 
156 
163 
165 
166 
169 
176 
183 
190 
197 
204 
211 
218 
225 
232 
239 
246 
253 
259 
265 
271 
273 
276 
282 
288 
294 
300 
306 
312 
318 
324 
330 
336 
342 
348 
354 
360 
366 
368 
371 
373  // Default float definition
374 
375 #if(defined(GLM_PRECISION_LOWP_FLOAT))
376  typedef lowp_vec2 vec2;
377  typedef lowp_vec3 vec3;
378  typedef lowp_vec4 vec4;
379 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
380  typedef mediump_vec2 vec2;
381  typedef mediump_vec3 vec3;
382  typedef mediump_vec4 vec4;
383 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
384  typedef highp_vec2 vec2;
388 
392  typedef highp_vec3 vec3;
393 
397  typedef highp_vec4 vec4;
398 #endif//GLM_PRECISION
399 
401  // Default double definition
402 
403 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
404  typedef lowp_dvec2 dvec2;
405  typedef lowp_dvec3 dvec3;
406  typedef lowp_dvec4 dvec4;
407 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
408  typedef mediump_dvec2 dvec2;
409  typedef mediump_dvec3 dvec3;
410  typedef mediump_dvec4 dvec4;
411 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
412  typedef highp_dvec2 dvec2;
416 
420  typedef highp_dvec3 dvec3;
421 
425  typedef highp_dvec4 dvec4;
426 #endif//GLM_PRECISION
427 
429  // Signed integer definition
430 
431 #if(defined(GLM_PRECISION_LOWP_INT))
432  typedef lowp_ivec2 ivec2;
433  typedef lowp_ivec3 ivec3;
434  typedef lowp_ivec4 ivec4;
435 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
436  typedef mediump_ivec2 ivec2;
437  typedef mediump_ivec3 ivec3;
438  typedef mediump_ivec4 ivec4;
439 #else //defined(GLM_PRECISION_HIGHP_INT)
440  typedef highp_ivec2 ivec2;
444 
448  typedef highp_ivec3 ivec3;
449 
453  typedef highp_ivec4 ivec4;
454 #endif//GLM_PRECISION
455 
457  // Unsigned integer definition
458 
459 #if(defined(GLM_PRECISION_LOWP_UINT))
460  typedef lowp_uvec2 uvec2;
461  typedef lowp_uvec3 uvec3;
462  typedef lowp_uvec4 uvec4;
463 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
464  typedef mediump_uvec2 uvec2;
465  typedef mediump_uvec3 uvec3;
466  typedef mediump_uvec4 uvec4;
467 #else //defined(GLM_PRECISION_HIGHP_UINT)
468  typedef highp_uvec2 uvec2;
472 
476  typedef highp_uvec3 uvec3;
477 
481  typedef highp_uvec4 uvec4;
482 #endif//GLM_PRECISION
483 
485  // Boolean definition
486 
487 #if(defined(GLM_PRECISION_LOWP_BOOL))
488  typedef lowp_bvec2 bvec2;
489  typedef lowp_bvec3 bvec3;
490  typedef lowp_bvec4 bvec4;
491 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
492  typedef mediump_bvec2 bvec2;
493  typedef mediump_bvec3 bvec3;
494  typedef mediump_bvec4 bvec4;
495 #else //defined(GLM_PRECISION_HIGHP_BOOL)
496  typedef highp_bvec2 bvec2;
500 
504  typedef highp_bvec3 bvec3;
505 
509  typedef highp_bvec4 bvec4;
510 #endif//GLM_PRECISION
511 
513 }//namespace glm
detail::tvec2< bool, lowp > lowp_bvec2
Definition: type_vec.hpp:162
highp_vec4 vec4
Definition: type_vec.hpp:397
detail::tvec2< float, highp > highp_vec2
Definition: type_vec.hpp:64
detail::tvec4< bool, lowp > lowp_bvec4
Definition: type_vec.hpp:365
highp_vec3 vec3
Definition: type_vec.hpp:392
detail::tvec2< float, lowp > lowp_vec2
Definition: type_vec.hpp:78
detail::tvec4< int, lowp > lowp_ivec4
Definition: type_vec.hpp:329
detail::tvec2< int, lowp > lowp_ivec2
Definition: type_vec.hpp:120
detail::tvec3< float, highp > highp_vec3
Definition: type_vec.hpp:175
detail::tvec1< bool, highp > highp_bvec1_t
Definition: type_vec.hpp:52
detail::tvec3< float, mediump > mediump_vec3
Definition: type_vec.hpp:182
detail::tvec4< double, lowp > lowp_dvec4
Definition: type_vec.hpp:311
highp_dvec3 dvec3
Definition: type_vec.hpp:420
detail::tvec2< double, lowp > lowp_dvec2
Definition: type_vec.hpp:99
detail::tvec4< int, highp > highp_ivec4
Definition: type_vec.hpp:317
detail::tvec1< float, highp > highp_vec1_t
Definition: type_vec.hpp:43
detail::tvec3< int, highp > highp_ivec3
Definition: type_vec.hpp:217
highp_uvec4 uvec4
Definition: type_vec.hpp:481
detail::tvec1< bool, mediump > mediump_bvec1_t
Definition: type_vec.hpp:53
highp_ivec2 ivec2
Definition: type_vec.hpp:443
detail::tvec3< bool, mediump > mediump_bvec3
Definition: type_vec.hpp:264
highp_ivec3 ivec3
Definition: type_vec.hpp:448
detail::tvec1< int, highp > highp_ivec1_t
Definition: type_vec.hpp:46
detail::tvec3< uint, mediump > mediump_uvec3
Definition: type_vec.hpp:245
detail::tvec2< double, mediump > mediump_dvec2
Definition: type_vec.hpp:92
detail::tvec3< int, lowp > lowp_ivec3
Definition: type_vec.hpp:231
detail::tvec1< uint, highp > highp_uvec1_t
Definition: type_vec.hpp:49
detail::tvec3< double, highp > highp_dvec3
Definition: type_vec.hpp:196
detail::tvec3< bool, lowp > lowp_bvec3
Definition: type_vec.hpp:270
detail::tvec3< bool, highp > highp_bvec3
Definition: type_vec.hpp:258
detail::tvec4< float, highp > highp_vec4
Definition: type_vec.hpp:281
detail::tvec2< int, highp > highp_ivec2
Definition: type_vec.hpp:106
detail::tvec4< bool, mediump > mediump_bvec4
Definition: type_vec.hpp:359
detail::tvec2< uint, mediump > mediump_uvec2
Definition: type_vec.hpp:134
detail::tvec3< double, mediump > mediump_dvec3
Definition: type_vec.hpp:203
detail::tvec4< uint, highp > highp_uvec4
Definition: type_vec.hpp:335
highp_ivec4 ivec4
Definition: type_vec.hpp:453
detail::tvec4< float, mediump > mediump_vec4
Definition: type_vec.hpp:287
highp_uvec3 uvec3
Definition: type_vec.hpp:476
detail::tvec1< uint, mediump > mediump_uvec1_t
Definition: type_vec.hpp:50
detail::tvec3< int, mediump > mediump_ivec3
Definition: type_vec.hpp:224
detail::tvec1< int, lowp > lowp_ivec1_t
Definition: type_vec.hpp:48
detail::tvec2< bool, highp > highp_bvec2
Definition: type_vec.hpp:148
detail::tvec1< bool, lowp > lowp_bvec1_t
Definition: type_vec.hpp:54
highp_bvec2 bvec2
Definition: type_vec.hpp:499
highp_vec2 vec2
Definition: type_vec.hpp:387
detail::tvec4< uint, mediump > mediump_uvec4
Definition: type_vec.hpp:341
detail::tvec1< uint, lowp > lowp_uvec1_t
Definition: type_vec.hpp:51
detail::tvec1< int, mediump > mediump_ivec1_t
Definition: type_vec.hpp:47
highp_dvec2 dvec2
Definition: type_vec.hpp:415
detail::tvec1< float, lowp > lowp_vec1_t
Definition: type_vec.hpp:45
detail::tvec2< float, mediump > mediump_vec2
Definition: type_vec.hpp:71
highp_dvec4 dvec4
Definition: type_vec.hpp:425
detail::tvec4< uint, lowp > lowp_uvec4
Definition: type_vec.hpp:347
detail::tvec3< uint, lowp > lowp_uvec3
Definition: type_vec.hpp:252
detail::tvec2< uint, highp > highp_uvec2
Definition: type_vec.hpp:127
detail::tvec3< double, lowp > lowp_dvec3
Definition: type_vec.hpp:210
highp_bvec4 bvec4
Definition: type_vec.hpp:509
detail::tvec4< double, highp > highp_dvec4
Definition: type_vec.hpp:299
detail::tvec2< int, mediump > mediump_ivec2
Definition: type_vec.hpp:113
detail::tvec1< float, mediump > mediump_vec1_t
Definition: type_vec.hpp:44
detail::tvec2< bool, mediump > mediump_bvec2
Definition: type_vec.hpp:155
detail::tvec3< uint, highp > highp_uvec3
Definition: type_vec.hpp:238
highp_uvec2 uvec2
Definition: type_vec.hpp:471
detail::tvec4< int, mediump > mediump_ivec4
Definition: type_vec.hpp:323
detail::tvec2< uint, lowp > lowp_uvec2
Definition: type_vec.hpp:141
detail::tvec4< float, lowp > lowp_vec4
Definition: type_vec.hpp:293
detail::tvec4< double, mediump > mediump_dvec4
Definition: type_vec.hpp:305
detail::tvec4< bool, highp > highp_bvec4
Definition: type_vec.hpp:353
detail::tvec3< float, lowp > lowp_vec3
Definition: type_vec.hpp:189
highp_bvec3 bvec3
Definition: type_vec.hpp:504
detail::tvec2< double, highp > highp_dvec2
Definition: type_vec.hpp:85


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:06