29 #ifndef glm_core_type_vec
30 #define glm_core_type_vec
32 #include "precision.hpp"
33 #include "type_int.hpp"
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;
53 # define GLM_DETAIL_IS_VECTOR(TYPE) \
54 template <typename T, precision P> \
55 struct is_vector<TYPE<T, P> > \
65 typedef detail::tvec1<float, highp> highp_vec1_t;
66 typedef detail::tvec1<float, mediump> mediump_vec1_t;
67 typedef detail::tvec1<float, lowp> lowp_vec1_t;
68 typedef detail::tvec1<int, highp> highp_ivec1_t;
69 typedef detail::tvec1<int, mediump> mediump_ivec1_t;
70 typedef detail::tvec1<int, lowp> lowp_ivec1_t;
71 typedef detail::tvec1<uint, highp> highp_uvec1_t;
72 typedef detail::tvec1<uint, mediump> mediump_uvec1_t;
73 typedef detail::tvec1<uint, lowp> lowp_uvec1_t;
74 typedef detail::tvec1<bool, highp> highp_bvec1_t;
75 typedef detail::tvec1<bool, mediump> mediump_bvec1_t;
76 typedef detail::tvec1<bool, lowp> lowp_bvec1_t;
397 #if(defined(GLM_PRECISION_LOWP_FLOAT))
401 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
405 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
420 #endif//GLM_PRECISION
425 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
429 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
433 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
448 #endif//GLM_PRECISION
453 #if(defined(GLM_PRECISION_LOWP_INT))
457 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
461 #else //defined(GLM_PRECISION_HIGHP_INT)
476 #endif//GLM_PRECISION
481 #if(defined(GLM_PRECISION_LOWP_UINT))
485 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
489 #else //defined(GLM_PRECISION_HIGHP_UINT)
504 #endif//GLM_PRECISION
509 #if(defined(GLM_PRECISION_LOWP_BOOL))
513 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
517 #else //defined(GLM_PRECISION_HIGHP_BOOL)
532 #endif//GLM_PRECISION
537 #endif//glm_core_type_vec
highp_ivec4 ivec4
4 components vector of signed integer numbers.
detail::tvec4< bool, highp > highp_bvec4
4 components vector of high precision bool numbers.
detail::tvec2< uint, highp > highp_uvec2
2 components vector of high precision unsigned integer numbers.
detail::tvec4< uint, highp > highp_uvec4
4 components vector of high precision unsigned integer numbers.
highp_bvec3 bvec3
3 components vector of boolean.
detail::tvec3< int, mediump > mediump_ivec3
3 components vector of medium precision signed integer numbers.
highp_bvec2 bvec2
2 components vector of boolean.
highp_vec3 vec3
3 components vector of floating-point numbers.
highp_dvec3 dvec3
3 components vector of double-precision floating-point numbers.
detail::tvec2< int, mediump > mediump_ivec2
2 components vector of medium precision signed integer numbers.
detail::tvec4< double, lowp > lowp_dvec4
4 components vector of low double-precision floating-point numbers.
highp_ivec2 ivec2
2 components vector of signed integer numbers.
detail::tvec2< uint, lowp > lowp_uvec2
2 components vector of low precision unsigned integer numbers.
highp_vec4 vec4
4 components vector of floating-point numbers.
detail::tvec4< float, mediump > mediump_vec4
4 components vector of medium single-precision floating-point numbers.
detail::tvec2< bool, mediump > mediump_bvec2
2 components vector of medium precision bool numbers.
detail::tvec4< bool, lowp > lowp_bvec4
4 components vector of low precision bool numbers.
detail::tvec3< uint, lowp > lowp_uvec3
3 components vector of low precision unsigned integer numbers.
detail::tvec3< float, lowp > lowp_vec3
3 components vector of low single-precision floating-point numbers.
detail::tvec4< int, lowp > lowp_ivec4
4 components vector of low precision signed integer numbers.
detail::tvec2< bool, highp > highp_bvec2
2 components vector of high precision bool numbers.
detail::tvec4< double, highp > highp_dvec4
4 components vector of high double-precision floating-point numbers.
detail::tvec4< uint, lowp > lowp_uvec4
4 components vector of low precision unsigned integer numbers.
detail::tvec3< float, highp > highp_vec3
3 components vector of high single-precision floating-point numbers.
highp_dvec2 dvec2
2 components vector of double-precision floating-point numbers.
detail::tvec3< bool, mediump > mediump_bvec3
3 components vector of medium precision bool numbers.
detail::tvec4< double, mediump > mediump_dvec4
4 components vector of medium double-precision floating-point numbers.
detail::tvec2< double, highp > highp_dvec2
2 components vector of high double-precision floating-point numbers.
detail::tvec3< uint, highp > highp_uvec3
3 components vector of high precision unsigned integer numbers.
highp_ivec3 ivec3
3 components vector of signed integer numbers.
detail::tvec3< uint, mediump > mediump_uvec3
3 components vector of medium precision unsigned integer numbers.
detail::tvec4< bool, mediump > mediump_bvec4
4 components vector of medium precision bool numbers.
detail::tvec3< bool, lowp > lowp_bvec3
3 components vector of low precision bool numbers.
detail::tvec3< double, highp > highp_dvec3
3 components vector of high double-precision floating-point numbers.
highp_uvec3 uvec3
3 components vector of unsigned integer numbers.
highp_dvec4 dvec4
4 components vector of double-precision floating-point numbers.
detail::tvec2< uint, mediump > mediump_uvec2
2 components vector of medium precision unsigned integer numbers.
detail::tvec2< int, lowp > lowp_ivec2
2 components vector of low precision signed integer numbers.
detail::tvec2< bool, lowp > lowp_bvec2
2 components vector of low precision bool numbers.
detail::tvec4< int, mediump > mediump_ivec4
4 components vector of medium precision signed integer numbers.
detail::tvec2< double, lowp > lowp_dvec2
2 components vector of low double-precision floating-point numbers.
detail::tvec2< float, highp > highp_vec2
2 components vector of high single-precision floating-point numbers.
detail::tvec3< double, mediump > mediump_dvec3
3 components vector of medium double-precision floating-point numbers.
detail::tvec3< double, lowp > lowp_dvec3
3 components vector of low double-precision floating-point numbers.
detail::tvec2< float, lowp > lowp_vec2
2 components vector of low single-precision floating-point numbers.
detail::tvec2< double, mediump > mediump_dvec2
2 components vector of medium double-precision floating-point numbers.
highp_uvec4 uvec4
4 components vector of unsigned integer numbers.
detail::tvec3< int, lowp > lowp_ivec3
3 components vector of low precision signed integer numbers.
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
highp_bvec4 bvec4
4 components vector of boolean.
detail::tvec2< int, highp > highp_ivec2
2 components vector of high precision signed integer numbers.
detail::tvec4< float, lowp > lowp_vec4
4 components vector of low single-precision floating-point numbers.
detail::tvec2< float, mediump > mediump_vec2
2 components vector of medium single-precision floating-point numbers.
highp_vec2 vec2
2 components vector of floating-point numbers.
detail::tvec3< int, highp > highp_ivec3
3 components vector of high precision signed integer numbers.
detail::tvec3< bool, highp > highp_bvec3
3 components vector of high precision bool numbers.
detail::tvec4< float, highp > highp_vec4
4 components vector of high single-precision floating-point numbers.
detail::tvec4< int, highp > highp_ivec4
4 components vector of high precision signed integer numbers.
detail::tvec4< uint, mediump > mediump_uvec4
4 components vector of medium precision unsigned integer numbers.
detail::tvec3< float, mediump > mediump_vec3
3 components vector of medium single-precision floating-point numbers.