aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/classNL3D_1_1CTextureDLM.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/classNL3D_1_1CTextureDLM.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/classNL3D_1_1CTextureDLM.html')
-rw-r--r--docs/doxygen/nel/classNL3D_1_1CTextureDLM.html1062
1 files changed, 1062 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNL3D_1_1CTextureDLM.html b/docs/doxygen/nel/classNL3D_1_1CTextureDLM.html
new file mode 100644
index 00000000..edbece4e
--- /dev/null
+++ b/docs/doxygen/nel/classNL3D_1_1CTextureDLM.html
@@ -0,0 +1,1062 @@
+<!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>NL3D::CTextureDLM Class Reference</h1>This texture is used by landscape to perform Dynamic LightMap (DLM).
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NL3D::CTextureDLM:
+<p><center><img src="classNL3D_1_1CTextureDLM.gif" usemap="#NL3D::CTextureDLM_map" border="0"></center>
+<map name="NL3D::CTextureDLM_map">
+<area href="classNL3D_1_1ITexture.html" alt="NL3D::ITexture" shape="rect" coords="141,112,272,136">
+<area href="classNLMISC_1_1CBitmap.html" alt="NLMISC::CBitmap" shape="rect" coords="0,56,131,80">
+<area href="classNLMISC_1_1CRefCount.html" alt="NLMISC::CRefCount" shape="rect" coords="141,56,272,80">
+<area href="classNLMISC_1_1IStreamable.html" alt="NLMISC::IStreamable" shape="rect" coords="282,56,413,80">
+<area href="classNLMISC_1_1IClassable.html" alt="NLMISC::IClassable" shape="rect" coords="282,0,413,24">
+</map>
+<a href="classNL3D_1_1CTextureDLM-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
+<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
+<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#a0">CTextureDLM</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a389">width</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a390">height</a>)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#a1">doGenerate</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Since texture is always in memory...</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#a2">CTextureDLM</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>TextureDLM are system. Do not need to serialize them...</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#a3">serial</a> (<a class="el" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) throw (NLMISC::EStream)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>serial <a class="el" href="classNL3D_1_1ITexture.html">ITexture</a> basic infos (clamp ...).</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#a4">NLMISC_DECLARE_CLASS</a> (CTextureDLM)</td></tr>
+<tr><td colspan="2"><div class="groupHeader">Lightmap mgt.</div></td></tr>
+<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_0">canCreateLightMap</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>return true if can create a texture of this size.</em> <a href="#z829_0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_1">createLightMap</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, <a class="el" href="memory__common_8h.html#a15">uint</a> &amp;<a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> &amp;<a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>create a space for a lightmap.</em> <a href="#z829_1">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, CRGBA *textMap)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>refill the texture with raw data.</em> <a href="#z829_2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_3">fillRect</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, <a class="el" href="memory__common_8h.html#a7">uint8</a> <a class="el" href="driver__opengl__extension__def_8h.html#a415">value</a>)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but fill a RGBA(value, value, value, value).</em> <a href="#z829_3">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_4">modulateAndfillRect565</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, CRGBA *textMap, <a class="el" href="memory__common_8h.html#a9">uint16</a> *modColor)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with an array of 565 color, before copying.</em> <a href="#z829_4">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_5">modulateAndfillRect8888</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, CRGBA *textMap, CRGBA *modColor)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with an array of CRGBA color, before copying.</em> <a href="#z829_5">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_6">modulateConstantAndfillRect</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a367">w</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> h, CRGBA *textMap, CRGBA modColor)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with a cte color, before copying.</em> <a href="#z829_6">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#z829_7">releaseLightMap</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a365">y</a>)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Set a lightmap as free for use. It is an error to free a not allocated lightmap. (nlassert!!).</em> <a href="#z829_7">More...</a><em></em></font><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Methods</h2></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#c0">getTypeForSize</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a389">width</a>, <a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a390">height</a>)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>get the lightmap type id according to lightmap size.</em> <a href="#c0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#c1">linkFreeBlock</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> lMapType, <a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> *block)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>FreeBlock list mgt.</em> <a href="#c1">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#c2">unlinkFreeBlock</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> lMapType, <a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> *block)</td></tr>
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#o0">_WBlock</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Number of block per line.</em> <a href="#o0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#o1">_Blocks</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>The list of blocks.</em> <a href="#o1">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="memory__common_8h.html#a15">uint</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#o2">_EmptyBlocks</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>The list of available Blocks, ie Blocks with FreeSpace==0.</em> <a href="#o2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> *&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureDLM.html#o3">_FreeBlocks</a> [NL_DLM_LIGHTMAP_TYPE_SIZE]</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>For each type of lightmaps (2x2, 2x3 etc...), list of blocks which are not full.</em> <a href="#o3">More...</a><em></em></font><br><br></td></tr>
+</table>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+This texture is used by landscape to perform Dynamic LightMap (DLM).
+<p>
+Actually a <a class="el" href="classNL3D_1_1CTextureDLM.html">CTextureDLM</a> handle many block of lightmap in one single big texture. If NL_DLM_TILE_RES, then Block can be of size of 2,3,5 or 9 * 2,3,5 or 9 (eg 2x9, or 5x5 texture). else Block can be of size of 3,5,9 or 17 * 3,5,9 or 17 (eg 3x17, or 9x9 texture).
+<p>
+Implementation note (NL_DLM_TILE_RES not defined): To make this possible easily, blocks of 10x10 are created and placed in the texture. Hence a 9x9 texture lies in a single block, 3 textures of 3x9 lies in a block etc... In worst case, lost space is 19% (1 - 9*9 / 10*10).
+<p>
+If NL_DLM_TILE_RES is defined, then, same reasoning, with blocks of 18x18. In worst case, space lost is 70%: (1 - 15*15 / 18*18). But others cases are pretty good (90% to 100%)
+<p>
+NB: TextureDLM ensure that point (MaxX,MaxY) of this texture is black. UseFull for patch who want default black color
+<p>
+<dl compact><dt><b>
+Author: </b><dd>
+Lionel Berenguier , Nevrax France </dl><dl compact><dt><b>
+Date: </b><dd>
+2002 </dl>
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00077">77</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a name="a0" doxytag="NL3D::CTextureDLM::CTextureDLM"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CTextureDLM::CTextureDLM </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>height</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00042">42</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00178">_Blocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00182">_EmptyBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00186">_FreeBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00173">_WBlock</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">height</a>, <a class="el" href="texture__dlm_8h-source.html#l00040">NL_DLM_BLOCK_SIZE</a>, <a class="el" href="texture__dlm_8h-source.html#l00044">NL_DLM_LIGHTMAP_TYPE_SIZE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="texture_8cpp-source.html#l00100">NL3D::ITexture::setFilterMode</a>, <a class="el" href="texture_8h-source.html#l00270">NL3D::ITexture::setReleasable</a>, <a class="el" href="texture_8cpp-source.html#l00088">NL3D::ITexture::setUploadFormat</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">width</a>. </td>
+ </tr>
+</table>
+<a name="a2" doxytag="NL3D::CTextureDLM::CTextureDLM"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CTextureDLM::CTextureDLM </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+TextureDLM are system. Do not need to serialize them...
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00092">92</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+References <a class="el" href="debug_8h-source.html#l00374">nlstop</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a name="z829_0" doxytag="NL3D::CTextureDLM::canCreateLightMap"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NL3D::CTextureDLM::canCreateLightMap </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+return true if can create a texture of this size.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00124">124</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00182">_EmptyBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00186">_FreeBlocks</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00098">getTypeForSize</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>. </td>
+ </tr>
+</table>
+<a name="z829_2" doxytag="NL3D::CTextureDLM::copyRect"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::copyRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>textMap</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+refill the texture with raw data.
+<p>
+NB: no check is made on x,y,w,h lightmap validity. CRGBA are transformed to texture format (16 bits or better) The texture is invalidate (on this part only...) <dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>map</em>&nbsp;</td><td>
+is the raw array of RGBA colors to fills. must be of w*h size </td></tr>
+</table>
+</dl>
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00241">241</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="bitmap_8cpp-source.html#l01316">NLMISC::CBitmap::getWidth</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00820">src</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="z829_1" doxytag="NL3D::CTextureDLM::createLightMap"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NL3D::CTextureDLM::createLightMap </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+create a space for a lightmap.
+<p>
+NB: texture space is not filled with black. return false if cannot, else return true, and return in x/y the position in the texture.
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00164">164</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00178">_Blocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00182">_EmptyBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00186">_FreeBlocks</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00124">canCreateLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00098">getTypeForSize</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00136">linkFreeBlock</a>, <a class="el" href="texture__dlm_8h-source.html#l00040">NL_DLM_BLOCK_SIZE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00148">unlinkFreeBlock</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="a1" doxytag="NL3D::CTextureDLM::doGenerate"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::doGenerate </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Since texture is always in memory...
+<p>
+
+<p>
+Implements <a class="el" href="classNL3D_1_1ITexture.html#b0">NL3D::ITexture</a>.
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00085">85</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>. </td>
+ </tr>
+</table>
+<a name="z829_3" doxytag="NL3D::CTextureDLM::fillRect"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::fillRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>value</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but fill a RGBA(value, value, value, value).
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00257">257</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="bitmap_8cpp-source.html#l01316">NLMISC::CBitmap::getWidth</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00828">value</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="c0" doxytag="NL3D::CTextureDLM::getTypeForSize"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a15">uint</a> NL3D::CTextureDLM::getTypeForSize </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>height</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+get the lightmap type id according to lightmap size.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00098">98</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="common_8cpp-source.html#l00350">NLMISC::getPowerOf2</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">height</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>, <a class="el" href="texture__dlm_8h-source.html#l00044">NL_DLM_LIGHTMAP_TYPE_SIZE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">width</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00124">canCreateLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<a name="c1" doxytag="NL3D::CTextureDLM::linkFreeBlock"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::linkFreeBlock </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>lMapType</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>block</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+FreeBlock list mgt.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00136">136</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00186">_FreeBlocks</a>, and <a class="el" href="texture__dlm_8h-source.html#l00160">NL3D::CTextureDLM::CBlock::FreePrec</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<a name="z829_4" doxytag="NL3D::CTextureDLM::modulateAndfillRect565"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::modulateAndfillRect565 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>textMap</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a9">uint16</a> *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>modColor</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with an array of 565 color, before copying.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00273">273</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="bitmap_8cpp-source.html#l01316">NLMISC::CBitmap::getWidth</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="z829_5" doxytag="NL3D::CTextureDLM::modulateAndfillRect8888"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::modulateAndfillRect8888 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>textMap</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>modColor</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with an array of CRGBA color, before copying.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00305">305</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="bitmap_8cpp-source.html#l01316">NLMISC::CBitmap::getWidth</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="z829_6" doxytag="NL3D::CTextureDLM::modulateConstantAndfillRect"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::modulateConstantAndfillRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>textMap</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>CRGBA&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>modColor</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+same as <a class="el" href="classNL3D_1_1CTextureDLM.html#z829_2">copyRect</a>(), but modulate textMap with a cte color, before copying.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00335">335</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="bitmap_8cpp-source.html#l01316">NLMISC::CBitmap::getWidth</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">w</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="a4" doxytag="NL3D::CTextureDLM::NLMISC_DECLARE_CLASS"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CTextureDLM::NLMISC_DECLARE_CLASS </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CTextureDLM&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+ </td>
+ </tr>
+</table>
+<a name="z829_7" doxytag="NL3D::CTextureDLM::releaseLightMap"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::releaseLightMap </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>y</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set a lightmap as free for use. It is an error to free a not allocated lightmap. (nlassert!!).
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00363">363</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00178">_Blocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00182">_EmptyBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00173">_WBlock</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00098">getTypeForSize</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00136">linkFreeBlock</a>, <a class="el" href="texture__dlm_8h-source.html#l00040">NL_DLM_BLOCK_SIZE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00148">unlinkFreeBlock</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">x</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00233">y</a>. </td>
+ </tr>
+</table>
+<a name="a3" doxytag="NL3D::CTextureDLM::serial"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> virtual void NL3D::CTextureDLM::serial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>f</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap> throw (<a class="el" href="structNLMISC_1_1EStream.html">NLMISC::EStream</a>)<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+serial <a class="el" href="classNL3D_1_1ITexture.html">ITexture</a> basic infos (clamp ...).
+<p>
+
+<p>
+Reimplemented from <a class="el" href="classNL3D_1_1ITexture.html#a12">NL3D::ITexture</a>.
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00093">93</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+References <a class="el" href="debug_8h-source.html#l00374">nlstop</a>. </td>
+ </tr>
+</table>
+<a name="c2" doxytag="NL3D::CTextureDLM::unlinkFreeBlock"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CTextureDLM::unlinkFreeBlock </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>lMapType</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a> *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>block</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8cpp-source.html#l00148">148</a> of file <a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a>.
+<p>
+References <a class="el" href="texture__dlm_8h-source.html#l00186">_FreeBlocks</a>, <a class="el" href="texture__dlm_8h-source.html#l00160">NL3D::CTextureDLM::CBlock::FreeNext</a>, and <a class="el" href="texture__dlm_8h-source.html#l00160">NL3D::CTextureDLM::CBlock::FreePrec</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Data Documentation</h2>
+<a name="o1" doxytag="NL3D::CTextureDLM::_Blocks"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a>&gt; NL3D::CTextureDLM::_Blocks<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The list of blocks.
+<p>
+There is TextureWidth/NL_DLM_BLOCK_SIZE * TextureHeight/NL_DLM_BLOCK_SIZE blocks, ranged from left to right then top to bottom.
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00178">178</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00042">CTextureDLM</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<a name="o2" doxytag="NL3D::CTextureDLM::_EmptyBlocks"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="memory__common_8h.html#a15">uint</a>&gt; NL3D::CTextureDLM::_EmptyBlocks<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The list of available Blocks, ie Blocks with FreeSpace==0.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00182">182</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00124">canCreateLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00042">CTextureDLM</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<a name="o3" doxytag="NL3D::CTextureDLM::_FreeBlocks"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="structNL3D_1_1CTextureDLM_1_1CBlock.html">CBlock</a>* NL3D::CTextureDLM::_FreeBlocks[NL_DLM_LIGHTMAP_TYPE_SIZE]<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+For each type of lightmaps (2x2, 2x3 etc...), list of blocks which are not full.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00186">186</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00124">canCreateLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00164">createLightMap</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00042">CTextureDLM</a>, <a class="el" href="texture__dlm_8cpp-source.html#l00136">linkFreeBlock</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00148">unlinkFreeBlock</a>. </td>
+ </tr>
+</table>
+<a name="o0" doxytag="NL3D::CTextureDLM::_WBlock"></a><p>
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <td class="md">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a15">uint</a> NL3D::CTextureDLM::_WBlock<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Number of block per line.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__dlm_8h-source.html#l00173">173</a> of file <a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a>.
+<p>
+Referenced by <a class="el" href="texture__dlm_8cpp-source.html#l00042">CTextureDLM</a>, and <a class="el" href="texture__dlm_8cpp-source.html#l00363">releaseLightMap</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="texture__dlm_8h-source.html">texture_dlm.h</a><li><a class="el" href="texture__dlm_8cpp-source.html">texture_dlm.cpp</a></ul>
+
+
+<!-- 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>