aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/texture__bump_8cpp-source.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/texture__bump_8cpp-source.html297
1 files changed, 297 insertions, 0 deletions
diff --git a/docs/doxygen/nel/texture__bump_8cpp-source.html b/docs/doxygen/nel/texture__bump_8cpp-source.html
new file mode 100644
index 00000000..a59b8d8e
--- /dev/null
+++ b/docs/doxygen/nel/texture__bump_8cpp-source.html
@@ -0,0 +1,297 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>texture_bump.cpp</h1><a href="texture__bump_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2000, 2001 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#include "<a class="code" href="std3d_8h.html">std3d.h</a>"</font>
+00027
+00028 <font class="preprocessor">#include "<a class="code" href="texture__bump_8h.html">3d/texture_bump.h</a>"</font>
+00029
+00030
+00031 <font class="keyword">namespace </font>NL3D {
+00032
+00033
+00035 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="namespaceNL3D.html#a463">BuildDsDt</a>(uint32 *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, sint <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>, sint <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>, uint16 *dest, <font class="keywordtype">bool</font> absolute)
+00036 {
+00037 <font class="preprocessor"> #define GET_HGT(x, y) ((sint) ((src[(uint) (x) % width + ((uint) (y) % height) * width] &amp; 0x00ff00) &gt;&gt; 8))</font>
+00038 <font class="preprocessor"></font> sint <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
+00039 <font class="keywordflow">for</font> (<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = 0; <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> &lt; <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>; ++<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>)
+00040 {
+00041 <font class="keywordflow">for</font> (<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a> = 0; <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a> &lt; <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>; ++<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>)
+00042 {
+00043 sint off = <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> + <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a> * <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>;
+00044 sint16 ds = (sint16) (GET_HGT(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> + 1, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>) - GET_HGT(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> - 1, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>));
+00045 sint16 dt = (sint16) (GET_HGT(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a> + 1) - GET_HGT(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a> - 1));
+00046
+00047 <font class="keywordflow">if</font> (!absolute)
+00048 {
+00049
+00050 dest[off] = (uint16) ((ds &amp; 0xff) | ((dt &amp; 0xff) &lt;&lt; 8));
+00051 }
+00052 <font class="keywordflow">else</font>
+00053 {
+00054 dest[off] = (uint16) (abs(ds) | (abs(dt) &lt;&lt; 8));
+00055 }
+00056 }
+00057 }
+00058 }
+00059
+00061 <font class="keyword">static</font> <font class="keywordtype">float</font> <a class="code" href="namespaceNL3D.html#a464">NormalizeDsDt</a>(uint16 *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, sint <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>, sint <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>, <font class="keywordtype">bool</font> absolute)
+00062 {
+00063 <font class="keyword">const</font> uint size = <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a> * <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>;
+00064 uint highestDelta = 0;
+00065 uint k;
+00066
+00068 <font class="keywordflow">if</font> (absolute)
+00069 {
+00070 <font class="keywordflow">for</font> (k = 0; k &lt; size; ++k)
+00071 {
+00072 highestDelta = std::max(highestDelta, (uint) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &amp; 255));
+00073 highestDelta = std::max(highestDelta, (uint) <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &gt;&gt; 8);
+00074 }
+00075
+00076 <font class="keywordflow">if</font> (highestDelta == 0)
+00077 {
+00078 <font class="keywordflow">return</font> 1.f;
+00079 }
+00080 <font class="keywordtype">float</font> normalizationFactor = 255.f / highestDelta;
+00081 <font class="keywordflow">for</font> (k = 0; k &lt; size; ++k)
+00082 {
+00083 uint8 du = (uint8) ((uint) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &amp; 0xff) * normalizationFactor);
+00084 uint16 dv = (uint16) (((uint) <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &gt;&gt; 8) * normalizationFactor);
+00085 <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] = (uint16) du | (dv &lt;&lt; 8);
+00086 }
+00087 <font class="keywordflow">return</font> 1.f / normalizationFactor;
+00088 }
+00089 <font class="keywordflow">else</font>
+00090 {
+00091 <font class="keywordflow">for</font> (k = 0; k &lt; size; ++k)
+00092 {
+00093 highestDelta = std::max(highestDelta, (uint) ::abs((sint) (sint8) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &amp; 255)));
+00094 highestDelta = std::max(highestDelta, (uint) ::abs((sint) (sint8) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &gt;&gt; 8)));
+00095 }
+00096
+00097 <font class="keywordflow">if</font> (highestDelta == 0)
+00098 {
+00099 <font class="keywordflow">return</font> 1.f;
+00100 }
+00101 <font class="keywordtype">float</font> normalizationFactor = 127.f / highestDelta;
+00102 <font class="keywordflow">for</font> (k = 0; k &lt; size; ++k)
+00103 {
+00104 <font class="keywordtype">float</font> fdu = (sint8) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &amp; 255) * normalizationFactor;
+00105 <font class="keywordtype">float</font> fdv = (sint8) (<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] &gt;&gt; 8) * normalizationFactor;
+00106 <a class="code" href="namespaceNLMISC.html#a215">NLMISC::clamp</a>(fdu, -128, 127);
+00107 <a class="code" href="namespaceNLMISC.html#a215">NLMISC::clamp</a>(fdv, -128, 127);
+00108 uint8 du = (uint8) (sint8) fdu;
+00109 uint8 dv = (uint8) (sint8) fdv;
+00110 <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>[k] = (uint16) du | (((uint16) dv) &lt;&lt; 8);
+00111 }
+00112 <font class="keywordflow">return</font> 1.f / normalizationFactor;
+00113 }
+00114 }
+00115
+00116
+00117
+00118 <font class="comment">/*</font>
+00119 <font class="comment"> * Constructor</font>
+00120 <font class="comment"> */</font>
+<a name="l00121"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a1">00121</a> CTextureBump::CTextureBump() : _NormalizationFactor(0.f),
+00122 _DisableSharing(false),
+00123 _UseAbsoluteOffsets(false),
+00124 _ForceNormalize(true)
+00125 {
+00126 <font class="comment">// mipmapping not supported for now, disable it</font>
+00127 ITexture::setFilterMode(ITexture::Linear, ITexture::LinearMipMapOff);
+00128 }
+00129
+<a name="l00131"></a><a class="code" href="classNL3D_1_1CTextureBump.html#c0">00131</a> <font class="keywordtype">void</font> CTextureBump::setFilterMode(TMagFilter magf, TMinFilter minf)
+00132 {
+00133 <a class="code" href="debug_8h.html#a12">nlstop</a>; <font class="comment">// set filter mode not allowed with bump textures (not supported by some GPUs)</font>
+00134 }
+00135
+<a name="l00136"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a2">00136</a> <font class="keywordtype">void</font> CTextureBump::setHeightMap(ITexture *heightMap)
+00137 {
+00138 <font class="keywordflow">if</font> (heightMap != <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>)
+00139 {
+00140 <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a> = heightMap;
+00141 <a class="code" href="classNL3D_1_1ITexture.html#a0">touch</a>();
+00142 }
+00143 }
+00144
+00145
+<a name="l00147"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a5">00147</a> <font class="keywordtype">void</font> CTextureBump::serial(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00148 {
+00150 sint ver = f.serialVersion(2);
+00151 ITexture::serial(f);
+00152 ITexture *tex = NULL;
+00153 <font class="keywordflow">if</font> (f.isReading())
+00154 {
+00155 f.serialPolyPtr(tex);
+00156 _HeightMap = tex;
+00157 touch();
+00158 }
+00159 <font class="keywordflow">else</font>
+00160 {
+00161 tex = _HeightMap;
+00162 f.serialPolyPtr(tex);
+00163 }
+00164 f.serial(_DisableSharing);
+00165 <font class="keywordflow">if</font> (ver &gt;= 1)
+00166 {
+00167 f.serial(_UseAbsoluteOffsets);
+00168 }
+00169 <font class="keywordflow">if</font> (ver &gt;= 2)
+00170 {
+00171 f.serial(_ForceNormalize);
+00172 }
+00173 }
+00174
+<a name="l00176"></a><a class="code" href="classNL3D_1_1CTextureBump.html#b0">00176</a> <font class="keywordtype">void</font> CTextureBump::doGenerate()
+00177 {
+00178 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>)
+00179 {
+00180 <a class="code" href="classNLMISC_1_1CBitmap.html#a3">makeDummy</a>();
+00181 <font class="keywordflow">return</font>;
+00182 }
+00183 <font class="comment">// generate the height map</font>
+00184 <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;generate();
+00185 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;convertToType(CBitmap::RGBA))
+00186 {
+00187 <a class="code" href="classNLMISC_1_1CBitmap.html#a3">makeDummy</a>();
+00188 <font class="keywordflow">return</font>;
+00189 }
+00190 <a class="code" href="classNLMISC_1_1CBitmap.html#a12">releaseMipMaps</a>();
+00191 uint <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a> = <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getWidth();
+00192 uint <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a> = <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getHeight();
+00193 CBitmap::resize(<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getWidth(), <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getHeight(), CBitmap::DsDt);
+00194 <font class="comment">// build the DsDt map</font>
+00195 <a class="code" href="namespaceNL3D.html#a463">BuildDsDt</a>((uint32 *) &amp;(<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getPixels()[0]), <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>, (uint16 *) &amp;(<a class="code" href="classNLMISC_1_1CBitmap.html#z277_0">getPixels</a>()[0]), <a class="code" href="classNL3D_1_1CTextureBump.html#n3">_UseAbsoluteOffsets</a>);
+00196
+00197 <font class="comment">// Normalize the map if needed</font>
+00198 <font class="keywordflow">if</font> (_ForceNormalize)
+00199 {
+00200 <a class="code" href="classNL3D_1_1CTextureBump.html#n1">_NormalizationFactor</a> = <a class="code" href="namespaceNL3D.html#a464">NormalizeDsDt</a>((uint16 *) &amp;(<a class="code" href="classNLMISC_1_1CBitmap.html#z277_0">getPixels</a>()[0]), <a class="code" href="driver__opengl__extension__def_8h.html#a389">width</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a390">height</a>, <a class="code" href="classNL3D_1_1CTextureBump.html#n3">_UseAbsoluteOffsets</a>);
+00201 }
+00202
+00203 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getReleasable())
+00204 {
+00205 <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;release();
+00206 }
+00207 }
+00208
+<a name="l00210"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a15">00210</a> <font class="keywordtype">void</font> CTextureBump::release()
+00211 {
+00212 ITexture::release();
+00213 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a> != NULL)
+00214 {
+00215 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getReleasable())
+00216 {
+00217 <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;release();
+00218 }
+00219 }
+00220 }
+00221
+00222
+<a name="l00224"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a6">00224</a> <font class="keywordtype">bool</font> CTextureBump::supportSharing()<font class="keyword"> const</font>
+00225 <font class="keyword"></font>{
+00226 <font class="keywordflow">return</font> !<a class="code" href="classNL3D_1_1CTextureBump.html#n2">_DisableSharing</a> &amp;&amp; <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a> &amp;&amp; <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;supportSharing();
+00227 }
+00228
+00229
+<a name="l00231"></a><a class="code" href="classNL3D_1_1CTextureBump.html#a7">00231</a> std::string CTextureBump::getShareName()<font class="keyword"> const</font>
+00232 <font class="keyword"></font>{
+00233 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CTextureBump.html#a6">supportSharing</a>());
+00234 <font class="keywordflow">return</font> <font class="stringliteral">"BumpDsDt:"</font> + <a class="code" href="classNL3D_1_1CTextureBump.html#n0">_HeightMap</a>-&gt;getShareName();
+00235 }
+00236
+00237
+00238 } <font class="comment">// NL3D</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>