29 #ifndef glm_core_type_gentype3
30 #define glm_core_type_gentype3
41 template <
typename T>
struct tref2;
42 template <
typename T>
struct tref3;
43 template <
typename T>
struct tref4;
44 template <
typename T>
struct tvec2;
45 template <
typename T>
struct tvec4;
62 # if(GLM_COMPONENT == GLM_COMPONENT_CXX11)
65 # if(defined(GLM_SWIZZLE))
75 # endif//(defined(GLM_SWIZZLE))
77 struct{value_type r, g, b;};
78 struct{value_type s, t, p;};
79 struct{value_type
x,
y,
z;};
81 # elif(GLM_COMPONENT == GLM_COMPONENT_CXX98)
82 union {value_type
x, r, s;};
83 union {value_type
y, g, t;};
84 union {value_type
z, b, p;};
86 # if(defined(GLM_SWIZZLE))
90 # endif//(defined(GLM_SWIZZLE))
91 # else //(GLM_COMPONENT == GLM_COMPONENT_ONLY_XYZW)
94 # if(defined(GLM_SWIZZLE))
98 # endif//(defined(GLM_SWIZZLE))
99 # endif//GLM_COMPONENT
119 value_type
const & s);
121 value_type
const & s1,
122 value_type
const & s2,
123 value_type
const & s3);
129 template <
typename U>
133 template <
typename U,
typename V,
typename W>
143 template <
typename A,
typename B>
146 template <
typename A,
typename B>
149 template <
typename U>
152 template <
typename U>
160 template <
typename A,
typename B>
163 template <
typename A,
typename B>
166 template <
int E0,
int E1,
int E2>
172 template <
int E0,
int E1>
178 template <
int E0,
int E1>
188 template <
typename U>
191 template <
typename U>
193 template <
typename U>
195 template <
typename U>
197 template <
typename U>
199 template <
typename U>
201 template <
typename U>
203 template <
typename U>
205 template <
typename U>
213 template <
typename U>
215 template <
typename U>
217 template <
typename U>
219 template <
typename U>
221 template <
typename U>
223 template <
typename U>
225 template <
typename U>
227 template <
typename U>
229 template <
typename U>
231 template <
typename U>
233 template <
typename U>
235 template <
typename U>
249 template <
typename T>
338 #ifndef GLM_EXTERNAL_TEMPLATE
340 #endif//GLM_EXTERNAL_TEMPLATE
342 #endif//glm_core_type_gentype3
detail::tvec3< mediump_int > mediump_ivec3
Definition: type_vec3.hpp:305
GLM_FUNC_DECL tvec3< T > & operator=(tvec3< T > const &v)
Definition: type_vec3.inl:233
GLM_FUNC_DECL tvec3< T > & operator++()
Definition: type_vec3.inl:361
GLM_FUNC_DECL tvec3< T > & operator+=(U const &s)
Definition: type_vec3.hpp:50
value_type z
Definition: type_vec3.hpp:92
T & z
Definition: type_vec3.hpp:263
value_type x
Definition: type_vec3.hpp:92
#define GLM_CONSTEXPR
Definition: _detail.hpp:479
Definition: _swizzle.hpp:204
GLM_FUNC_DECL value_type swizzle(comp X) const
Definition: type_vec3.inl:566
Definition: _detail.hpp:38
GLM_FUNC_DECL tvec3< T > & operator>>=(U const &s)
GLM_FUNC_DECL tvec3< T > & operator/=(U const &s)
Definition: type_mat2x2.hpp:38
GLM_FUNC_DECL tvec3(glm::detail::swizzle< 2, T, tvec2< T >, E0, E1,-1,-2 > const &v, T const &s)
Definition: type_vec3.hpp:173
GLM_FUNC_DECL tvec3< T > & operator|=(U const &s)
Definition: _swizzle.hpp:43
detail::tvec3< mediump_float > mediump_vec3
Definition: type_vec3.hpp:284
GLM_FUNC_DECL tvec3< T > & operator^=(U const &s)
GLM_FUNC_DECL tvec3(T const &s, glm::detail::swizzle< 2, T, tvec2< T >, E0, E1,-1,-2 > const &v)
Definition: type_vec3.hpp:179
GLM_FUNC_DECL tvec3< T > & operator*=(U const &s)
#define GLM_SWIZZLE_GEN_VEC_FROM_VEC3(TMPL_TYPE, CLASS_TYPE, SWIZZLED_VEC2_TYPE, SWIZZLED_VEC3_TYPE, SWIZZLED_VEC4_TYPE)
Definition: _swizzle_func.hpp:426
#define _GLM_SWIZZLE3_3_MEMBERS(T, P, E0, E1, E2)
Definition: _swizzle.hpp:398
tvec3< bool > bool_type
Definition: type_vec3.hpp:55
#define GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(TMPL_TYPE, CLASS_TYPE, SWIZZLED_VEC2_TYPE, SWIZZLED_VEC3_TYPE, SWIZZLED_VEC4_TYPE, A, B, C)
Definition: _swizzle_func.hpp:421
GLM_FUNC_DECL tref3< T > & operator=(tref3< T > const &r)
Definition: type_vec3.inl:1123
tvec3< T > type
Definition: type_vec3.hpp:54
#define _GLM_SWIZZLE3_2_MEMBERS(T, P2, E0, E1, E2)
Definition: _swizzle.hpp:387
detail::tvec3< lowp_int > lowp_ivec3
Definition: type_vec3.hpp:312
Definition: _swizzle.hpp:45
Definition: type_vec1.hpp:42
detail::tvec3< highp_uint > highp_uvec3
Definition: type_vec3.hpp:319
GLM_FUNC_DECL tref3(T &x, T &y, T &z)
Definition: type_vec3.inl:1095
GLM_FUNC_DECL tvec3()
Definition: type_vec3.inl:67
GLM_FUNC_DECL tvec3< T > & operator&=(U const &s)
GLM_FUNC_DECL tvec3< T > operator()()
Definition: type_vec3.inl:1146
T value_type
Definition: type_vec3.hpp:52
detail::tvec3< highp_int > highp_ivec3
Definition: type_vec3.hpp:298
std::size_t size_type
Definition: type_vec3.hpp:53
Definition: type_mat2x2.hpp:39
Definition: _swizzle.hpp:44
ctor
Definition: type_vec3.hpp:50
T & x
Definition: type_vec3.hpp:261
detail::tvec3< lowp_float > lowp_vec3
Definition: type_vec3.hpp:291
GLM_FUNC_DECL tvec3< T > & operator-=(U const &s)
#define _GLM_SWIZZLE3_4_MEMBERS(T, P2, E0, E1, E2)
Definition: _swizzle.hpp:427
detail::tvec3< mediump_uint > mediump_uvec3
Definition: type_vec3.hpp:326
T & y
Definition: type_vec3.hpp:262
Definition: _swizzle.hpp:48
detail::tvec3< lowp_uint > lowp_uvec3
Definition: type_vec3.hpp:333
GLM_FUNC_DECL value_type & operator[](size_type i)
Definition: type_vec3.inl:44
GLM_FUNC_DECL tvec3< T > & operator<<=(U const &s)
detail::tvec3< highp_float > highp_vec3
Definition: type_vec3.hpp:277
Definition: type_mat2x2.hpp:40
Definition: type_vec1.hpp:43
#define GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(TMPL_TYPE, CLASS_TYPE, SWIZZLED_VEC2_TYPE, SWIZZLED_VEC3_TYPE, A, B, C)
Definition: _swizzle_func.hpp:100
GLM_FUNC_DECL tvec3< T > & operator--()
Definition: type_vec3.inl:370
GLM_FUNC_DECL tvec3(glm::detail::swizzle< 3, T, tvec3< T >, E0, E1, E2,-1 > const &that)
Definition: type_vec3.hpp:167
value_type y
Definition: type_vec3.hpp:92
Definition: _swizzle.hpp:47
GLM_DETAIL_IS_VECTOR(tvec1)
comp
Definition: _swizzle.hpp:36
#define GLM_FUNC_DECL
Definition: setup.hpp:678
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const
Definition: type_vec3.inl:33
Definition: _swizzle.hpp:38
#define GLM_SWIZZLE_GEN_REF_FROM_VEC3(TMPL_TYPE, CLASS_TYPE, SWIZZLED_VEC2_TYPE, SWIZZLED_VEC3_TYPE)
Definition: _swizzle_func.hpp:104
Definition: _swizzle.hpp:41
GLM_FUNC_DECL tvec3< T > & operator%=(U const &s)