diff options
author | unknown <paulx161@umn.edu> | 2021-02-03 14:22:28 -0600 |
---|---|---|
committer | unknown <paulx161@umn.edu> | 2021-02-03 14:22:28 -0600 |
commit | 9b83919815f6a6ce5d73da1c28483970d0ca5589 (patch) | |
tree | 4558864445dccc1605e5315e0bb11c46d2018da1 /dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html | |
parent | Added worksheet and support code for assignment 2 (diff) | |
download | csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.gz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.bz2 csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.lz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.xz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.zst csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.zip |
added dev/MinGfx/
Diffstat (limited to 'dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html')
-rw-r--r-- | dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html | 844 |
1 files changed, 844 insertions, 0 deletions
diff --git a/dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html b/dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html new file mode 100644 index 0000000..f499aff --- /dev/null +++ b/dev/MinGfx/docs/html/classmingfx_1_1_quick_shapes.html @@ -0,0 +1,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> |