~mir-team/mir/in-process-egl+input-conglomeration

« back to all changes in this revision

Viewing changes to 3rd_party/glm/glm/gtx/string_cast.inl

Merged trunk and fixed issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
///////////////////////////////////////////////////////////////////////////////////////////////////
2
 
// OpenGL Mathematics Copyright (c) 2006 G-Truc Creation (www.g-truc.net)
3
 
///////////////////////////////////////////////////////////////////////////////////////////////////
4
 
// Created : 2008-04-27
5
 
// Updated : 2008-05-24
6
 
// Licence : This source is under MIT License
7
 
// File    : glm/gtx/string_cast.hpp
8
 
///////////////////////////////////////////////////////////////////////////////////////////////////
9
 
 
10
 
#include <cstdarg>
11
 
#include <cstdio>
12
 
 
13
 
namespace glm{
14
 
namespace detail
15
 
{
16
 
        GLM_FUNC_QUALIFIER std::string format(const char* msg, ...)
17
 
        {
18
 
                std::size_t const STRING_BUFFER(4096);
19
 
                char text[STRING_BUFFER];
20
 
                va_list list;
21
 
 
22
 
                if(msg == 0)
23
 
                        return std::string();
24
 
 
25
 
                va_start(list, msg);
26
 
// Ticket #123
27
 
#if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER_VC >= GLM_COMPILER_VC2005))
28
 
                        vsprintf_s(text, STRING_BUFFER, msg, list);
29
 
#else//
30
 
                        vsprintf(text, msg, list);
31
 
#endif//
32
 
                va_end(list);
33
 
 
34
 
                return std::string(text);
35
 
        }
36
 
 
37
 
        static const char* True = "true";
38
 
        static const char* False = "false";
39
 
}//namespace detail
40
 
 
41
 
        ////////////////////////////////
42
 
        // Scalars
43
 
 
44
 
        GLM_FUNC_QUALIFIER std::string to_string(detail::half const & x)
45
 
        {
46
 
                return detail::format("half(%2.4f)", float(x));
47
 
        }
48
 
 
49
 
        GLM_FUNC_QUALIFIER std::string to_string(float x)
50
 
        {
51
 
                return detail::format("float(%f)", x);
52
 
        }
53
 
 
54
 
        GLM_FUNC_QUALIFIER std::string to_string(double x)
55
 
        {
56
 
                return detail::format("double(%f)", x);
57
 
        }
58
 
 
59
 
        GLM_FUNC_QUALIFIER std::string to_string(int x)
60
 
        {
61
 
                return detail::format("int(%d)", x);
62
 
        }
63
 
 
64
 
        GLM_FUNC_QUALIFIER std::string to_string(unsigned int x)
65
 
        {
66
 
                return detail::format("uint(%d)", x);
67
 
        }
68
 
 
69
 
        ////////////////////////////////
70
 
        // Bool vectors
71
 
 
72
 
        GLM_FUNC_QUALIFIER std::string to_string
73
 
        (
74
 
                detail::tvec2<bool> const & v
75
 
        )
76
 
        {
77
 
                return detail::format("bvec2(%s, %s)", 
78
 
                        v.x ? detail::True : detail::False, 
79
 
                        v.y ? detail::True : detail::False);
80
 
        }
81
 
 
82
 
        GLM_FUNC_QUALIFIER std::string to_string
83
 
        (
84
 
                detail::tvec3<bool> const & v
85
 
        )
86
 
        {
87
 
                return detail::format("bvec3(%s, %s, %s)", 
88
 
                        v.x ? detail::True : detail::False, 
89
 
                        v.y ? detail::True : detail::False, 
90
 
                        v.z ? detail::True : detail::False);
91
 
        }
92
 
 
93
 
        GLM_FUNC_QUALIFIER std::string to_string
94
 
        (
95
 
                detail::tvec4<bool> const & v
96
 
        )
97
 
        {
98
 
                return detail::format("bvec4(%s, %s, %s, %s)", 
99
 
                        v.x ? detail::True : detail::False, 
100
 
                        v.y ? detail::True : detail::False, 
101
 
                        v.z ? detail::True : detail::False, 
102
 
                        v.w ? detail::True : detail::False);
103
 
        }
104
 
 
105
 
        ////////////////////////////////
106
 
        // Half vectors
107
 
 
108
 
        template <>
109
 
        GLM_FUNC_QUALIFIER std::string to_string
110
 
        (
111
 
                detail::tvec2<detail::half> const & v
112
 
        )
113
 
        {
114
 
                return detail::format("hvec2(%2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat());
115
 
        }
116
 
 
117
 
        template <> 
118
 
        GLM_FUNC_QUALIFIER std::string to_string
119
 
        (
120
 
                detail::tvec3<detail::half> const & v
121
 
        )
122
 
        {
123
 
                return detail::format("hvec3(%2.4f, %2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat(), v.z.toFloat());
124
 
        }
125
 
 
126
 
        template <> 
127
 
        GLM_FUNC_QUALIFIER std::string to_string
128
 
        (
129
 
                detail::tvec4<detail::half> const & v
130
 
        )
131
 
        {
132
 
                return detail::format("hvec4(%2.4f, %2.4f, %2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat(), v.z.toFloat(), v.w.toFloat());
133
 
        }
134
 
 
135
 
        ////////////////////////////////
136
 
        // Float vectors
137
 
 
138
 
        template <>
139
 
        GLM_FUNC_QUALIFIER std::string to_string
140
 
        (
141
 
                detail::tvec2<float> const & v
142
 
        )
143
 
        {
144
 
                return detail::format("fvec2(%f, %f)", v.x, v.y);
145
 
        }
146
 
 
147
 
        template <> 
148
 
        GLM_FUNC_QUALIFIER std::string to_string
149
 
        (
150
 
                detail::tvec3<float> const & v
151
 
        )
152
 
        {
153
 
                return detail::format("fvec3(%f, %f, %f)", v.x, v.y, v.z);
154
 
        }
155
 
 
156
 
        template <> 
157
 
        GLM_FUNC_QUALIFIER std::string to_string
158
 
        (
159
 
                detail::tvec4<float> const & v
160
 
        )
161
 
        {
162
 
                return detail::format("fvec4(%f, %f, %f, %f)", v.x, v.y, v.z, v.w);
163
 
        }
164
 
 
165
 
        ////////////////////////////////
166
 
        // Double vectors
167
 
 
168
 
        template <>
169
 
        GLM_FUNC_QUALIFIER std::string to_string
170
 
        (
171
 
                detail::tvec2<double> const & v
172
 
        )
173
 
        {
174
 
                return detail::format("dvec2(%f, %f)", v.x, v.y);
175
 
        }
176
 
 
177
 
        template <> 
178
 
        GLM_FUNC_QUALIFIER std::string to_string
179
 
        (
180
 
                detail::tvec3<double> const & v
181
 
        )
182
 
        {
183
 
                return detail::format("dvec3(%f, %f, %f)", v.x, v.y, v.z);
184
 
        }
185
 
 
186
 
        template <> 
187
 
        GLM_FUNC_QUALIFIER std::string to_string
188
 
        (
189
 
                detail::tvec4<double> const & v
190
 
        )
191
 
        {
192
 
                return detail::format("dvec4(%f, %f, %f, %f)", v.x, v.y, v.z, v.w);
193
 
        }
194
 
 
195
 
        ////////////////////////////////
196
 
        // Int vectors
197
 
 
198
 
        template <>
199
 
        GLM_FUNC_QUALIFIER std::string to_string
200
 
        (
201
 
                detail::tvec2<int> const & v
202
 
        )
203
 
        {
204
 
                return detail::format("ivec2(%d, %d)", v.x, v.y);
205
 
        }
206
 
 
207
 
        template <> 
208
 
        GLM_FUNC_QUALIFIER std::string to_string
209
 
        (
210
 
                detail::tvec3<int> const & v
211
 
        )
212
 
        {
213
 
                return detail::format("ivec3(%d, %d, %d)", v.x, v.y, v.z);
214
 
        }
215
 
 
216
 
        template <> 
217
 
        GLM_FUNC_QUALIFIER std::string to_string
218
 
        (
219
 
                detail::tvec4<int> const & v
220
 
        )
221
 
        {
222
 
                return detail::format("ivec4(%d, %d, %d, %d)", v.x, v.y, v.z, v.w);
223
 
        }
224
 
 
225
 
        ////////////////////////////////
226
 
        // Unsigned int vectors
227
 
 
228
 
        template <>
229
 
        GLM_FUNC_QUALIFIER std::string to_string
230
 
        (
231
 
                detail::tvec2<unsigned int> const & v
232
 
        )
233
 
        {
234
 
                return detail::format("uvec2(%d, %d)", v.x, v.y);
235
 
        }
236
 
 
237
 
        template <> 
238
 
        GLM_FUNC_QUALIFIER std::string to_string
239
 
        (
240
 
                detail::tvec3<unsigned int> const & v
241
 
        )
242
 
        {
243
 
                return detail::format("uvec3(%d, %d, %d)", v.x, v.y, v.z);
244
 
        }
245
 
 
246
 
        template <> 
247
 
        GLM_FUNC_QUALIFIER std::string to_string
248
 
        (
249
 
                detail::tvec4<unsigned int> const & v
250
 
        )
251
 
        {
252
 
                return detail::format("uvec4(%d, %d, %d, %d)", v.x, v.y, v.z, v.w);
253
 
        }
254
 
 
255
 
        ////////////////////////////////
256
 
        // Half matrices
257
 
 
258
 
        template <> 
259
 
        GLM_FUNC_QUALIFIER std::string to_string
260
 
        (
261
 
                detail::tmat2x2<detail::half> const & m
262
 
        )
263
 
        {
264
 
                return detail::format("hmat2x2((%f, %f), (%f, %f))", 
265
 
                        m[0][0].toFloat(), m[0][1].toFloat(), 
266
 
                        m[1][0].toFloat(), m[1][1].toFloat());
267
 
        }
268
 
 
269
 
        template <> 
270
 
        GLM_FUNC_QUALIFIER std::string to_string
271
 
        (
272
 
                detail::tmat2x3<detail::half> const & x
273
 
        )
274
 
        {
275
 
                return detail::format("hmat2x3((%f, %f, %f), (%f, %f, %f))", 
276
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), 
277
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat());
278
 
        }
279
 
 
280
 
        template <> 
281
 
        GLM_FUNC_QUALIFIER std::string to_string
282
 
        (
283
 
                detail::tmat2x4<detail::half> const & x
284
 
        )
285
 
        {
286
 
                return detail::format("hmat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))", 
287
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(), 
288
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat());
289
 
        }
290
 
 
291
 
        template <> 
292
 
        GLM_FUNC_QUALIFIER std::string to_string
293
 
        (
294
 
                detail::tmat3x2<detail::half> const & x
295
 
        )
296
 
        {
297
 
                return detail::format("hmat3x2((%f, %f), (%f, %f), (%f, %f))", 
298
 
                        x[0][0].toFloat(), x[0][1].toFloat(), 
299
 
                        x[1][0].toFloat(), x[1][1].toFloat(), 
300
 
                        x[2][0].toFloat(), x[2][1].toFloat());
301
 
        }
302
 
 
303
 
        template <> 
304
 
        GLM_FUNC_QUALIFIER std::string to_string
305
 
        (
306
 
                detail::tmat3x3<detail::half> const & x
307
 
        )
308
 
        {
309
 
                return detail::format("hmat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
310
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), 
311
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(),
312
 
                        x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat());
313
 
        }
314
 
 
315
 
        template <> 
316
 
        GLM_FUNC_QUALIFIER std::string to_string
317
 
        (
318
 
                detail::tmat3x4<detail::half> const & x
319
 
        )
320
 
        {
321
 
                return detail::format("hmat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
322
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(), 
323
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat(), 
324
 
                        x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(), x[2][3].toFloat());
325
 
        }
326
 
 
327
 
        template <> 
328
 
        GLM_FUNC_QUALIFIER std::string to_string
329
 
        (
330
 
                detail::tmat4x2<detail::half> const & x
331
 
        )
332
 
        {
333
 
                return detail::format("hmat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))", 
334
 
                        x[0][0].toFloat(), x[0][1].toFloat(), 
335
 
                        x[1][0].toFloat(), x[1][1].toFloat(), 
336
 
                        x[2][0].toFloat(), x[2][1].toFloat(), 
337
 
                        x[3][0].toFloat(), x[3][1].toFloat());
338
 
        }
339
 
 
340
 
        template <> 
341
 
        GLM_FUNC_QUALIFIER std::string to_string
342
 
        (
343
 
                detail::tmat4x3<detail::half> const & x
344
 
        )
345
 
        {
346
 
                return detail::format("hmat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
347
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(),
348
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), 
349
 
                        x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(),
350
 
                        x[3][0].toFloat(), x[3][1].toFloat(), x[3][2].toFloat());
351
 
        }
352
 
 
353
 
        template <>
354
 
        GLM_FUNC_QUALIFIER std::string to_string
355
 
        (
356
 
                detail::tmat4x4<detail::half> const & x
357
 
        )
358
 
        {
359
 
                return detail::format("hmat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
360
 
                        x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(),
361
 
                        x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat(),
362
 
                        x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(), x[2][3].toFloat(),
363
 
                        x[3][0].toFloat(), x[3][1].toFloat(), x[3][2].toFloat(), x[3][3].toFloat());
364
 
        }
365
 
 
366
 
        ////////////////////////////////
367
 
        // Float matrices
368
 
 
369
 
        template <> 
370
 
        GLM_FUNC_QUALIFIER std::string to_string
371
 
        (
372
 
                detail::tmat2x2<float> const & x
373
 
        )
374
 
        {
375
 
                return detail::format("mat2x2((%f, %f), (%f, %f))", 
376
 
                        x[0][0], x[0][1], 
377
 
                        x[1][0], x[1][1]);
378
 
        }
379
 
 
380
 
        template <> 
381
 
        GLM_FUNC_QUALIFIER std::string to_string
382
 
        (
383
 
                detail::tmat2x3<float> const & x
384
 
        )
385
 
        {
386
 
                return detail::format("mat2x3((%f, %f, %f), (%f, %f, %f))", 
387
 
                        x[0][0], x[0][1], x[0][2], 
388
 
                        x[1][0], x[1][1], x[1][2]);
389
 
        }
390
 
 
391
 
        template <> 
392
 
        GLM_FUNC_QUALIFIER std::string to_string
393
 
        (
394
 
                detail::tmat2x4<float> const & x
395
 
        )
396
 
        {
397
 
                return detail::format("mat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))", 
398
 
                        x[0][0], x[0][1], x[0][2], x[0][3], 
399
 
                        x[1][0], x[1][1], x[1][2], x[1][3]);
400
 
        }
401
 
 
402
 
        template <> 
403
 
        GLM_FUNC_QUALIFIER std::string to_string
404
 
        (
405
 
                detail::tmat3x2<float> const & x
406
 
        )
407
 
        {
408
 
                return detail::format("mat3x2((%f, %f), (%f, %f), (%f, %f))", 
409
 
                        x[0][0], x[0][1], 
410
 
                        x[1][0], x[1][1], 
411
 
                        x[2][0], x[2][1]);
412
 
        }
413
 
 
414
 
        template <> 
415
 
        GLM_FUNC_QUALIFIER std::string to_string
416
 
        (
417
 
                detail::tmat3x3<float> const & x
418
 
        )
419
 
        {
420
 
                return detail::format("mat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
421
 
                        x[0][0], x[0][1], x[0][2], 
422
 
                        x[1][0], x[1][1], x[1][2],
423
 
                        x[2][0], x[2][1], x[2][2]);
424
 
        }
425
 
 
426
 
        template <> 
427
 
        GLM_FUNC_QUALIFIER std::string to_string
428
 
        (
429
 
                detail::tmat3x4<float> const & x
430
 
        )
431
 
        {
432
 
                return detail::format("mat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
433
 
                        x[0][0], x[0][1], x[0][2], x[0][3], 
434
 
                        x[1][0], x[1][1], x[1][2], x[1][3], 
435
 
                        x[2][0], x[2][1], x[2][2], x[2][3]);
436
 
        }
437
 
 
438
 
        template <> 
439
 
        GLM_FUNC_QUALIFIER std::string to_string
440
 
        (
441
 
                detail::tmat4x2<float> const & x
442
 
        )
443
 
        {
444
 
                return detail::format("mat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))", 
445
 
                        x[0][0], x[0][1], 
446
 
                        x[1][0], x[1][1], 
447
 
                        x[2][0], x[2][1], 
448
 
                        x[3][0], x[3][1]);
449
 
        }
450
 
 
451
 
        template <> 
452
 
        GLM_FUNC_QUALIFIER std::string to_string
453
 
        (
454
 
                detail::tmat4x3<float> const & x
455
 
        )
456
 
        {
457
 
                return detail::format("mat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
458
 
                        x[0][0], x[0][1], x[0][2],
459
 
                        x[1][0], x[1][1], x[1][2], 
460
 
                        x[2][0], x[2][1], x[2][2],
461
 
                        x[3][0], x[3][1], x[3][2]);
462
 
        }
463
 
 
464
 
        template <>
465
 
        GLM_FUNC_QUALIFIER std::string to_string
466
 
        (
467
 
                detail::tmat4x4<float> const & x
468
 
        )
469
 
        {
470
 
                return detail::format("mat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
471
 
                        x[0][0], x[0][1], x[0][2], x[0][3],
472
 
                        x[1][0], x[1][1], x[1][2], x[1][3],
473
 
                        x[2][0], x[2][1], x[2][2], x[2][3],
474
 
                        x[3][0], x[3][1], x[3][2], x[3][3]);
475
 
        }
476
 
 
477
 
        ////////////////////////////////
478
 
        // Double matrices
479
 
 
480
 
        template <> 
481
 
        GLM_FUNC_QUALIFIER std::string to_string
482
 
        (
483
 
                detail::tmat2x2<double> const & x
484
 
        )
485
 
        {
486
 
                return detail::format("dmat2x2((%f, %f), (%f, %f))", 
487
 
                        x[0][0], x[0][1], 
488
 
                        x[1][0], x[1][1]);
489
 
        }
490
 
 
491
 
        template <> 
492
 
        GLM_FUNC_QUALIFIER std::string to_string
493
 
        (
494
 
                detail::tmat2x3<double> const & x
495
 
        )
496
 
        {
497
 
                return detail::format("dmat2x3((%f, %f, %f), (%f, %f, %f))", 
498
 
                        x[0][0], x[0][1], x[0][2], 
499
 
                        x[1][0], x[1][1], x[1][2]);
500
 
        }
501
 
 
502
 
        template <> 
503
 
        GLM_FUNC_QUALIFIER std::string to_string
504
 
        (
505
 
                detail::tmat2x4<double> const & x
506
 
        )
507
 
        {
508
 
                return detail::format("dmat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))", 
509
 
                        x[0][0], x[0][1], x[0][2], x[0][3], 
510
 
                        x[1][0], x[1][1], x[1][2], x[1][3]);
511
 
        }
512
 
 
513
 
        template <> 
514
 
        GLM_FUNC_QUALIFIER std::string to_string
515
 
        (
516
 
                detail::tmat3x2<double> const & x
517
 
        )
518
 
        {
519
 
                return detail::format("dmat3x2((%f, %f), (%f, %f), (%f, %f))", 
520
 
                        x[0][0], x[0][1], 
521
 
                        x[1][0], x[1][1],
522
 
                        x[2][0], x[2][1]);
523
 
        }
524
 
 
525
 
        template <> 
526
 
        GLM_FUNC_QUALIFIER std::string to_string
527
 
        (
528
 
                detail::tmat3x3<double> const & x
529
 
        )
530
 
        {
531
 
                return detail::format("dmat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
532
 
                        x[0][0], x[0][1], x[0][2], 
533
 
                        x[1][0], x[1][1], x[1][2],
534
 
                        x[2][0], x[2][1], x[2][2]);
535
 
        }
536
 
 
537
 
        template <> 
538
 
        GLM_FUNC_QUALIFIER std::string to_string
539
 
        (
540
 
                detail::tmat3x4<double> const & x
541
 
        )
542
 
        {
543
 
                return detail::format("dmat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
544
 
                        x[0][0], x[0][1], x[0][2], x[0][3], 
545
 
                        x[1][0], x[1][1], x[1][2], x[1][3],
546
 
                        x[2][0], x[2][1], x[2][2], x[2][3]);
547
 
        }
548
 
 
549
 
        template <> 
550
 
        GLM_FUNC_QUALIFIER std::string to_string
551
 
        (
552
 
                detail::tmat4x2<double> const & x
553
 
        )
554
 
        {
555
 
                return detail::format("dmat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))", 
556
 
                        x[0][0], x[0][1], 
557
 
                        x[1][0], x[1][1], 
558
 
                        x[2][0], x[2][1], 
559
 
                        x[3][0], x[3][1]);
560
 
        }
561
 
 
562
 
        template <> 
563
 
        GLM_FUNC_QUALIFIER std::string to_string
564
 
        (
565
 
                detail::tmat4x3<double> const & x
566
 
        )
567
 
        {
568
 
                return detail::format("dmat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
569
 
                        x[0][0], x[0][1], x[0][2], 
570
 
                        x[1][0], x[1][1], x[1][2], 
571
 
                        x[2][0], x[2][1], x[2][2], 
572
 
                        x[3][0], x[3][1], x[3][2]);
573
 
        }
574
 
 
575
 
        template <>
576
 
        GLM_FUNC_QUALIFIER std::string to_string
577
 
        (
578
 
                detail::tmat4x4<double> const & x
579
 
        )
580
 
        {
581
 
                return detail::format("dmat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
582
 
                        x[0][0], x[0][1], x[0][2], x[0][3],
583
 
                        x[1][0], x[1][1], x[1][2], x[1][3],
584
 
                        x[2][0], x[2][1], x[2][2], x[2][3],
585
 
                        x[3][0], x[3][1], x[3][2], x[3][3]);
586
 
        }
587
 
 
588
 
}//namespace glm