1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
|
<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<title>MinGfx Toolkit: mingfx::QuickShapes Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">MinGfx Toolkit
 <span id="projectnumber">1.0</span>
</div>
<div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacemingfx.html">mingfx</a></li><li class="navelem"><a class="el" href="classmingfx_1_1_quick_shapes.html">QuickShapes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="classmingfx_1_1_quick_shapes-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">mingfx::QuickShapes Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class provides a quick way to draw shapes for use in debugging or simple scenes. </p>
<p>You can specify the color for each shape as part of the Draw...() call. Other lighting parameters (the intensity of the light, advanced material properties) are pre-set to reasonable defaults that apply to all of the shapes drawn. You can edit these if you wish, but note that the intent of this class is just to provide a quick way to draw shapes – this is not the right tool to use if you wish to do quality renderings and use multiple types of materials.</p>
<p>Example usage: ~~~ define a new <a class="el" href="classmingfx_1_1_quick_shapes.html" title="This class provides a quick way to draw shapes for use in debugging or simple scenes.">QuickShapes</a> object during initialization, or as a class member variable <a class="el" href="classmingfx_1_1_quick_shapes.html" title="This class provides a quick way to draw shapes for use in debugging or simple scenes.">QuickShapes</a> quick_shapes;</p>
<p>void DrawUsingOpenGL() { later, in your draw routine, use it to draw shapes <a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a> view = <a class="el" href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de" title="Returns a view matrix that centers the camera at the 'eye' position and orients it to look at the des...">Matrix4::LookAt</a>(Point3(0,0,3), Point3(0,0,0), Vector3(0,1,0)); <a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a> proj = <a class="el" href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e" title="Returns a perspective projection matrix equivalent to the one gluPerspective creates.">Matrix4::Perspective</a>(60.0, aspect_ratio(), 0.1, 10.0);</p>
<p><a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a> m_cube = <a class="el" href="classmingfx_1_1_matrix4.html#ae82bab81df82dc03f5eb11e74ba1dd84" title="Returns the translation matrix described by the vector.">Matrix4::Translation</a>(<a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a>(-2.5,0,0)) * <a class="el" href="classmingfx_1_1_matrix4.html#a0232a58d20b1da5374cf8c72fb113a4e" title="Returns the scale matrix described by the vector.">Matrix4::Scale</a>(<a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a>(0.5, 0.5, 0.5)); quick_shapes.DrawCube(m_cube, view, proj, Color(1,1,1));</p>
<p><a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a> m_sphere = <a class="el" href="classmingfx_1_1_matrix4.html#a0232a58d20b1da5374cf8c72fb113a4e" title="Returns the scale matrix described by the vector.">Matrix4::Scale</a>(<a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a>(2.5, 2.5, 2.5)); quick_shapes.DrawSphere(m_sphere, view, proj, Color(1,1,1));</p>
<p><a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a> m_loop; std::vector<Point3> loop; loop.push_back(<a class="el" href="classmingfx_1_1_point3.html" title="A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...">Point3</a>( 4.0, 4.0, -4.0)); loop.push_back(<a class="el" href="classmingfx_1_1_point3.html" title="A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...">Point3</a>(-4.0, 4.0, -4.0)); loop.push_back(<a class="el" href="classmingfx_1_1_point3.html" title="A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...">Point3</a>(-4.0, 4.0, 4.0)); loop.push_back(<a class="el" href="classmingfx_1_1_point3.html" title="A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...">Point3</a>( 4.0, 4.0, 4.0)); quick_shapes.DrawLines(m_loop, view, proj, Color(1,1,1), loop, <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134">QuickShapes::LinesType::LINE_LOOP</a>, 0.1); } ~~~ </p>
<p class="definition">Definition at line <a class="el" href="quick__shapes_8h_source.html#l00069">69</a> of file <a class="el" href="quick__shapes_8h_source.html">quick_shapes.h</a>.</p>
</div>
<p><code>#include <<a class="el" href="quick__shapes_8h_source.html">quick_shapes.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aaea35a34a9495a9ab25cd9aa32a91603"><td class="memItemLeft" align="right" valign="top">enum class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603">LinesType</a> { <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603ae585142391f356c60bcfe68279ec2727">LINES</a>
, <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603ae64a4d2159ed46d077e21a505575c814">LINE_STRIP</a>
, <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134">LINE_LOOP</a>
}</td></tr>
<tr class="separator:aaea35a34a9495a9ab25cd9aa32a91603"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5764a0953013ece013bf3e2a72e4afa2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a5764a0953013ece013bf3e2a72e4afa2">QuickShapes</a> ()</td></tr>
<tr class="separator:a5764a0953013ece013bf3e2a72e4afa2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3a75dde188ec076ea46a6319ed1ca046"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a3a75dde188ec076ea46a6319ed1ca046">~QuickShapes</a> ()</td></tr>
<tr class="separator:a3a75dde188ec076ea46a6319ed1ca046"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adad98f87a40650ff7c605a94b6d937af"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#adad98f87a40650ff7c605a94b6d937af">DrawCube</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:adad98f87a40650ff7c605a94b6d937af"><td class="mdescLeft"> </td><td class="mdescRight">Draws a cube with extents -1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. <a href="classmingfx_1_1_quick_shapes.html#adad98f87a40650ff7c605a94b6d937af">More...</a><br /></td></tr>
<tr class="separator:adad98f87a40650ff7c605a94b6d937af"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a69c442154f800c6bb3f6ffa8395e2844"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a69c442154f800c6bb3f6ffa8395e2844">DrawCylinder</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:a69c442154f800c6bb3f6ffa8395e2844"><td class="mdescLeft"> </td><td class="mdescRight">Draws a cylinder with radius 1 and height y=-1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. <a href="classmingfx_1_1_quick_shapes.html#a69c442154f800c6bb3f6ffa8395e2844">More...</a><br /></td></tr>
<tr class="separator:a69c442154f800c6bb3f6ffa8395e2844"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1880f6dd3e794cd9f6e5d9138f93a424"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a1880f6dd3e794cd9f6e5d9138f93a424">DrawCone</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:a1880f6dd3e794cd9f6e5d9138f93a424"><td class="mdescLeft"> </td><td class="mdescRight">Draws a cone with radius 1 and height y=-1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. <a href="classmingfx_1_1_quick_shapes.html#a1880f6dd3e794cd9f6e5d9138f93a424">More...</a><br /></td></tr>
<tr class="separator:a1880f6dd3e794cd9f6e5d9138f93a424"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa5f4f64e3708630a6d58f6b4ca7d2744"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#aa5f4f64e3708630a6d58f6b4ca7d2744">DrawSphere</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:aa5f4f64e3708630a6d58f6b4ca7d2744"><td class="mdescLeft"> </td><td class="mdescRight">Draws a sphere with radius 1 given the model, view, and projection matrices provided and using the supplied color as a material property. <a href="classmingfx_1_1_quick_shapes.html#aa5f4f64e3708630a6d58f6b4ca7d2744">More...</a><br /></td></tr>
<tr class="separator:aa5f4f64e3708630a6d58f6b4ca7d2744"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab24811cfd980b3f2ec4ebccf6c0e8b30"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#ab24811cfd980b3f2ec4ebccf6c0e8b30">DrawBrush</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:ab24811cfd980b3f2ec4ebccf6c0e8b30"><td class="mdescLeft"> </td><td class="mdescRight">Draws the classic 3D paintbrush cursor from the 2001 Keefe et al. <a href="classmingfx_1_1_quick_shapes.html#ab24811cfd980b3f2ec4ebccf6c0e8b30">More...</a><br /></td></tr>
<tr class="separator:ab24811cfd980b3f2ec4ebccf6c0e8b30"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0feae19a04d9f315a39e2bdbf659bd7e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a0feae19a04d9f315a39e2bdbf659bd7e">DrawLineSegment</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color, const <a class="el" href="classmingfx_1_1_point3.html">Point3</a> &p1, const <a class="el" href="classmingfx_1_1_point3.html">Point3</a> &p2, float radius)</td></tr>
<tr class="memdesc:a0feae19a04d9f315a39e2bdbf659bd7e"><td class="mdescLeft"> </td><td class="mdescRight">Draws a cylinder between the two points. <a href="classmingfx_1_1_quick_shapes.html#a0feae19a04d9f315a39e2bdbf659bd7e">More...</a><br /></td></tr>
<tr class="separator:a0feae19a04d9f315a39e2bdbf659bd7e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af59ae8d8c5bd0447f3bb7f56112400bf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#af59ae8d8c5bd0447f3bb7f56112400bf">DrawLines</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color, const std::vector< <a class="el" href="classmingfx_1_1_point3.html">Point3</a> > &points, <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603">LinesType</a> linesType, float radius)</td></tr>
<tr class="memdesc:af59ae8d8c5bd0447f3bb7f56112400bf"><td class="mdescLeft"> </td><td class="mdescRight">Draws a series of line segments. <a href="classmingfx_1_1_quick_shapes.html#af59ae8d8c5bd0447f3bb7f56112400bf">More...</a><br /></td></tr>
<tr class="separator:af59ae8d8c5bd0447f3bb7f56112400bf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aebe27814a826558ac0475fef3d4481eb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#aebe27814a826558ac0475fef3d4481eb">DrawArrow</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color, <a class="el" href="classmingfx_1_1_point3.html">Point3</a> p, <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> dir, float radius)</td></tr>
<tr class="memdesc:aebe27814a826558ac0475fef3d4481eb"><td class="mdescLeft"> </td><td class="mdescRight">Draws an arrow originating at point p and extending in the direction and length specified by dir. <a href="classmingfx_1_1_quick_shapes.html#aebe27814a826558ac0475fef3d4481eb">More...</a><br /></td></tr>
<tr class="separator:aebe27814a826558ac0475fef3d4481eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a637876fdc13e84282922350b53dab5f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a637876fdc13e84282922350b53dab5f8">DrawAxes</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix)</td></tr>
<tr class="memdesc:a637876fdc13e84282922350b53dab5f8"><td class="mdescLeft"> </td><td class="mdescRight">Draws a right handed set of axes at the coordinate frame specified by the modelMatrix. <a href="classmingfx_1_1_quick_shapes.html#a637876fdc13e84282922350b53dab5f8">More...</a><br /></td></tr>
<tr class="separator:a637876fdc13e84282922350b53dab5f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4350ea23b8b9e0e8119310423d641ab3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a4350ea23b8b9e0e8119310423d641ab3">DrawSquare</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color)</td></tr>
<tr class="memdesc:a4350ea23b8b9e0e8119310423d641ab3"><td class="mdescLeft"> </td><td class="mdescRight">Draws a square in the X-Y plane with extents -1 to 1 and normal in the +Y direction. <a href="classmingfx_1_1_quick_shapes.html#a4350ea23b8b9e0e8119310423d641ab3">More...</a><br /></td></tr>
<tr class="separator:a4350ea23b8b9e0e8119310423d641ab3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7187f72fa8e12b38dcd0ce424fc85fbc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#a7187f72fa8e12b38dcd0ce424fc85fbc">DrawSquare</a> (const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &modelMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &viewMatrix, const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> &projectionMatrix, const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color, const <a class="el" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &texture)</td></tr>
<tr class="memdesc:a7187f72fa8e12b38dcd0ce424fc85fbc"><td class="mdescLeft"> </td><td class="mdescRight">Draws a square, which you can deform into some other shape by adjusting the model matrix, and applies a texture to it. <a href="classmingfx_1_1_quick_shapes.html#a7187f72fa8e12b38dcd0ce424fc85fbc">More...</a><br /></td></tr>
<tr class="separator:a7187f72fa8e12b38dcd0ce424fc85fbc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abec2513648c1238f36c41cf3c85dd868"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#abec2513648c1238f36c41cf3c85dd868">DrawFullscreenTexture</a> (const <a class="el" href="classmingfx_1_1_color.html">Color</a> &color, const <a class="el" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &texture)</td></tr>
<tr class="memdesc:abec2513648c1238f36c41cf3c85dd868"><td class="mdescLeft"> </td><td class="mdescRight">Draws a background texture across the whole screen. <a href="classmingfx_1_1_quick_shapes.html#abec2513648c1238f36c41cf3c85dd868">More...</a><br /></td></tr>
<tr class="separator:abec2513648c1238f36c41cf3c85dd868"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa7564a49dc2ff8efd93dec13186cb75b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_default_shader.html">DefaultShader</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#aa7564a49dc2ff8efd93dec13186cb75b">default_shader</a> ()</td></tr>
<tr class="memdesc:aa7564a49dc2ff8efd93dec13186cb75b"><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the default shader used internally by the Draw class so that you may change the default lighting properties if you wish. <a href="classmingfx_1_1_quick_shapes.html#aa7564a49dc2ff8efd93dec13186cb75b">More...</a><br /></td></tr>
<tr class="separator:aa7564a49dc2ff8efd93dec13186cb75b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac8b702a25296cfea15eef1e185333272"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_default_shader_1_1_material_properties.html">DefaultShader::MaterialProperties</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_quick_shapes.html#ac8b702a25296cfea15eef1e185333272">material</a> ()</td></tr>
<tr class="memdesc:ac8b702a25296cfea15eef1e185333272"><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the default material properties for the shapes so that you may adjust the reflectance properties used by all the shapes if needed. <a href="classmingfx_1_1_quick_shapes.html#ac8b702a25296cfea15eef1e185333272">More...</a><br /></td></tr>
<tr class="separator:ac8b702a25296cfea15eef1e185333272"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="aaea35a34a9495a9ab25cd9aa32a91603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaea35a34a9495a9ab25cd9aa32a91603">◆ </a></span>LinesType</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603">mingfx::QuickShapes::LinesType</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aaea35a34a9495a9ab25cd9aa32a91603ae585142391f356c60bcfe68279ec2727"></a>LINES </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aaea35a34a9495a9ab25cd9aa32a91603ae64a4d2159ed46d077e21a505575c814"></a>LINE_STRIP </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134"></a>LINE_LOOP </td><td class="fielddoc"></td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="quick__shapes_8h_source.html#l00134">134</a> of file <a class="el" href="quick__shapes_8h_source.html">quick_shapes.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a5764a0953013ece013bf3e2a72e4afa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5764a0953013ece013bf3e2a72e4afa2">◆ </a></span>QuickShapes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">mingfx::QuickShapes::QuickShapes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3a75dde188ec076ea46a6319ed1ca046"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a75dde188ec076ea46a6319ed1ca046">◆ </a></span>~QuickShapes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual mingfx::QuickShapes::~QuickShapes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa7564a49dc2ff8efd93dec13186cb75b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7564a49dc2ff8efd93dec13186cb75b">◆ </a></span>default_shader()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmingfx_1_1_default_shader.html">DefaultShader</a>* mingfx::QuickShapes::default_shader </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a pointer to the default shader used internally by the Draw class so that you may change the default lighting properties if you wish. </p>
</div>
</div>
<a id="aebe27814a826558ac0475fef3d4481eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebe27814a826558ac0475fef3d4481eb">◆ </a></span>DrawArrow()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawArrow </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmingfx_1_1_point3.html">Point3</a> </td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td>
<td class="paramname"><em>dir</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>radius</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws an arrow originating at point p and extending in the direction and length specified by dir. </p>
<p>radius is the radius of the cylinder used to draw the shaft of the arrow. </p>
</div>
</div>
<a id="a637876fdc13e84282922350b53dab5f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a637876fdc13e84282922350b53dab5f8">◆ </a></span>DrawAxes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawAxes </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a right handed set of axes at the coordinate frame specified by the modelMatrix. </p>
<p>The arrows are 1 unit in length and colored based on the axis: X=red, Y=green, Z=blue. </p>
</div>
</div>
<a id="ab24811cfd980b3f2ec4ebccf6c0e8b30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab24811cfd980b3f2ec4ebccf6c0e8b30">◆ </a></span>DrawBrush()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawBrush </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws the classic 3D paintbrush cursor from the 2001 Keefe et al. </p>
<p>CavePainting paper. The tip of the brush is at (0,0,0), the front flat edge runs along the X axis, and the handle runs in the +Z direction. </p>
</div>
</div>
<a id="a1880f6dd3e794cd9f6e5d9138f93a424"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1880f6dd3e794cd9f6e5d9138f93a424">◆ </a></span>DrawCone()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawCone </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a cone with radius 1 and height y=-1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. </p>
</div>
</div>
<a id="adad98f87a40650ff7c605a94b6d937af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adad98f87a40650ff7c605a94b6d937af">◆ </a></span>DrawCube()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawCube </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a cube with extents -1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. </p>
</div>
</div>
<a id="a69c442154f800c6bb3f6ffa8395e2844"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c442154f800c6bb3f6ffa8395e2844">◆ </a></span>DrawCylinder()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawCylinder </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a cylinder with radius 1 and height y=-1 to 1 given the model, view, and projection matrices provided and using the supplied color as a material property. </p>
</div>
</div>
<a id="abec2513648c1238f36c41cf3c85dd868"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abec2513648c1238f36c41cf3c85dd868">◆ </a></span>DrawFullscreenTexture()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawFullscreenTexture </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_texture2_d.html">Texture2D</a> & </td>
<td class="paramname"><em>texture</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a background texture across the whole screen. </p>
<p>Typically, you will want to do this before any other draw calls. </p>
</div>
</div>
<a id="af59ae8d8c5bd0447f3bb7f56112400bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af59ae8d8c5bd0447f3bb7f56112400bf">◆ </a></span>DrawLines()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawLines </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector< <a class="el" href="classmingfx_1_1_point3.html">Point3</a> > & </td>
<td class="paramname"><em>points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603">LinesType</a> </td>
<td class="paramname"><em>linesType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>radius</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a series of line segments. </p>
<p>Using linesType=LINES connects each consecutive pair of points in the points array with a line. A linesType=LINE_STRIP will connect each point to the next. And, a linesType=LINE_LOOP will connect each point to the next and in addition connect the last to the first. Example: </p><div class="fragment"><div class="line">Matrix4 model;</div>
<div class="line">Matrix4 view = <a class="code" href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de">Matrix4::LookAt</a>(Point3(0,0,3), Point3(0,0,0), Vector3(0,1,0));</div>
<div class="line">Matrix4 proj = <a class="code" href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e">Matrix4::Perspective</a>(60.0, aspect_ratio(), 0.1, 10.0);</div>
<div class="line">std::vector<Point3> loop;</div>
<div class="line">loop.push_back(Point3( 4.0, 4.0, -4.0));</div>
<div class="line">loop.push_back(Point3(-4.0, 4.0, -4.0));</div>
<div class="line">loop.push_back(Point3(-4.0, 4.0, 4.0));</div>
<div class="line">loop.push_back(Point3( 4.0, 4.0, 4.0));</div>
<div class="line">quick_shapes.DrawLines(model, view, proj, Color(1,1,1), loop, <a class="code" href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134">QuickShapes::LinesType::LINE_LOOP</a>, 0.1);</div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0e34aee86758a0397074590b87712c5e"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e">mingfx::Matrix4::Perspective</a></div><div class="ttdeci">static Matrix4 Perspective(float fov_y_in_degrees, float aspect_ratio, float near_plane_dist, float far_plane_dist)</div><div class="ttdoc">Returns a perspective projection matrix equivalent to the one gluPerspective creates.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a4543695a6dfc996d0312b70c2eaa00de"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de">mingfx::Matrix4::LookAt</a></div><div class="ttdeci">static Matrix4 LookAt(Point3 eye, Point3 target, Vector3 up)</div><div class="ttdoc">Returns a view matrix that centers the camera at the 'eye' position and orients it to look at the des...</div></div>
<div class="ttc" id="aclassmingfx_1_1_quick_shapes_html_aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134"><div class="ttname"><a href="classmingfx_1_1_quick_shapes.html#aaea35a34a9495a9ab25cd9aa32a91603a8e0df0247f66bd2cac06f16abb562134">mingfx::QuickShapes::LinesType::LINE_LOOP</a></div><div class="ttdeci">@ LINE_LOOP</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0feae19a04d9f315a39e2bdbf659bd7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0feae19a04d9f315a39e2bdbf659bd7e">◆ </a></span>DrawLineSegment()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawLineSegment </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_point3.html">Point3</a> & </td>
<td class="paramname"><em>p1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_point3.html">Point3</a> & </td>
<td class="paramname"><em>p2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>radius</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a cylinder between the two points. </p>
</div>
</div>
<a id="aa5f4f64e3708630a6d58f6b4ca7d2744"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5f4f64e3708630a6d58f6b4ca7d2744">◆ </a></span>DrawSphere()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawSphere </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a sphere with radius 1 given the model, view, and projection matrices provided and using the supplied color as a material property. </p>
</div>
</div>
<a id="a4350ea23b8b9e0e8119310423d641ab3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4350ea23b8b9e0e8119310423d641ab3">◆ </a></span>DrawSquare() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawSquare </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a square in the X-Y plane with extents -1 to 1 and normal in the +Y direction. </p>
<p>Uses the model, view, and projection matrices provided and the supplied color as a material property. </p>
</div>
</div>
<a id="a7187f72fa8e12b38dcd0ce424fc85fbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7187f72fa8e12b38dcd0ce424fc85fbc">◆ </a></span>DrawSquare() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void mingfx::QuickShapes::DrawSquare </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>modelMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>viewMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_matrix4.html">Matrix4</a> & </td>
<td class="paramname"><em>projectionMatrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_color.html">Color</a> & </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmingfx_1_1_texture2_d.html">Texture2D</a> & </td>
<td class="paramname"><em>texture</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws a square, which you can deform into some other shape by adjusting the model matrix, and applies a texture to it. </p>
<p>The texture must already be bound to the OpenGL textureID provided. The square lies in the X-Y plane with extents -1 to 1 and normal in the +Y direction. No lighting is applied. </p>
</div>
</div>
<a id="ac8b702a25296cfea15eef1e185333272"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8b702a25296cfea15eef1e185333272">◆ </a></span>material()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmingfx_1_1_default_shader_1_1_material_properties.html">DefaultShader::MaterialProperties</a>* mingfx::QuickShapes::material </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a pointer to the default material properties for the shapes so that you may adjust the reflectance properties used by all the shapes if needed. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="quick__shapes_8h_source.html">quick_shapes.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>
|