diff options
Diffstat (limited to 'dev/MinGfx/docs/html/shader__program_8h_source.html')
-rw-r--r-- | dev/MinGfx/docs/html/shader__program_8h_source.html | 548 |
1 files changed, 274 insertions, 274 deletions
diff --git a/dev/MinGfx/docs/html/shader__program_8h_source.html b/dev/MinGfx/docs/html/shader__program_8h_source.html index ff40d8e..25095ef 100644 --- a/dev/MinGfx/docs/html/shader__program_8h_source.html +++ b/dev/MinGfx/docs/html/shader__program_8h_source.html @@ -1,274 +1,274 @@ -<!-- 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: src/shader_program.h Source File</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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="headertitle"> -<div class="title">shader_program.h</div> </div> -</div><!--header--> -<div class="contents"> -<a href="shader__program_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> This file is part of the MinGfx Project.</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> All Rights Reserved.</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> </span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Original Author(s) of this File:</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> </span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Author(s) of Significant Updates/Modifications to the File:</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ...</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> */</span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef SRC_SHADERPROGRAM_H_</span></div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define SRC_SHADERPROGRAM_H_</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="color_8h.html">color.h</a>"</span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="matrix4_8h.html">matrix4.h</a>"</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="opengl__headers_8h.html">opengl_headers.h</a>"</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="point2_8h.html">point2.h</a>"</span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="point3_8h.html">point3.h</a>"</span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="texture2d_8h.html">texture2d.h</a>"</span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="vector2_8h.html">vector2.h</a>"</span></div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="vector3_8h.html">vector3.h</a>"</span></div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <map></span></div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div> -<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html"> 66</a></span> <span class="keyword">class </span><a class="code" href="classmingfx_1_1_shader_program.html">ShaderProgram</a> {</div> -<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700"> 69</a></span>  <a class="code" href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700">ShaderProgram</a>();</div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div> -<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4"> 71</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4">~ShaderProgram</a>();</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// ---- These should be called during startup (e.g., in InitOpenGL()) ----</span></div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div> -<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5"> 80</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5">AddVertexShaderFromFile</a>(<span class="keyword">const</span> std::string &file);</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div> -<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d"> 84</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d">AddVertexShaderFromSource</a>(<span class="keyword">const</span> std::string &code);</div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div> -<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0"> 90</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0">AddFragmentShaderFromFile</a>(<span class="keyword">const</span> std::string &file);</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div> -<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c"> 94</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c">AddFragmentShaderFromSource</a>(<span class="keyword">const</span> std::string &code);</div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div> -<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794"> 99</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794">LinkProgram</a>();</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// ---- These should be called during rendering (e.g., in DrawUsingOpenGL()) ----</span></div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div> -<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e"> 110</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e">UseProgram</a>();</div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// Set Uniform Variables in the Shader</span></div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="comment">// MinGfx types</span></div> -<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div> -<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a"> 118</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div> -<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25"> 122</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &v);</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div> -<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487"> 126</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a> &p);</div> -<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div> -<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5"> 130</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &v);</div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div> -<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0"> 134</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> &m);</div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div> -<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60"> 138</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_color.html">Color</a> &c);</div> -<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div> -<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div> -<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// built-in types</span></div> -<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div> -<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e"> 145</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> i);</div> -<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div> -<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840"> 149</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ui);</div> -<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div> -<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c"> 153</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> f);</div> -<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div> -<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div> -<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// built-in types (arrays)</span></div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div> -<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b"> 160</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div> -<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de"> 164</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div> -<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19"> 168</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div> -<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623"> 173</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div> -<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c"> 177</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div> -<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657"> 181</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div> -<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div> -<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511"> 186</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div> -<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa"> 190</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div> -<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d"> 194</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div> -<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div> -<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba"> 199</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div> -<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695"> 203</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div> -<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1"> 207</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div> -<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div> -<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div> -<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="comment">// Set Textures (Sampler Variables in the Shader)</span></div> -<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div> -<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2"> 215</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2">BindTexture</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &tex);</div> -<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div> -<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96"> 219</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96">BindTexture</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &tex, <span class="keywordtype">int</span> texUnit);</div> -<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div> -<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div> -<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da"> 223</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da">StopProgram</a>();</div> -<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div> -<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe"> 226</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe">initialized</a>();</div> -<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div> -<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">private</span>:</div> -<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  GLuint vertexShader_;</div> -<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  GLuint fragmentShader_;</div> -<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  GLuint program_;</div> -<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  std::map<std::string, int> texBindings_;</div> -<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> };</div> -<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div> -<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div> -<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> } <span class="comment">// end namespace</span></div> -<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div> -<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#endif</span></div> -<div class="ttc" id="aclassmingfx_1_1_color_html"><div class="ttname"><a href="classmingfx_1_1_color.html">mingfx::Color</a></div><div class="ttdoc">Represents a 4-component (R,G,B,A) color, stored internally in a float array to be compatable with Op...</div><div class="ttdef"><b>Definition:</b> <a href="color_8h_source.html#l00041">color.h:41</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_matrix4_html"><div class="ttname"><a href="classmingfx_1_1_matrix4.html">mingfx::Matrix4</a></div><div class="ttdoc">A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...</div><div class="ttdef"><b>Definition:</b> <a href="matrix4_8h_source.html#l00050">matrix4.h:50</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html"><div class="ttname"><a href="classmingfx_1_1_point2.html">mingfx::Point2</a></div><div class="ttdoc">A 2D Point with floating point coordinates, used for storing 2D texture coordinates,...</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00028">point2.h:28</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point3_html"><div class="ttname"><a href="classmingfx_1_1_point3.html">mingfx::Point3</a></div><div class="ttdoc">A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="point3_8h_source.html#l00052">point3.h:52</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html"><div class="ttname"><a href="classmingfx_1_1_shader_program.html">mingfx::ShaderProgram</a></div><div class="ttdoc">A wrapper around GLSL shader programs.</div><div class="ttdef"><b>Definition:</b> <a href="shader__program_8h_source.html#l00066">shader_program.h:66</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a0b3e6285354e007bf79a9ac1587f86f5"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Vector3 &v)</div><div class="ttdoc">Passes the x,y,z,0 values of vector v to the shader program and stores the result in the shader varia...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a0c3d86656c464223dc615cbec0943700"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700">mingfx::ShaderProgram::ShaderProgram</a></div><div class="ttdeci">ShaderProgram()</div><div class="ttdoc">Creates an empty ShaderProgram object.</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2854ad947f74432edc0b730462b7f695"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 4D unsigned int arrays to the shader program and stores the result in the sh...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2e4d6db720bf22038270cf8c51cdf7da"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da">mingfx::ShaderProgram::StopProgram</a></div><div class="ttdeci">void StopProgram()</div><div class="ttdoc">Call this after rendering geometry to deactivate the shader.</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2eddd93e446ad2079d1c57676655ffbe"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe">mingfx::ShaderProgram::initialized</a></div><div class="ttdeci">bool initialized()</div><div class="ttdoc">Returns true if the shader program has been successfully compiled and linked.</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a461ba9368ad89fe1e9749b14b099027a"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Point2 &p)</div><div class="ttdoc">Passes the x,y values of point p to the shader program and stores the result in the shader variable n...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a4e5a2659f66f29433b15748f36c61ea2"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2">mingfx::ShaderProgram::BindTexture</a></div><div class="ttdeci">void BindTexture(const std::string &name, const Texture2D &tex)</div><div class="ttdoc">Binds a Texture2D to a sampler2D in the shader program. This version automatically selects an availab...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a51cd1c1d194b2f5c07e81d4f579f2f2b"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count ints to the shader program and stores the result in the shader variable name...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a5c7891252d6b6c40982b56543820cd19"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count floats to the shader program and stores the result in the shader variable na...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a63ac061271fad9338e922389d4a179e5"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5">mingfx::ShaderProgram::AddVertexShaderFromFile</a></div><div class="ttdeci">bool AddVertexShaderFromFile(const std::string &file)</div><div class="ttdoc">Call during initialization but after the OpenGL context has been created (e.g., inside InitOpenGL())....</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a680fa87cb30343bb56abc48a090e823c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, float f)</div><div class="ttdoc">Passes the float to the shader program and stores the result in the shader variable named name,...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a6fdca4b0ccaa8a0b2c8c68fd7645727c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 2D unsigned int arrays to the shader program and stores the result in the sh...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a707d2cb51a54151959c6570d6bfc7840"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, unsigned int ui)</div><div class="ttdoc">Passes the unsigned int to the shader program and stores the result in the shader variable named name...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a766988eac957e9d810fdf2cbd2eafae0"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Matrix4 &m)</div><div class="ttdoc">Passes the column-major 16 float values of matrix m to the shader program and stores the result in th...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a7a3063ec42798c076e1ab0c0e6411e9c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c">mingfx::ShaderProgram::AddFragmentShaderFromSource</a></div><div class="ttdeci">bool AddFragmentShaderFromSource(const std::string &code)</div><div class="ttdoc">This loads and compiles a shader from a string. An error will be printed to stderr if there are any c...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a8c31de93b17f050baecb5323a69bdbfa"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 3D unsigned int arrays to the shader program and stores the result in the sh...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a93914cad6d8e751218c88010c51cf657"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 2D float arrays to the shader program and stores the result in the shader va...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a96da0dede354f2511084eeb25428edb4"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4">mingfx::ShaderProgram::~ShaderProgram</a></div><div class="ttdeci">virtual ~ShaderProgram()</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9710cf4c72a7321b9a1ff1b86ae42da1"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 4D float arrays to the shader program and stores the result in the shader va...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9bab504c74a1c4258258b91afe9a9623"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 2D int arrays to the shader program and stores the result in the shader vari...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9ec2b53ba4bea7e48ef459530b8c6d60"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Color &c)</div><div class="ttdoc">Passes the r,g,b,a values of color c to the shader program and stores the result in the shader variab...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab06ef4682f801fca080a8f67dc6345ba"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 4D int arrays to the shader program and stores the result in the shader vari...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab547dadc25582bec157b39de29d1419e"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, int i)</div><div class="ttdoc">Passes the int to the shader program and stores the result in the shader variable named name,...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab5fed4904a59c6e83ebb43aebf4c043d"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d">mingfx::ShaderProgram::AddVertexShaderFromSource</a></div><div class="ttdeci">bool AddVertexShaderFromSource(const std::string &code)</div><div class="ttdoc">This loads and compiles a shader from a string. An error will be printed to stderr if there are any c...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_abba87d2b0baca89232dbd1d6331875de"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count unsigned ints to the shader program and stores the result in the shader vari...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ac582a2aa74a83095e0b8e359ce432511"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 3D int arrays to the shader program and stores the result in the shader vari...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ac59b3d0542ce45631876615eabf66487"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Point3 &p)</div><div class="ttdoc">Passes the x,y,z,1 values of point p to the shader program and stores the result in the shader variab...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_acd94fc12beb85fe57aa80d3b825018b0"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0">mingfx::ShaderProgram::AddFragmentShaderFromFile</a></div><div class="ttdeci">bool AddFragmentShaderFromFile(const std::string &file)</div><div class="ttdoc">Call during initialization but after the OpenGL context has been created (e.g., inside InitOpenGL())....</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ad14c3a9a4ee1eef39f933bc46260c794"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794">mingfx::ShaderProgram::LinkProgram</a></div><div class="ttdeci">bool LinkProgram()</div><div class="ttdoc">Call this after adding vertex and fragment shaders in order to link them together to create the full ...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_aef58537d81bdb9d88a5f1c56a2b98b25"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Vector2 &v)</div><div class="ttdoc">Passes the x,y values of vector v to the shader program and stores the result in the shader variable ...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_af1c968f1c79f70e183c9d1239d3d205e"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e">mingfx::ShaderProgram::UseProgram</a></div><div class="ttdeci">void UseProgram()</div><div class="ttdoc">Call this first to make the shader program active, then call SetUniform() to pass data from your C++ ...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_af81d97c2843278eb40cdcdf8e5d54a96"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96">mingfx::ShaderProgram::BindTexture</a></div><div class="ttdeci">void BindTexture(const std::string &name, const Texture2D &tex, int texUnit)</div><div class="ttdoc">Binds a Texture2D to a sampler2D in the shader program. This version allows you to specify the textur...</div></div> -<div class="ttc" id="aclassmingfx_1_1_shader_program_html_afc84377716296a57299ebbc01884b65d"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 3D float arrays to the shader program and stores the result in the shader va...</div></div> -<div class="ttc" id="aclassmingfx_1_1_texture2_d_html"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html">mingfx::Texture2D</a></div><div class="ttdoc">A wrapper around a 2D texture that supports loading images from files or setting texture color data d...</div><div class="ttdef"><b>Definition:</b> <a href="texture2d_8h_source.html#l00042">texture2d.h:42</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_vector2_html"><div class="ttname"><a href="classmingfx_1_1_vector2.html">mingfx::Vector2</a></div><div class="ttdoc">A 2D Vector with floating point coordinates, used for storing 2D translations, mouse movements,...</div><div class="ttdef"><b>Definition:</b> <a href="vector2_8h_source.html#l00028">vector2.h:28</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html"><div class="ttname"><a href="classmingfx_1_1_vector3.html">mingfx::Vector3</a></div><div class="ttdoc">A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00062">vector3.h:62</a></div></div> -<div class="ttc" id="acolor_8h_html"><div class="ttname"><a href="color_8h.html">color.h</a></div></div> -<div class="ttc" id="amatrix4_8h_html"><div class="ttname"><a href="matrix4_8h.html">matrix4.h</a></div></div> -<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div> -<div class="ttc" id="aopengl__headers_8h_html"><div class="ttname"><a href="opengl__headers_8h.html">opengl_headers.h</a></div></div> -<div class="ttc" id="apoint2_8h_html"><div class="ttname"><a href="point2_8h.html">point2.h</a></div></div> -<div class="ttc" id="apoint3_8h_html"><div class="ttname"><a href="point3_8h.html">point3.h</a></div></div> -<div class="ttc" id="atexture2d_8h_html"><div class="ttname"><a href="texture2d_8h.html">texture2d.h</a></div></div> -<div class="ttc" id="avector2_8h_html"><div class="ttname"><a href="vector2_8h.html">vector2.h</a></div></div> -<div class="ttc" id="avector3_8h_html"><div class="ttname"><a href="vector3_8h.html">vector3.h</a></div></div> -</div><!-- fragment --></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> +<!-- 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: src/shader_program.h Source File</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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">shader_program.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="shader__program_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> This file is part of the MinGfx Project.</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> All Rights Reserved.</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Original Author(s) of this File:</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Author(s) of Significant Updates/Modifications to the File:</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ...</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> */</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef SRC_SHADERPROGRAM_H_</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define SRC_SHADERPROGRAM_H_</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="color_8h.html">color.h</a>"</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="matrix4_8h.html">matrix4.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="opengl__headers_8h.html">opengl_headers.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="point2_8h.html">point2.h</a>"</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="point3_8h.html">point3.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="texture2d_8h.html">texture2d.h</a>"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="vector2_8h.html">vector2.h</a>"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="vector3_8h.html">vector3.h</a>"</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <map></span></div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
+<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html"> 66</a></span> <span class="keyword">class </span><a class="code" href="classmingfx_1_1_shader_program.html">ShaderProgram</a> {</div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700"> 69</a></span>  <a class="code" href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700">ShaderProgram</a>();</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
+<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4"> 71</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4">~ShaderProgram</a>();</div>
+<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
+<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
+<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// ---- These should be called during startup (e.g., in InitOpenGL()) ----</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
+<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5"> 80</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5">AddVertexShaderFromFile</a>(<span class="keyword">const</span> std::string &file);</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
+<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d"> 84</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d">AddVertexShaderFromSource</a>(<span class="keyword">const</span> std::string &code);</div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
+<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0"> 90</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0">AddFragmentShaderFromFile</a>(<span class="keyword">const</span> std::string &file);</div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
+<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c"> 94</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c">AddFragmentShaderFromSource</a>(<span class="keyword">const</span> std::string &code);</div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
+<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794"> 99</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794">LinkProgram</a>();</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
+<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// ---- These should be called during rendering (e.g., in DrawUsingOpenGL()) ----</span></div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
+<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e"> 110</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e">UseProgram</a>();</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// Set Uniform Variables in the Shader</span></div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="comment">// MinGfx types</span></div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
+<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a"> 118</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
+<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25"> 122</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &v);</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
+<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487"> 126</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a> &p);</div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
+<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5"> 130</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &v);</div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
+<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0"> 134</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> &m);</div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
+<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60"> 138</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_color.html">Color</a> &c);</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// built-in types</span></div>
+<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
+<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e"> 145</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> i);</div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
+<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840"> 149</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ui);</div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
+<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c"> 153</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c">SetUniform</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> f);</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// built-in types (arrays)</span></div>
+<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
+<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b"> 160</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
+<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de"> 164</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
+<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19"> 168</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19">SetUniformArray1</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
+<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623"> 173</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
+<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c"> 177</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
+<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657"> 181</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657">SetUniformArray2</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div>
+<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511"> 186</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
+<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa"> 190</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
+<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d"> 194</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d">SetUniformArray3</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
+<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba"> 199</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">int</span> *i, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
+<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695"> 203</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ui, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
+<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1"> 207</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1">SetUniformArray4</a>(<span class="keyword">const</span> std::string &name, <span class="keywordtype">float</span> *f, <span class="keywordtype">int</span> count);</div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="comment">// Set Textures (Sampler Variables in the Shader)</span></div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
+<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2"> 215</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2">BindTexture</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &tex);</div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
+<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96"> 219</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96">BindTexture</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> &tex, <span class="keywordtype">int</span> texUnit);</div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
+<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da"> 223</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da">StopProgram</a>();</div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
+<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe"> 226</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe">initialized</a>();</div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  GLuint vertexShader_;</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  GLuint fragmentShader_;</div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  GLuint program_;</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  std::map<std::string, int> texBindings_;</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> };</div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> } <span class="comment">// end namespace</span></div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#endif</span></div>
+<div class="ttc" id="aclassmingfx_1_1_color_html"><div class="ttname"><a href="classmingfx_1_1_color.html">mingfx::Color</a></div><div class="ttdoc">Represents a 4-component (R,G,B,A) color, stored internally in a float array to be compatable with Op...</div><div class="ttdef"><b>Definition:</b> <a href="color_8h_source.html#l00041">color.h:41</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_matrix4_html"><div class="ttname"><a href="classmingfx_1_1_matrix4.html">mingfx::Matrix4</a></div><div class="ttdoc">A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...</div><div class="ttdef"><b>Definition:</b> <a href="matrix4_8h_source.html#l00050">matrix4.h:50</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html"><div class="ttname"><a href="classmingfx_1_1_point2.html">mingfx::Point2</a></div><div class="ttdoc">A 2D Point with floating point coordinates, used for storing 2D texture coordinates,...</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00028">point2.h:28</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point3_html"><div class="ttname"><a href="classmingfx_1_1_point3.html">mingfx::Point3</a></div><div class="ttdoc">A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="point3_8h_source.html#l00052">point3.h:52</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html"><div class="ttname"><a href="classmingfx_1_1_shader_program.html">mingfx::ShaderProgram</a></div><div class="ttdoc">A wrapper around GLSL shader programs.</div><div class="ttdef"><b>Definition:</b> <a href="shader__program_8h_source.html#l00066">shader_program.h:66</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a0b3e6285354e007bf79a9ac1587f86f5"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a0b3e6285354e007bf79a9ac1587f86f5">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Vector3 &v)</div><div class="ttdoc">Passes the x,y,z,0 values of vector v to the shader program and stores the result in the shader varia...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a0c3d86656c464223dc615cbec0943700"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a0c3d86656c464223dc615cbec0943700">mingfx::ShaderProgram::ShaderProgram</a></div><div class="ttdeci">ShaderProgram()</div><div class="ttdoc">Creates an empty ShaderProgram object.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2854ad947f74432edc0b730462b7f695"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2854ad947f74432edc0b730462b7f695">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 4D unsigned int arrays to the shader program and stores the result in the sh...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2e4d6db720bf22038270cf8c51cdf7da"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2e4d6db720bf22038270cf8c51cdf7da">mingfx::ShaderProgram::StopProgram</a></div><div class="ttdeci">void StopProgram()</div><div class="ttdoc">Call this after rendering geometry to deactivate the shader.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a2eddd93e446ad2079d1c57676655ffbe"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a2eddd93e446ad2079d1c57676655ffbe">mingfx::ShaderProgram::initialized</a></div><div class="ttdeci">bool initialized()</div><div class="ttdoc">Returns true if the shader program has been successfully compiled and linked.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a461ba9368ad89fe1e9749b14b099027a"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a461ba9368ad89fe1e9749b14b099027a">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Point2 &p)</div><div class="ttdoc">Passes the x,y values of point p to the shader program and stores the result in the shader variable n...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a4e5a2659f66f29433b15748f36c61ea2"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a4e5a2659f66f29433b15748f36c61ea2">mingfx::ShaderProgram::BindTexture</a></div><div class="ttdeci">void BindTexture(const std::string &name, const Texture2D &tex)</div><div class="ttdoc">Binds a Texture2D to a sampler2D in the shader program. This version automatically selects an availab...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a51cd1c1d194b2f5c07e81d4f579f2f2b"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a51cd1c1d194b2f5c07e81d4f579f2f2b">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count ints to the shader program and stores the result in the shader variable name...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a5c7891252d6b6c40982b56543820cd19"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a5c7891252d6b6c40982b56543820cd19">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count floats to the shader program and stores the result in the shader variable na...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a63ac061271fad9338e922389d4a179e5"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a63ac061271fad9338e922389d4a179e5">mingfx::ShaderProgram::AddVertexShaderFromFile</a></div><div class="ttdeci">bool AddVertexShaderFromFile(const std::string &file)</div><div class="ttdoc">Call during initialization but after the OpenGL context has been created (e.g., inside InitOpenGL())....</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a680fa87cb30343bb56abc48a090e823c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a680fa87cb30343bb56abc48a090e823c">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, float f)</div><div class="ttdoc">Passes the float to the shader program and stores the result in the shader variable named name,...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a6fdca4b0ccaa8a0b2c8c68fd7645727c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a6fdca4b0ccaa8a0b2c8c68fd7645727c">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 2D unsigned int arrays to the shader program and stores the result in the sh...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a707d2cb51a54151959c6570d6bfc7840"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a707d2cb51a54151959c6570d6bfc7840">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, unsigned int ui)</div><div class="ttdoc">Passes the unsigned int to the shader program and stores the result in the shader variable named name...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a766988eac957e9d810fdf2cbd2eafae0"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a766988eac957e9d810fdf2cbd2eafae0">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Matrix4 &m)</div><div class="ttdoc">Passes the column-major 16 float values of matrix m to the shader program and stores the result in th...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a7a3063ec42798c076e1ab0c0e6411e9c"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a7a3063ec42798c076e1ab0c0e6411e9c">mingfx::ShaderProgram::AddFragmentShaderFromSource</a></div><div class="ttdeci">bool AddFragmentShaderFromSource(const std::string &code)</div><div class="ttdoc">This loads and compiles a shader from a string. An error will be printed to stderr if there are any c...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a8c31de93b17f050baecb5323a69bdbfa"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a8c31de93b17f050baecb5323a69bdbfa">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count 3D unsigned int arrays to the shader program and stores the result in the sh...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a93914cad6d8e751218c88010c51cf657"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a93914cad6d8e751218c88010c51cf657">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 2D float arrays to the shader program and stores the result in the shader va...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a96da0dede354f2511084eeb25428edb4"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a96da0dede354f2511084eeb25428edb4">mingfx::ShaderProgram::~ShaderProgram</a></div><div class="ttdeci">virtual ~ShaderProgram()</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9710cf4c72a7321b9a1ff1b86ae42da1"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9710cf4c72a7321b9a1ff1b86ae42da1">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 4D float arrays to the shader program and stores the result in the shader va...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9bab504c74a1c4258258b91afe9a9623"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9bab504c74a1c4258258b91afe9a9623">mingfx::ShaderProgram::SetUniformArray2</a></div><div class="ttdeci">void SetUniformArray2(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 2D int arrays to the shader program and stores the result in the shader vari...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_a9ec2b53ba4bea7e48ef459530b8c6d60"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#a9ec2b53ba4bea7e48ef459530b8c6d60">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Color &c)</div><div class="ttdoc">Passes the r,g,b,a values of color c to the shader program and stores the result in the shader variab...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab06ef4682f801fca080a8f67dc6345ba"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab06ef4682f801fca080a8f67dc6345ba">mingfx::ShaderProgram::SetUniformArray4</a></div><div class="ttdeci">void SetUniformArray4(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 4D int arrays to the shader program and stores the result in the shader vari...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab547dadc25582bec157b39de29d1419e"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab547dadc25582bec157b39de29d1419e">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, int i)</div><div class="ttdoc">Passes the int to the shader program and stores the result in the shader variable named name,...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ab5fed4904a59c6e83ebb43aebf4c043d"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ab5fed4904a59c6e83ebb43aebf4c043d">mingfx::ShaderProgram::AddVertexShaderFromSource</a></div><div class="ttdeci">bool AddVertexShaderFromSource(const std::string &code)</div><div class="ttdoc">This loads and compiles a shader from a string. An error will be printed to stderr if there are any c...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_abba87d2b0baca89232dbd1d6331875de"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#abba87d2b0baca89232dbd1d6331875de">mingfx::ShaderProgram::SetUniformArray1</a></div><div class="ttdeci">void SetUniformArray1(const std::string &name, unsigned int *ui, int count)</div><div class="ttdoc">Passes an array of count unsigned ints to the shader program and stores the result in the shader vari...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ac582a2aa74a83095e0b8e359ce432511"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ac582a2aa74a83095e0b8e359ce432511">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, int *i, int count)</div><div class="ttdoc">Passes an array of count 3D int arrays to the shader program and stores the result in the shader vari...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ac59b3d0542ce45631876615eabf66487"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ac59b3d0542ce45631876615eabf66487">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Point3 &p)</div><div class="ttdoc">Passes the x,y,z,1 values of point p to the shader program and stores the result in the shader variab...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_acd94fc12beb85fe57aa80d3b825018b0"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#acd94fc12beb85fe57aa80d3b825018b0">mingfx::ShaderProgram::AddFragmentShaderFromFile</a></div><div class="ttdeci">bool AddFragmentShaderFromFile(const std::string &file)</div><div class="ttdoc">Call during initialization but after the OpenGL context has been created (e.g., inside InitOpenGL())....</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_ad14c3a9a4ee1eef39f933bc46260c794"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#ad14c3a9a4ee1eef39f933bc46260c794">mingfx::ShaderProgram::LinkProgram</a></div><div class="ttdeci">bool LinkProgram()</div><div class="ttdoc">Call this after adding vertex and fragment shaders in order to link them together to create the full ...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_aef58537d81bdb9d88a5f1c56a2b98b25"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#aef58537d81bdb9d88a5f1c56a2b98b25">mingfx::ShaderProgram::SetUniform</a></div><div class="ttdeci">void SetUniform(const std::string &name, const Vector2 &v)</div><div class="ttdoc">Passes the x,y values of vector v to the shader program and stores the result in the shader variable ...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_af1c968f1c79f70e183c9d1239d3d205e"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#af1c968f1c79f70e183c9d1239d3d205e">mingfx::ShaderProgram::UseProgram</a></div><div class="ttdeci">void UseProgram()</div><div class="ttdoc">Call this first to make the shader program active, then call SetUniform() to pass data from your C++ ...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_af81d97c2843278eb40cdcdf8e5d54a96"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#af81d97c2843278eb40cdcdf8e5d54a96">mingfx::ShaderProgram::BindTexture</a></div><div class="ttdeci">void BindTexture(const std::string &name, const Texture2D &tex, int texUnit)</div><div class="ttdoc">Binds a Texture2D to a sampler2D in the shader program. This version allows you to specify the textur...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_shader_program_html_afc84377716296a57299ebbc01884b65d"><div class="ttname"><a href="classmingfx_1_1_shader_program.html#afc84377716296a57299ebbc01884b65d">mingfx::ShaderProgram::SetUniformArray3</a></div><div class="ttdeci">void SetUniformArray3(const std::string &name, float *f, int count)</div><div class="ttdoc">Passes an array of count 3D float arrays to the shader program and stores the result in the shader va...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html">mingfx::Texture2D</a></div><div class="ttdoc">A wrapper around a 2D texture that supports loading images from files or setting texture color data d...</div><div class="ttdef"><b>Definition:</b> <a href="texture2d_8h_source.html#l00042">texture2d.h:42</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector2_html"><div class="ttname"><a href="classmingfx_1_1_vector2.html">mingfx::Vector2</a></div><div class="ttdoc">A 2D Vector with floating point coordinates, used for storing 2D translations, mouse movements,...</div><div class="ttdef"><b>Definition:</b> <a href="vector2_8h_source.html#l00028">vector2.h:28</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html"><div class="ttname"><a href="classmingfx_1_1_vector3.html">mingfx::Vector3</a></div><div class="ttdoc">A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00062">vector3.h:62</a></div></div>
+<div class="ttc" id="acolor_8h_html"><div class="ttname"><a href="color_8h.html">color.h</a></div></div>
+<div class="ttc" id="amatrix4_8h_html"><div class="ttname"><a href="matrix4_8h.html">matrix4.h</a></div></div>
+<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div>
+<div class="ttc" id="aopengl__headers_8h_html"><div class="ttname"><a href="opengl__headers_8h.html">opengl_headers.h</a></div></div>
+<div class="ttc" id="apoint2_8h_html"><div class="ttname"><a href="point2_8h.html">point2.h</a></div></div>
+<div class="ttc" id="apoint3_8h_html"><div class="ttname"><a href="point3_8h.html">point3.h</a></div></div>
+<div class="ttc" id="atexture2d_8h_html"><div class="ttname"><a href="texture2d_8h.html">texture2d.h</a></div></div>
+<div class="ttc" id="avector2_8h_html"><div class="ttname"><a href="vector2_8h.html">vector2.h</a></div></div>
+<div class="ttc" id="avector3_8h_html"><div class="ttname"><a href="vector3_8h.html">vector3.h</a></div></div>
+</div><!-- fragment --></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>
|