40 template <
typename T, precision P>
struct tvec1;
41 template <
typename T, precision P>
struct tvec2;
42 template <
typename T, precision P>
struct tvec3;
43 template <
typename T, precision P>
struct tvec4;
45 typedef tvec1<float, highp> highp_vec1_t;
46 typedef tvec1<float, mediump> mediump_vec1_t;
47 typedef tvec1<float, lowp> lowp_vec1_t;
48 typedef tvec1<double, highp> highp_dvec1_t;
49 typedef tvec1<double, mediump> mediump_dvec1_t;
50 typedef tvec1<double, lowp> lowp_dvec1_t;
51 typedef tvec1<int, highp> highp_ivec1_t;
52 typedef tvec1<int, mediump> mediump_ivec1_t;
53 typedef tvec1<int, lowp> lowp_ivec1_t;
54 typedef tvec1<uint, highp> highp_uvec1_t;
55 typedef tvec1<uint, mediump> mediump_uvec1_t;
56 typedef tvec1<uint, lowp> lowp_uvec1_t;
57 typedef tvec1<bool, highp> highp_bvec1_t;
58 typedef tvec1<bool, mediump> mediump_bvec1_t;
59 typedef tvec1<bool, lowp> lowp_bvec1_t;
380 #if(defined(GLM_PRECISION_LOWP_FLOAT))
381 typedef lowp_vec2
vec2;
382 typedef lowp_vec3
vec3;
383 typedef lowp_vec4
vec4;
384 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
385 typedef mediump_vec2
vec2;
386 typedef mediump_vec3
vec3;
387 typedef mediump_vec4
vec4;
388 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
389 typedef highp_vec2
vec2;
403 #endif//GLM_PRECISION
408 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
409 typedef lowp_dvec2
dvec2;
410 typedef lowp_dvec3
dvec3;
411 typedef lowp_dvec4
dvec4;
412 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
413 typedef mediump_dvec2
dvec2;
414 typedef mediump_dvec3
dvec3;
415 typedef mediump_dvec4
dvec4;
416 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
417 typedef highp_dvec2
dvec2;
431 #endif//GLM_PRECISION
436 #if(defined(GLM_PRECISION_LOWP_INT))
437 typedef lowp_ivec2
ivec2;
438 typedef lowp_ivec3
ivec3;
439 typedef lowp_ivec4
ivec4;
440 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
441 typedef mediump_ivec2
ivec2;
442 typedef mediump_ivec3
ivec3;
443 typedef mediump_ivec4
ivec4;
444 #else //defined(GLM_PRECISION_HIGHP_INT)
445 typedef highp_ivec2
ivec2;
459 #endif//GLM_PRECISION
464 #if(defined(GLM_PRECISION_LOWP_UINT))
465 typedef lowp_uvec2
uvec2;
466 typedef lowp_uvec3
uvec3;
467 typedef lowp_uvec4
uvec4;
468 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
469 typedef mediump_uvec2
uvec2;
470 typedef mediump_uvec3
uvec3;
471 typedef mediump_uvec4
uvec4;
472 #else //defined(GLM_PRECISION_HIGHP_UINT)
473 typedef highp_uvec2
uvec2;
487 #endif//GLM_PRECISION
492 #if(defined(GLM_PRECISION_LOWP_BOOL))
493 typedef lowp_bvec2
bvec2;
494 typedef lowp_bvec3
bvec3;
495 typedef lowp_bvec4
bvec4;
496 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
497 typedef mediump_bvec2
bvec2;
498 typedef mediump_bvec3
bvec3;
499 typedef mediump_bvec4
bvec4;
500 #else //defined(GLM_PRECISION_HIGHP_BOOL)
501 typedef highp_bvec2
bvec2;
515 #endif//GLM_PRECISION
tvec3< bool, lowp > lowp_bvec3
3 components vector of low precision bool numbers.
tvec4< uint, mediump > mediump_uvec4
4 components vector of medium precision unsigned integer numbers.
OpenGL Mathematics (glm.g-truc.net)
tvec4< uint, lowp > lowp_uvec4
4 components vector of low precision unsigned integer numbers.
tvec2< bool, lowp > lowp_bvec2
2 components vector of low precision bool numbers.
tvec4< double, lowp > lowp_dvec4
4 components vector of low double-precision floating-point numbers.
tvec2< uint, lowp > lowp_uvec2
2 components vector of low precision unsigned integer numbers.
tvec3< int, highp > highp_ivec3
3 components vector of high precision signed integer numbers.
tvec4< float, lowp > lowp_vec4
4 components vector of low single-precision floating-point numbers.
highp_vec4 vec4
4 components vector of floating-point numbers.
tvec4< double, mediump > mediump_dvec4
4 components vector of medium double-precision floating-point numbers.
tvec2< float, lowp > lowp_vec2
2 components vector of low single-precision floating-point numbers.
tvec3< uint, mediump > mediump_uvec3
3 components vector of medium precision unsigned integer numbers.
highp_ivec4 ivec4
4 components vector of signed integer numbers.
highp_bvec4 bvec4
4 components vector of boolean.
tvec4< bool, highp > highp_bvec4
4 components vector of high precision bool numbers.
tvec3< uint, highp > highp_uvec3
3 components vector of high precision unsigned integer numbers.
tvec2< bool, mediump > mediump_bvec2
2 components vector of medium precision bool numbers.
tvec4< float, mediump > mediump_vec4
4 components vector of medium single-precision floating-point numbers.
highp_bvec2 bvec2
2 components vector of boolean.
OpenGL Mathematics (glm.g-truc.net)
tvec4< int, highp > highp_ivec4
4 components vector of high precision signed integer numbers.
tvec3< int, lowp > lowp_ivec3
3 components vector of low precision signed integer numbers.
tvec3< float, highp > highp_vec3
3 components vector of high single-precision floating-point numbers.
highp_uvec3 uvec3
3 components vector of unsigned integer numbers.
tvec4< int, mediump > mediump_ivec4
4 components vector of medium precision signed integer numbers.
tvec4< bool, mediump > mediump_bvec4
4 components vector of medium precision bool numbers.
tvec3< uint, lowp > lowp_uvec3
3 components vector of low precision unsigned integer numbers.
tvec4< bool, lowp > lowp_bvec4
4 components vector of low precision bool numbers.
highp_dvec2 dvec2
2 components vector of double-precision floating-point numbers.
tvec3< bool, mediump > mediump_bvec3
3 components vector of medium precision bool numbers.
tvec3< double, mediump > mediump_dvec3
3 components vector of medium double-precision floating-point numbers.
tvec3< float, lowp > lowp_vec3
3 components vector of low single-precision floating-point numbers.
tvec2< float, highp > highp_vec2
2 components vector of high single-precision floating-point numbers.
tvec3< double, highp > highp_dvec3
3 components vector of high double-precision floating-point numbers.
tvec2< int, highp > highp_ivec2
2 components vector of high precision signed integer numbers.
tvec4< double, highp > highp_dvec4
4 components vector of high double-precision floating-point numbers.
tvec2< int, mediump > mediump_ivec2
2 components vector of medium precision signed integer numbers.
tvec2< bool, highp > highp_bvec2
2 components vector of high precision bool numbers.
tvec2< double, lowp > lowp_dvec2
2 components vector of low double-precision floating-point numbers.
tvec3< double, lowp > lowp_dvec3
3 components vector of low double-precision floating-point numbers.
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
tvec2< uint, highp > highp_uvec2
2 components vector of high precision unsigned integer numbers.
tvec2< uint, mediump > mediump_uvec2
2 components vector of medium precision unsigned integer numbers.
highp_bvec3 bvec3
3 components vector of boolean.
tvec2< double, mediump > mediump_dvec2
2 components vector of medium double-precision floating-point numbers.
tvec4< float, highp > highp_vec4
4 components vector of high single-precision floating-point numbers.
highp_ivec3 ivec3
3 components vector of signed integer numbers.
tvec4< uint, highp > highp_uvec4
4 components vector of high precision unsigned integer numbers.
tvec4< int, lowp > lowp_ivec4
4 components vector of low precision signed integer numbers.
tvec3< bool, highp > highp_bvec3
3 components vector of high precision bool numbers.
tvec3< int, mediump > mediump_ivec3
3 components vector of medium precision signed integer numbers.
highp_vec3 vec3
3 components vector of floating-point numbers.
tvec2< double, highp > highp_dvec2
2 components vector of high double-precision floating-point numbers.
highp_dvec3 dvec3
3 components vector of double-precision floating-point numbers.
highp_vec2 vec2
2 components vector of floating-point numbers.
tvec3< float, mediump > mediump_vec3
3 components vector of medium single-precision floating-point numbers.
tvec2< int, lowp > lowp_ivec2
2 components vector of low precision signed integer numbers.
highp_ivec2 ivec2
2 components vector of signed integer numbers.
highp_uvec4 uvec4
4 components vector of unsigned integer numbers.
tvec2< float, mediump > mediump_vec2
2 components vector of medium single-precision floating-point numbers.
highp_dvec4 dvec4
4 components vector of double-precision floating-point numbers.