Flow Visualisation
type.hpp
Go to the documentation of this file.
1 
29 #ifndef glm_core_type
30 #define glm_core_type
31 
32 #include "type_half.hpp"
33 #include "type_float.hpp"
34 #include "type_int.hpp"
35 
36 #include "type_gentype.hpp"
37 
38 #include "type_vec1.hpp"
39 #include "type_vec2.hpp"
40 #include "type_vec3.hpp"
41 #include "type_vec4.hpp"
42 
43 #include "type_mat2x2.hpp"
44 #include "type_mat2x3.hpp"
45 #include "type_mat2x4.hpp"
46 #include "type_mat3x2.hpp"
47 #include "type_mat3x3.hpp"
48 #include "type_mat3x4.hpp"
49 #include "type_mat4x2.hpp"
50 #include "type_mat4x3.hpp"
51 #include "type_mat4x4.hpp"
52 
53 namespace glm
54 {
57 
59  // Float definition
60 
61 #if(defined(GLM_PRECISION_HIGHP_FLOAT))
62  typedef highp_vec2 vec2;
63  typedef highp_vec3 vec3;
64  typedef highp_vec4 vec4;
65  typedef highp_mat2x2 mat2x2;
66  typedef highp_mat2x3 mat2x3;
67  typedef highp_mat2x4 mat2x4;
68  typedef highp_mat3x2 mat3x2;
69  typedef highp_mat3x3 mat3x3;
70  typedef highp_mat3x4 mat3x4;
71  typedef highp_mat4x2 mat4x2;
72  typedef highp_mat4x3 mat4x3;
73  typedef highp_mat4x4 mat4x4;
74 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
75  typedef mediump_vec2 vec2;
76  typedef mediump_vec3 vec3;
77  typedef mediump_vec4 vec4;
78  typedef mediump_mat2x2 mat2x2;
79  typedef mediump_mat2x3 mat2x3;
80  typedef mediump_mat2x4 mat2x4;
81  typedef mediump_mat3x2 mat3x2;
82  typedef mediump_mat3x3 mat3x3;
83  typedef mediump_mat3x4 mat3x4;
84  typedef mediump_mat4x2 mat4x2;
85  typedef mediump_mat4x3 mat4x3;
86  typedef mediump_mat4x4 mat4x4;
87 #elif(defined(GLM_PRECISION_LOWP_FLOAT))
88  typedef lowp_vec2 vec2;
89  typedef lowp_vec3 vec3;
90  typedef lowp_vec4 vec4;
91  typedef lowp_mat2x2 mat2x2;
92  typedef lowp_mat2x3 mat2x3;
93  typedef lowp_mat2x4 mat2x4;
94  typedef lowp_mat3x2 mat3x2;
95  typedef lowp_mat3x3 mat3x3;
96  typedef lowp_mat3x4 mat3x4;
97  typedef lowp_mat4x2 mat4x2;
98  typedef lowp_mat4x3 mat4x3;
99  typedef lowp_mat4x4 mat4x4;
100 #else
101  typedef mediump_vec2 vec2;
105 
110 
115 
120 
125 
130 
135 
140 
145 
150 
155 
160 
161 #endif//GLM_PRECISION
162 
166  typedef mat2x2 mat2;
167 
171  typedef mat3x3 mat3;
172 
176  typedef mat4x4 mat4;
177 
179  // Signed integer definition
180 
181 #if(defined(GLM_PRECISION_HIGHP_INT))
182  typedef highp_ivec2 ivec2;
183  typedef highp_ivec3 ivec3;
184  typedef highp_ivec4 ivec4;
185 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
186  typedef mediump_ivec2 ivec2;
187  typedef mediump_ivec3 ivec3;
188  typedef mediump_ivec4 ivec4;
189 #elif(defined(GLM_PRECISION_LOWP_INT))
190  typedef lowp_ivec2 ivec2;
191  typedef lowp_ivec3 ivec3;
192  typedef lowp_ivec4 ivec4;
193 #else
194  typedef mediump_ivec2 ivec2;
198 
203 
208 #endif//GLM_PRECISION
209 
211  // Unsigned integer definition
212 
213 #if(defined(GLM_PRECISION_HIGHP_UINT))
214  typedef highp_uvec2 uvec2;
215  typedef highp_uvec3 uvec3;
216  typedef highp_uvec4 uvec4;
217 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
218  typedef mediump_uvec2 uvec2;
219  typedef mediump_uvec3 uvec3;
220  typedef mediump_uvec4 uvec4;
221 #elif(defined(GLM_PRECISION_LOWP_UINT))
222  typedef lowp_uvec2 uvec2;
223  typedef lowp_uvec3 uvec3;
224  typedef lowp_uvec4 uvec4;
225 #else
226  typedef mediump_uvec2 uvec2;
230 
235 
240 #endif//GLM_PRECISION
241 
243  // Boolean definition
244 
249 
254 
259 
261  // Double definition
262 
267 
272 
277 
282 
287 
292 
297 
302 
307 
312 
317 
322 
327 
332 
337 
339 }//namespace glm
340 
341 #endif//glm_core_type
detail::tmat2x2< double > dmat2
Definition: type.hpp:281
detail::tvec4< lowp_float > lowp_vec4
Definition: type_vec4.hpp:348
detail::tmat4x3< highp_float > highp_mat4x3
Definition: type_mat4x3.hpp:259
detail::tmat4x4< double > dmat4
Definition: type.hpp:291
mediump_uvec2 uvec2
Definition: type.hpp:229
detail::tvec2< double > dvec2
Definition: type.hpp:266
mediump_mat4x3 mat4x3
Definition: type.hpp:154
mediump_uvec3 uvec3
Definition: type.hpp:234
detail::tvec4< highp_float > highp_vec4
Definition: type_vec4.hpp:334
mediump_mat3x3 mat3x3
Definition: type.hpp:139
Definition: type_mat2x2.hpp:45
Definition: type_mat2x2.hpp:48
Definition: type_mat2x2.hpp:42
Definition: _detail.hpp:38
detail::tvec3< double > dvec3
Definition: type.hpp:271
detail::tmat4x2< highp_float > highp_mat4x2
Definition: type_mat4x2.hpp:261
detail::tmat4x4< double > dmat4x4
Definition: type.hpp:336
Definition: type_mat2x2.hpp:38
detail::tmat2x3< double > dmat2x3
Definition: type.hpp:301
detail::tvec3< mediump_float > mediump_vec3
Definition: type_vec3.hpp:284
detail::tmat3x3< double > dmat3
Definition: type.hpp:286
detail::tmat3x4< mediump_float > mediump_mat3x4
Definition: type_mat3x4.hpp:250
detail::tmat4x4< mediump_float > mediump_mat4x4
Definition: type_mat4x4.hpp:304
detail::tmat4x3< lowp_float > lowp_mat4x3
Definition: type_mat4x3.hpp:245
mediump_uvec4 uvec4
Definition: type.hpp:239
mediump_vec2 vec2
Definition: type.hpp:104
detail::tvec3< bool > bvec3
Definition: type.hpp:253
mediump_ivec2 ivec2
Definition: type.hpp:197
mediump_mat2x2 mat2x2
Definition: type.hpp:119
detail::tmat3x4< lowp_float > lowp_mat3x4
Definition: type_mat3x4.hpp:243
detail::tvec4< bool > bvec4
Definition: type.hpp:258
detail::tvec2< mediump_float > mediump_vec2
Definition: type_vec2.hpp:259
mediump_mat3x4 mat3x4
Definition: type.hpp:144
detail::tmat2x2< lowp_float > lowp_mat2x2
Definition: type_mat2x2.hpp:291
detail::tmat2x2< mediump_float > mediump_mat2x2
Definition: type_mat2x2.hpp:298
mediump_mat4x2 mat4x2
Definition: type.hpp:149
detail::tmat3x2< highp_float > highp_mat3x2
Definition: type_mat3x2.hpp:256
detail::tmat4x4< highp_float > highp_mat4x4
Definition: type_mat4x4.hpp:311
detail::tmat2x4< double > dmat2x4
Definition: type.hpp:306
detail::tmat3x4< double > dmat3x4
Definition: type.hpp:321
detail::tmat4x3< mediump_float > mediump_mat4x3
Definition: type_mat4x3.hpp:252
detail::tvec2< bool > bvec2
Definition: type.hpp:248
mediump_ivec4 ivec4
Definition: type.hpp:207
Definition: type_mat2x2.hpp:39
detail::tmat2x4< lowp_float > lowp_mat2x4
Definition: type_mat2x4.hpp:237
detail::tmat4x4< lowp_float > lowp_mat4x4
Definition: type_mat4x4.hpp:297
detail::tmat2x3< mediump_float > mediump_mat2x3
Definition: type_mat2x3.hpp:242
detail::tmat3x2< lowp_float > lowp_mat3x2
Definition: type_mat3x2.hpp:242
detail::tvec3< lowp_float > lowp_vec3
Definition: type_vec3.hpp:291
Definition: type_mat2x2.hpp:44
Definition: type_mat2x2.hpp:47
Definition: type_mat2x2.hpp:41
detail::tmat2x2< double > dmat2x2
Definition: type.hpp:296
mat2x2 mat2
Definition: type.hpp:166
detail::tmat3x4< highp_float > highp_mat3x4
Definition: type_mat3x4.hpp:257
detail::tmat2x3< highp_float > highp_mat2x3
Definition: type_mat2x3.hpp:249
detail::tmat3x3< lowp_float > lowp_mat3x3
Definition: type_mat3x3.hpp:295
mat4x4 mat4
Definition: type.hpp:176
mediump_mat2x4 mat2x4
Definition: type.hpp:129
detail::tmat2x2< highp_float > highp_mat2x2
Definition: type_mat2x2.hpp:305
detail::tvec3< highp_float > highp_vec3
Definition: type_vec3.hpp:277
detail::tmat2x4< highp_float > highp_mat2x4
Definition: type_mat2x4.hpp:251
detail::tvec4< double > dvec4
Definition: type.hpp:276
mat3x3 mat3
Definition: type.hpp:171
Definition: type_mat2x2.hpp:40
detail::tvec4< mediump_float > mediump_vec4
Definition: type_vec4.hpp:341
mediump_ivec3 ivec3
Definition: type.hpp:202
detail::tmat3x3< double > dmat3x3
Definition: type.hpp:316
detail::tmat3x3< highp_float > highp_mat3x3
Definition: type_mat3x3.hpp:309
detail::tmat2x4< mediump_float > mediump_mat2x4
Definition: type_mat2x4.hpp:244
mediump_mat2x3 mat2x3
Definition: type.hpp:124
mediump_mat4x4 mat4x4
Definition: type.hpp:159
mediump_vec3 vec3
Definition: type.hpp:109
detail::tmat3x3< mediump_float > mediump_mat3x3
Definition: type_mat3x3.hpp:302
detail::tvec2< lowp_float > lowp_vec2
Definition: type_vec2.hpp:266
detail::tmat2x3< lowp_float > lowp_mat2x3
Definition: type_mat2x3.hpp:235
detail::tmat4x3< double > dmat4x3
Definition: type.hpp:331
detail::tmat3x2< double > dmat3x2
Definition: type.hpp:311
detail::tvec2< highp_float > highp_vec2
Definition: type_vec2.hpp:252
Definition: type_mat2x2.hpp:46
mediump_vec4 vec4
Definition: type.hpp:114
Definition: type_mat2x2.hpp:49
Definition: type_mat2x2.hpp:43
detail::tmat3x2< mediump_float > mediump_mat3x2
Definition: type_mat3x2.hpp:249
mediump_mat3x2 mat3x2
Definition: type.hpp:134
detail::tmat4x2< mediump_float > mediump_mat4x2
Definition: type_mat4x2.hpp:254
detail::tmat4x2< double > dmat4x2
Definition: type.hpp:326
detail::tmat4x2< lowp_float > lowp_mat4x2
Definition: type_mat4x2.hpp:247