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 
421 
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 
449 
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 
477 
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 
505 
510 #endif//GLM_PRECISION
511 
513 }//namespace glm
glm::bvec2
highp_bvec2 bvec2
Definition: type_vec.hpp:499
glm::lowp_bvec2
detail::tvec2< bool, lowp > lowp_bvec2
Definition: type_vec.hpp:162
glm::mediump_vec2
detail::tvec2< float, mediump > mediump_vec2
Definition: type_vec.hpp:71
glm::mediump_vec4
detail::tvec4< float, mediump > mediump_vec4
Definition: type_vec.hpp:287
glm::vec2
highp_vec2 vec2
Definition: type_vec.hpp:387
glm::highp_vec2
detail::tvec2< float, highp > highp_vec2
Definition: type_vec.hpp:64
glm::highp_ivec1_t
detail::tvec1< int, highp > highp_ivec1_t
Definition: type_vec.hpp:46
glm::ivec3
highp_ivec3 ivec3
Definition: type_vec.hpp:448
glm::lowp_bvec4
detail::tvec4< bool, lowp > lowp_bvec4
Definition: type_vec.hpp:365
glm::highp_bvec2
detail::tvec2< bool, highp > highp_bvec2
Definition: type_vec.hpp:148
glm::uvec2
highp_uvec2 uvec2
Definition: type_vec.hpp:471
glm::lowp_dvec4
detail::tvec4< double, lowp > lowp_dvec4
Definition: type_vec.hpp:311
glm::lowp_vec1_t
detail::tvec1< float, lowp > lowp_vec1_t
Definition: type_vec.hpp:45
glm::mediump_ivec1_t
detail::tvec1< int, mediump > mediump_ivec1_t
Definition: type_vec.hpp:47
type_int.hpp
glm::mediump_uvec1_t
detail::tvec1< uint, mediump > mediump_uvec1_t
Definition: type_vec.hpp:50
glm::lowp_dvec2
detail::tvec2< double, lowp > lowp_dvec2
Definition: type_vec.hpp:99
glm::lowp_uvec4
detail::tvec4< uint, lowp > lowp_uvec4
Definition: type_vec.hpp:347
glm::highp_ivec4
detail::tvec4< int, highp > highp_ivec4
Definition: type_vec.hpp:317
detail
glm::vec3
highp_vec3 vec3
Definition: type_vec.hpp:392
glm::bvec3
highp_bvec3 bvec3
Definition: type_vec.hpp:504
glm::lowp_bvec3
detail::tvec3< bool, lowp > lowp_bvec3
Definition: type_vec.hpp:270
glm::mediump_uvec3
detail::tvec3< uint, mediump > mediump_uvec3
Definition: type_vec.hpp:245
glm::highp_ivec2
detail::tvec2< int, highp > highp_ivec2
Definition: type_vec.hpp:106
glm::detail::tvec3
Definition: type_mat.hpp:37
glm::highp_dvec3
detail::tvec3< double, highp > highp_dvec3
Definition: type_vec.hpp:196
glm::mediump_vec1_t
detail::tvec1< float, mediump > mediump_vec1_t
Definition: type_vec.hpp:44
glm::mediump_dvec3
detail::tvec3< double, mediump > mediump_dvec3
Definition: type_vec.hpp:203
glm::lowp_vec3
detail::tvec3< float, lowp > lowp_vec3
Definition: type_vec.hpp:189
glm::dvec4
highp_dvec4 dvec4
Definition: type_vec.hpp:425
glm::mediump_bvec2
detail::tvec2< bool, mediump > mediump_bvec2
Definition: type_vec.hpp:155
glm::mediump_bvec1_t
detail::tvec1< bool, mediump > mediump_bvec1_t
Definition: type_vec.hpp:53
glm::highp_uvec3
detail::tvec3< uint, highp > highp_uvec3
Definition: type_vec.hpp:238
glm::highp_bvec1_t
detail::tvec1< bool, highp > highp_bvec1_t
Definition: type_vec.hpp:52
glm::mediump_ivec2
detail::tvec2< int, mediump > mediump_ivec2
Definition: type_vec.hpp:113
glm::highp_dvec2
detail::tvec2< double, highp > highp_dvec2
Definition: type_vec.hpp:85
glm::dvec3
highp_dvec3 dvec3
Definition: type_vec.hpp:420
glm::bvec4
highp_bvec4 bvec4
Definition: type_vec.hpp:509
glm::mediump_ivec3
detail::tvec3< int, mediump > mediump_ivec3
Definition: type_vec.hpp:224
glm::mediump_dvec4
detail::tvec4< double, mediump > mediump_dvec4
Definition: type_vec.hpp:305
glm::vec4
highp_vec4 vec4
Definition: type_vec.hpp:397
glm::detail::tvec4
Definition: type_mat.hpp:38
glm
Definition: _literals.hpp:31
glm::highp_ivec3
detail::tvec3< int, highp > highp_ivec3
Definition: type_vec.hpp:217
glm::mediump_vec3
detail::tvec3< float, mediump > mediump_vec3
Definition: type_vec.hpp:182
glm::highp_bvec4
detail::tvec4< bool, highp > highp_bvec4
Definition: type_vec.hpp:353
glm::lowp_uvec3
detail::tvec3< uint, lowp > lowp_uvec3
Definition: type_vec.hpp:252
precision.hpp
glm::lowp_vec2
detail::tvec2< float, lowp > lowp_vec2
Definition: type_vec.hpp:78
glm::lowp_ivec1_t
detail::tvec1< int, lowp > lowp_ivec1_t
Definition: type_vec.hpp:48
glm::lowp_dvec3
detail::tvec3< double, lowp > lowp_dvec3
Definition: type_vec.hpp:210
glm::highp_bvec3
detail::tvec3< bool, highp > highp_bvec3
Definition: type_vec.hpp:258
glm::mediump_dvec2
detail::tvec2< double, mediump > mediump_dvec2
Definition: type_vec.hpp:92
glm::highp_vec3
detail::tvec3< float, highp > highp_vec3
Definition: type_vec.hpp:175
glm::highp_uvec2
detail::tvec2< uint, highp > highp_uvec2
Definition: type_vec.hpp:127
glm::highp_uvec1_t
detail::tvec1< uint, highp > highp_uvec1_t
Definition: type_vec.hpp:49
glm::detail::tvec1
Definition: type_vec.hpp:37
glm::uvec4
highp_uvec4 uvec4
Definition: type_vec.hpp:481
glm::lowp_ivec4
detail::tvec4< int, lowp > lowp_ivec4
Definition: type_vec.hpp:329
glm::lowp_ivec2
detail::tvec2< int, lowp > lowp_ivec2
Definition: type_vec.hpp:120
glm::uvec3
highp_uvec3 uvec3
Definition: type_vec.hpp:476
glm::highp_dvec4
detail::tvec4< double, highp > highp_dvec4
Definition: type_vec.hpp:299
glm::mediump_uvec2
detail::tvec2< uint, mediump > mediump_uvec2
Definition: type_vec.hpp:134
glm::lowp_uvec1_t
detail::tvec1< uint, lowp > lowp_uvec1_t
Definition: type_vec.hpp:51
glm::ivec2
highp_ivec2 ivec2
Definition: type_vec.hpp:443
glm::mediump_bvec3
detail::tvec3< bool, mediump > mediump_bvec3
Definition: type_vec.hpp:264
glm::lowp_uvec2
detail::tvec2< uint, lowp > lowp_uvec2
Definition: type_vec.hpp:141
glm::mediump_ivec4
detail::tvec4< int, mediump > mediump_ivec4
Definition: type_vec.hpp:323
glm::ivec4
highp_ivec4 ivec4
Definition: type_vec.hpp:453
glm::lowp_vec4
detail::tvec4< float, lowp > lowp_vec4
Definition: type_vec.hpp:293
glm::highp_vec4
detail::tvec4< float, highp > highp_vec4
Definition: type_vec.hpp:281
glm::lowp_ivec3
detail::tvec3< int, lowp > lowp_ivec3
Definition: type_vec.hpp:231
glm::mediump_uvec4
detail::tvec4< uint, mediump > mediump_uvec4
Definition: type_vec.hpp:341
glm::mediump_bvec4
detail::tvec4< bool, mediump > mediump_bvec4
Definition: type_vec.hpp:359
glm::lowp_bvec1_t
detail::tvec1< bool, lowp > lowp_bvec1_t
Definition: type_vec.hpp:54
glm::detail::tvec2
Definition: type_mat.hpp:36
glm::highp_vec1_t
detail::tvec1< float, highp > highp_vec1_t
Definition: type_vec.hpp:43
glm::dvec2
highp_dvec2 dvec2
Definition: type_vec.hpp:415
glm::highp_uvec4
detail::tvec4< uint, highp > highp_uvec4
Definition: type_vec.hpp:335


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22