aboutsummaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/texture2d_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'dev/MinGfx/docs/html/texture2d_8h_source.html')
-rw-r--r--dev/MinGfx/docs/html/texture2d_8h_source.html390
1 files changed, 195 insertions, 195 deletions
diff --git a/dev/MinGfx/docs/html/texture2d_8h_source.html b/dev/MinGfx/docs/html/texture2d_8h_source.html
index 2a1f2ea..fb9f2a6 100644
--- a/dev/MinGfx/docs/html/texture2d_8h_source.html
+++ b/dev/MinGfx/docs/html/texture2d_8h_source.html
@@ -1,195 +1,195 @@
-<!-- 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/texture2d.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
- &#160;<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&amp;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&amp;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">texture2d.h</div> </div>
-</div><!--header-->
-<div class="contents">
-<a href="texture2d_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>&#160;<span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<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>&#160;<span class="comment"> </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<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>&#160;<span class="comment"> All Rights Reserved.</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> </span></div>
-<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> Original Author(s) of this File:</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> </span></div>
-<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<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>&#160;<span class="comment"> ...</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
-<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef SRC_TEXTURE2D_H_</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define SRC_TEXTURE2D_H_</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
-<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
-<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="opengl__headers_8h.html">opengl_headers.h</a>&quot;</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="color_8h.html">color.h</a>&quot;</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
-<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
-<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
-<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
-<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
-<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html"> 42</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> {</div>
-<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
-<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d"> 47</a></span>&#160; <a class="code" href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d">Texture2D</a>(GLenum wrapMode=GL_REPEAT, GLenum filterMode=GL_LINEAR);</div>
-<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9"> 48</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9">~Texture2D</a>();</div>
-<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
-<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
-<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc"> 55</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc">InitFromFile</a>(<span class="keyword">const</span> std::string &amp;filename);</div>
-<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
-<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944"> 66</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944">InitFromBytes</a>(<span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>, <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data);</div>
-<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
-<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8"> 77</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8">InitFromFloats</a>(<span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>, <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>, <span class="keyword">const</span> <span class="keywordtype">float</span> * data);</div>
-<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
-<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
-<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c"> 83</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c">UpdateFromBytes</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data);</div>
-<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
-<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693"> 88</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693">UpdateFromFloats</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> * data);</div>
-<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
-<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
-<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87"> 92</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87">initialized</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
-<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869"> 95</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
-<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88"> 98</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
-<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504"> 101</a></span>&#160; GLuint <a class="code" href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504">opengl_id</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
-<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea"> 104</a></span>&#160; GLenum <a class="code" href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea">wrap_mode</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
-<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b"> 107</a></span>&#160; GLenum <a class="code" href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b">filter_mode</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f"> 110</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f">set_wrap_mode</a>(GLenum wrapMode);</div>
-<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
-<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013"> 113</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013">set_filter_mode</a>(GLenum filterMode);</div>
-<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
-<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b"> 117</a></span>&#160; <a class="code" href="classmingfx_1_1_color.html">Color</a> <a class="code" href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b">Pixel</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
-<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
-<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">bool</span> InitOpenGL();</div>
-<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
-<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; GLenum dataType_; <span class="comment">// GL_UNSIGNED_BYTE or GL_FLOAT</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data_ubyte_;</div>
-<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">const</span> <span class="keywordtype">float</span> * data_float_;</div>
-<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; </div>
-<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordtype">int</span> width_;</div>
-<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordtype">int</span> height_;</div>
-<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">bool</span> handleMemInternally_;</div>
-<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
-<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; GLuint texID_;</div>
-<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; GLenum wrapMode_;</div>
-<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; GLenum filterMode_;</div>
-<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;};</div>
-<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
-<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
-<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;} <span class="comment">// end namespace</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; </div>
-<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<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_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_texture2_d_html_a0783ad70829ef353aa92344d320b107c"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c">mingfx::Texture2D::UpdateFromBytes</a></div><div class="ttdeci">bool UpdateFromBytes(const unsigned char *data)</div><div class="ttdoc">This function may be called to re-read the texture data from an array formated the same as in InitFro...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a15d5c319cf7e012e703668f4d4e7be87"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87">mingfx::Texture2D::initialized</a></div><div class="ttdeci">bool initialized() const</div><div class="ttdoc">Returns true if the texture data has been successfully transferred to OpenGL.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a1c8827426f43343c0ad171e181a741ea"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea">mingfx::Texture2D::wrap_mode</a></div><div class="ttdeci">GLenum wrap_mode() const</div><div class="ttdoc">Returns an enumerated constant for the OpenGL wrap mode used by the texture.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a1e843f3d8904f9c7a99f7614f87de73b"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b">mingfx::Texture2D::Pixel</a></div><div class="ttdeci">Color Pixel(int x, int y) const</div><div class="ttdoc">Returns the color at the specified pixel. The top left corner of the image is (0,0) and the bottom ri...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a3c396193b466053f23803894039d8d88"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">mingfx::Texture2D::height</a></div><div class="ttdeci">int height() const</div><div class="ttdoc">Returns the height in pixels of the texture.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a401629d948aa144be81b94fe21938869"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">mingfx::Texture2D::width</a></div><div class="ttdeci">int width() const</div><div class="ttdoc">Returns the width in pixels of the texture.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a4a3b2b550fefdf79f0fb392b04e7b013"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013">mingfx::Texture2D::set_filter_mode</a></div><div class="ttdeci">void set_filter_mode(GLenum filterMode)</div><div class="ttdoc">Uses the OpenGL texture filter mode arguments.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a8eded044ccdf9bd3e1e5bcfe74526bdc"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc">mingfx::Texture2D::InitFromFile</a></div><div class="ttdeci">bool InitFromFile(const std::string &amp;filename)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aa15b86ec3b7312842c220b081c39980d"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d">mingfx::Texture2D::Texture2D</a></div><div class="ttdeci">Texture2D(GLenum wrapMode=GL_REPEAT, GLenum filterMode=GL_LINEAR)</div><div class="ttdoc">Creates an empty texture. Optional parameters can be provided to set the texture wrap mode and filter...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aa5cbe3396e4560ec0746e91dbc55bc9f"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f">mingfx::Texture2D::set_wrap_mode</a></div><div class="ttdeci">void set_wrap_mode(GLenum wrapMode)</div><div class="ttdoc">Uses the OpenGL texture wrap mode arguments.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aab734dbbcf6211507ab65d5bb94a4ef9"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9">mingfx::Texture2D::~Texture2D</a></div><div class="ttdeci">virtual ~Texture2D()</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aba57b01065096fe9f6483e8f68622944"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944">mingfx::Texture2D::InitFromBytes</a></div><div class="ttdeci">bool InitFromBytes(int width, int height, const unsigned char *data)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_ad4e0faadfe016e6ee501e66fc0244504"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504">mingfx::Texture2D::opengl_id</a></div><div class="ttdeci">GLuint opengl_id() const</div><div class="ttdoc">Returns the unsigned int used as the texture handle by OpenGL.</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_ad7640f0cbda6398a6bb80202b80dd693"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693">mingfx::Texture2D::UpdateFromFloats</a></div><div class="ttdeci">bool UpdateFromFloats(const float *data)</div><div class="ttdoc">This function may be called to re-read the texture data from an array formated the same as in InitFro...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aee8a0aad1795680cb840ffcf544ed7b8"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8">mingfx::Texture2D::InitFromFloats</a></div><div class="ttdeci">bool InitFromFloats(int width, int height, const float *data)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
-<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_af0052203fcfd9bbb903a40d14700b13b"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b">mingfx::Texture2D::filter_mode</a></div><div class="ttdeci">GLenum filter_mode() const</div><div class="ttdoc">Returns an enumerated constant for the OpenGL filter mode used by the texture.</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="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><!-- fragment --></div><!-- contents -->
-<!-- HTML footer for doxygen 1.8.9.1-->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by &#160;<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/texture2d.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
+ &#160;<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&amp;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&amp;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">texture2d.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="texture2d_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>&#160;<span class="comment">/*</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<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>&#160;<span class="comment"> </span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<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>&#160;<span class="comment"> All Rights Reserved.</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> </span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> Original Author(s) of this File:</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> </span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<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>&#160;<span class="comment"> ...</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef SRC_TEXTURE2D_H_</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define SRC_TEXTURE2D_H_</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="opengl__headers_8h.html">opengl_headers.h</a>&quot;</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="color_8h.html">color.h</a>&quot;</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html"> 42</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmingfx_1_1_texture2_d.html">Texture2D</a> {</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
+<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d"> 47</a></span>&#160; <a class="code" href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d">Texture2D</a>(GLenum wrapMode=GL_REPEAT, GLenum filterMode=GL_LINEAR);</div>
+<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9"> 48</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9">~Texture2D</a>();</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
+<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc"> 55</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc">InitFromFile</a>(<span class="keyword">const</span> std::string &amp;filename);</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
+<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944"> 66</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944">InitFromBytes</a>(<span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>, <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data);</div>
+<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
+<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8"> 77</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8">InitFromFloats</a>(<span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>, <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>, <span class="keyword">const</span> <span class="keywordtype">float</span> * data);</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
+<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
+<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c"> 83</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c">UpdateFromBytes</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data);</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
+<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693"> 88</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693">UpdateFromFloats</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> * data);</div>
+<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
+<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87"> 92</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87">initialized</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
+<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869"> 95</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">width</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
+<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88"> 98</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">height</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
+<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504"> 101</a></span>&#160; GLuint <a class="code" href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504">opengl_id</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
+<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea"> 104</a></span>&#160; GLenum <a class="code" href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea">wrap_mode</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
+<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b"> 107</a></span>&#160; GLenum <a class="code" href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b">filter_mode</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
+<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f"> 110</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f">set_wrap_mode</a>(GLenum wrapMode);</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
+<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013"> 113</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013">set_filter_mode</a>(GLenum filterMode);</div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
+<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b"> 117</a></span>&#160; <a class="code" href="classmingfx_1_1_color.html">Color</a> <a class="code" href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b">Pixel</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">bool</span> InitOpenGL();</div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; GLenum dataType_; <span class="comment">// GL_UNSIGNED_BYTE or GL_FLOAT</span></div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data_ubyte_;</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">const</span> <span class="keywordtype">float</span> * data_float_;</div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; </div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordtype">int</span> width_;</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordtype">int</span> height_;</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">bool</span> handleMemInternally_;</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; GLuint texID_;</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; GLenum wrapMode_;</div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; GLenum filterMode_;</div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;};</div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
+<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;} <span class="comment">// end namespace</span></div>
+<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; </div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<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_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_texture2_d_html_a0783ad70829ef353aa92344d320b107c"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a0783ad70829ef353aa92344d320b107c">mingfx::Texture2D::UpdateFromBytes</a></div><div class="ttdeci">bool UpdateFromBytes(const unsigned char *data)</div><div class="ttdoc">This function may be called to re-read the texture data from an array formated the same as in InitFro...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a15d5c319cf7e012e703668f4d4e7be87"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a15d5c319cf7e012e703668f4d4e7be87">mingfx::Texture2D::initialized</a></div><div class="ttdeci">bool initialized() const</div><div class="ttdoc">Returns true if the texture data has been successfully transferred to OpenGL.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a1c8827426f43343c0ad171e181a741ea"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a1c8827426f43343c0ad171e181a741ea">mingfx::Texture2D::wrap_mode</a></div><div class="ttdeci">GLenum wrap_mode() const</div><div class="ttdoc">Returns an enumerated constant for the OpenGL wrap mode used by the texture.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a1e843f3d8904f9c7a99f7614f87de73b"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a1e843f3d8904f9c7a99f7614f87de73b">mingfx::Texture2D::Pixel</a></div><div class="ttdeci">Color Pixel(int x, int y) const</div><div class="ttdoc">Returns the color at the specified pixel. The top left corner of the image is (0,0) and the bottom ri...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a3c396193b466053f23803894039d8d88"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a3c396193b466053f23803894039d8d88">mingfx::Texture2D::height</a></div><div class="ttdeci">int height() const</div><div class="ttdoc">Returns the height in pixels of the texture.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a401629d948aa144be81b94fe21938869"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a401629d948aa144be81b94fe21938869">mingfx::Texture2D::width</a></div><div class="ttdeci">int width() const</div><div class="ttdoc">Returns the width in pixels of the texture.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a4a3b2b550fefdf79f0fb392b04e7b013"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a4a3b2b550fefdf79f0fb392b04e7b013">mingfx::Texture2D::set_filter_mode</a></div><div class="ttdeci">void set_filter_mode(GLenum filterMode)</div><div class="ttdoc">Uses the OpenGL texture filter mode arguments.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_a8eded044ccdf9bd3e1e5bcfe74526bdc"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#a8eded044ccdf9bd3e1e5bcfe74526bdc">mingfx::Texture2D::InitFromFile</a></div><div class="ttdeci">bool InitFromFile(const std::string &amp;filename)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aa15b86ec3b7312842c220b081c39980d"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aa15b86ec3b7312842c220b081c39980d">mingfx::Texture2D::Texture2D</a></div><div class="ttdeci">Texture2D(GLenum wrapMode=GL_REPEAT, GLenum filterMode=GL_LINEAR)</div><div class="ttdoc">Creates an empty texture. Optional parameters can be provided to set the texture wrap mode and filter...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aa5cbe3396e4560ec0746e91dbc55bc9f"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aa5cbe3396e4560ec0746e91dbc55bc9f">mingfx::Texture2D::set_wrap_mode</a></div><div class="ttdeci">void set_wrap_mode(GLenum wrapMode)</div><div class="ttdoc">Uses the OpenGL texture wrap mode arguments.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aab734dbbcf6211507ab65d5bb94a4ef9"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aab734dbbcf6211507ab65d5bb94a4ef9">mingfx::Texture2D::~Texture2D</a></div><div class="ttdeci">virtual ~Texture2D()</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aba57b01065096fe9f6483e8f68622944"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aba57b01065096fe9f6483e8f68622944">mingfx::Texture2D::InitFromBytes</a></div><div class="ttdeci">bool InitFromBytes(int width, int height, const unsigned char *data)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_ad4e0faadfe016e6ee501e66fc0244504"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#ad4e0faadfe016e6ee501e66fc0244504">mingfx::Texture2D::opengl_id</a></div><div class="ttdeci">GLuint opengl_id() const</div><div class="ttdoc">Returns the unsigned int used as the texture handle by OpenGL.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_ad7640f0cbda6398a6bb80202b80dd693"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#ad7640f0cbda6398a6bb80202b80dd693">mingfx::Texture2D::UpdateFromFloats</a></div><div class="ttdeci">bool UpdateFromFloats(const float *data)</div><div class="ttdoc">This function may be called to re-read the texture data from an array formated the same as in InitFro...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_aee8a0aad1795680cb840ffcf544ed7b8"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#aee8a0aad1795680cb840ffcf544ed7b8">mingfx::Texture2D::InitFromFloats</a></div><div class="ttdeci">bool InitFromFloats(int width, int height, const float *data)</div><div class="ttdoc">Call this from within the InitOpenGL() function since it will initialize not just the Texture2D's int...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_texture2_d_html_af0052203fcfd9bbb903a40d14700b13b"><div class="ttname"><a href="classmingfx_1_1_texture2_d.html#af0052203fcfd9bbb903a40d14700b13b">mingfx::Texture2D::filter_mode</a></div><div class="ttdeci">GLenum filter_mode() const</div><div class="ttdoc">Returns an enumerated constant for the OpenGL filter mode used by the texture.</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="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><!-- fragment --></div><!-- contents -->
+<!-- HTML footer for doxygen 1.8.9.1-->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.9.1
+</small></address>
+</body>
+</html>