aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/classNL3D_1_1CTextureFar.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_1CTextureFar.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/classNL3D_1_1CTextureFar.html')
-rw-r--r--docs/doxygen/nel/classNL3D_1_1CTextureFar.html956
1 files changed, 956 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNL3D_1_1CTextureFar.html b/docs/doxygen/nel/classNL3D_1_1CTextureFar.html
new file mode 100644
index 00000000..3924b2df
--- /dev/null
+++ b/docs/doxygen/nel/classNL3D_1_1CTextureFar.html
@@ -0,0 +1,956 @@
+<!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::CTextureFar Class Reference</h1>A <a class="el" href="classNL3D_1_1CTextureFar.html">CTextureFar</a> is a set of NL_NUM_FAR_PATCHES_BY_TEXTURE texture used to map a whole patch when it is in far Mode.
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="texture__far_8h-source.html">texture_far.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NL3D::CTextureFar:
+<p><center><img src="classNL3D_1_1CTextureFar.gif" usemap="#NL3D::CTextureFar_map" border="0"></center>
+<map name="NL3D::CTextureFar_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_1CTextureFar-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_1CTextureFar.html#a0">CTextureFar</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>virtual&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#a1">~CTextureFar</a> ()</td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#a2">setSizeOfFarPatch</a> (<a class="el" href="memory__common_8h.html#a14">sint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a389">width</a>, <a class="el" href="memory__common_8h.html#a14">sint</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>Set the size of the patch stored in this texture far.</em> <a href="#a2">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_1CTextureFar.html#a3">addPatch</a> (<a class="el" href="classNL3D_1_1CPatch.html">CPatch</a> *pPatch, float &amp;far1UScale, float &amp;far1VScale, float &amp;far1UBias, float &amp;far1VBias, bool &amp;bRot)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Add a patch in the CTexture Patch.</em> <a href="#a3">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_1CTextureFar.html#a4">removePatch</a> (<a class="el" href="classNL3D_1_1CPatch.html">CPatch</a> *pPatch)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Remove a patch in the CTexture Patch.</em> <a href="#a4">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_1CTextureFar.html#a5">doGenerate</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Generate the texture.</em> <a href="#a5">More...</a><em></em></font><br><br></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_1CTextureFar.html#a6">touchPatch</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> patchId)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Touch a patch by its id in texture (call <a class="el" href="classNL3D_1_1ITexture.html#a1">touchRect</a>()).</em> <a href="#a6">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_1CTextureFar.html#a7">linkBeforeUL</a> (CTextureFar *textNext)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>For lighting update, insert this before textNext (CiruclarList). textNext must be !NULL.</em> <a href="#a7">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_1CTextureFar.html#a8">unlinkUL</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>For lighting update, unlink (CiruclarList).</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>CTextureFar *&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#a9">getNextUL</a> () const</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>For lighting update, get Next (CiruclarList). If ==this, then list is empty.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
+<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="structNL3D_1_1CTextureFar_1_1CPatchIdent.html">CPatchIdent</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#m0">_Patches</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Vector of patches which texture far is stored in this <a class="el" href="classNL3D_1_1CTextureFar.html">CTextureFar</a> Should be == to _WidthPatches*_HeightPatches.</em> <a href="#m0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#m1">_PatchCount</a></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CTileFarBank.html">CTileFarBank</a> *&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#m2">_Bank</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>A pointer on the far bank.</em> <a href="#m2">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>void&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#c0">rebuildRectangle</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>Rebuild the rectangle passed in parameter.</em> <a href="#c0">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_1CTextureFar.html#c1">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>From IStreamable.</em> <a href="#c1">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_1CTextureFar.html#c2">NLMISC_DECLARE_CLASS</a> (CTextureFar)</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#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#o0">_OriginalWidth</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>The original size.</em> <a href="#o0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#o1">_OriginalHeight</a></td></tr>
+<tr><td nowrap align=right valign=top>CTextureFar *&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#o2">_ULPrec</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>UpdateLighting. CiruclarList.</em> <a href="#o2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>CTextureFar *&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#o3">_ULNext</a></td></tr>
+<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#r0">_LightmapExpanded</a> []</td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a7">uint8</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#r1">_LumelExpanded</a> []</td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a>&nbsp;</td><td valign=bottom><a class="el" href="classNL3D_1_1CTextureFar.html#r2">_TileTLIColors</a> []</td></tr>
+</table>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A <a class="el" href="classNL3D_1_1CTextureFar.html">CTextureFar</a> is a set of NL_NUM_FAR_PATCHES_BY_TEXTURE texture used to map a whole patch when it is in far Mode.
+<p>
+(ie not in tile mode). A <a class="el" href="classNL3D_1_1CTextureFar.html">CTextureFar</a> handle several patch texture.\
+<p>
+Before adding patch to the texture, you must call setSizeOfFarPatch, to intialize the texture.
+<p>
+TODO: keeping the far texture level1 alive when the tile pass in level0 (tile mode), don't erase it. TODO: add an hysteresis to avoid swap of far texture on boundaries of levels TODO: set the upload format in rgba565
+<p>
+<dl compact><dt><b>
+Author: </b><dd>
+Cyril Corvazier , Nevrax France </dl><dl compact><dt><b>
+Date: </b><dd>
+2000 </dl>
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00067">67</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a name="a0" doxytag="NL3D::CTextureFar::CTextureFar"></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::CTextureFar::CTextureFar </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></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__far_8cpp-source.html#l00046">46</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00179">_ULNext</a>, <a class="el" href="texture__far_8h-source.html#l00178">_ULPrec</a>, and <a class="el" href="texture_8h-source.html#l00270">NL3D::ITexture::setReleasable</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8h-source.html#l00140">getNextUL</a>. </td>
+ </tr>
+</table>
+<a name="a1" doxytag="NL3D::CTextureFar::~CTextureFar"></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::CTextureFar::~CTextureFar </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> [virtual]</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__far_8cpp-source.html#l00055">55</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00179">_ULNext</a>, <a class="el" href="texture__far_8h-source.html#l00178">_ULPrec</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a name="a3" doxytag="NL3D::CTextureFar::addPatch"></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::CTextureFar::addPatch </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1CPatch.html">CPatch</a> *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>pPatch</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>far1UScale</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>far1VScale</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>far1UBias</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>far1VBias</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>bool &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>bRot</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>
+Add a patch in the CTexture Patch.
+<p>
+Must not be full! Return true if the texture is full after adding this patch else false.<dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>pPatch</em>&nbsp;</td><td>
+is the pointer to the patch to add in the landscape </td></tr>
+<tr><td valign=top><em>far1UVScale</em>&nbsp;</td><td>
+will receive the scale to use to compute the UV coordinates </td></tr>
+<tr><td valign=top><em>far1UBias</em>&nbsp;</td><td>
+will receive the U Bias to use to compute the UV coordinates </td></tr>
+<tr><td valign=top><em>far1VBias</em>&nbsp;</td><td>
+will receive the V Bias to use to compute the UV coordinates </td></tr>
+<tr><td valign=top><em>bRot</em>&nbsp;</td><td>
+will receive true if the texture is rotated of 90° to the left or false. You should take care of this value to compute UV coordinates. </td></tr>
+</table>
+</dl>
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00120">120</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00160">_OriginalHeight</a>, <a class="el" href="texture__far_8h-source.html#l00159">_OriginalWidth</a>, <a class="el" href="texture__far_8h-source.html#l00152">_PatchCount</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="texture__far_8h-source.html#l00038">NL_NUM_FAR_PATCHES_BY_EDGE_MASK</a>, <a class="el" href="texture__far_8h-source.html#l00034">NL_NUM_FAR_PATCHES_BY_EDGE_SHIFT</a>, <a class="el" href="texture__far_8h-source.html#l00039">NL_NUM_FAR_PATCHES_BY_TEXTURE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</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="a5" doxytag="NL3D::CTextureFar::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::CTextureFar::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> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Generate the texture.
+<p>
+See <a class="el" href="classNL3D_1_1ITexture.html#b0">ITexture::doGenerate</a>().
+<p>
+<dl compact><dt><b>
+See also: </b><dd>
+<a class="el" href="classNL3D_1_1ITexture.html#b0">ITexture::doGenerate</a>() </dl>
+<p>
+Implements <a class="el" href="classNL3D_1_1ITexture.html#b0">NL3D::ITexture</a>.
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00225">225</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="bitmap_8h-source.html#l00095">NLMISC::CBitmap::_Height</a>, <a class="el" href="texture_8h-source.html#l00404">NL3D::ITexture::_ListInvalidRect</a>, <a class="el" href="texture__far_8h-source.html#l00160">_OriginalHeight</a>, <a class="el" href="texture__far_8h-source.html#l00159">_OriginalWidth</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="bitmap_8h-source.html#l00094">NLMISC::CBitmap::_Width</a>, <a class="el" href="texture__far_8h-source.html#l00037">NL_NUM_FAR_PATCHES_BY_EDGE</a>, <a class="el" href="texture__far_8h-source.html#l00034">NL_NUM_FAR_PATCHES_BY_EDGE_SHIFT</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>, <a class="el" href="classNLMISC_1_1CBitmap.html#s11s0">NLMISC::CBitmap::RGBA</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="a9" doxytag="NL3D::CTextureFar::getNextUL"></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"> CTextureFar* NL3D::CTextureFar::getNextUL </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+For lighting update, get Next (CiruclarList). If ==this, then list is empty.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00140">140</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00179">_ULNext</a>, and <a class="el" href="texture__far_8cpp-source.html#l00046">CTextureFar</a>. </td>
+ </tr>
+</table>
+<a name="a7" doxytag="NL3D::CTextureFar::linkBeforeUL"></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::CTextureFar::linkBeforeUL </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CTextureFar *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>textNext</em> </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>
+For lighting update, insert this before textNext (CiruclarList). textNext must be !NULL.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00062">62</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00179">_ULNext</a>, <a class="el" href="texture__far_8h-source.html#l00178">_ULPrec</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td>
+ </tr>
+</table>
+<a name="c2" doxytag="NL3D::CTextureFar::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::CTextureFar::NLMISC_DECLARE_CLASS </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CTextureFar&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+ </td>
+ </tr>
+</table>
+<a name="c0" doxytag="NL3D::CTextureFar::rebuildRectangle"></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::CTextureFar::rebuildRectangle </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"><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Rebuild the rectangle passed in parameter.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00272">272</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00155">_Bank</a>, <a class="el" href="bitmap_8h-source.html#l00095">NLMISC::CBitmap::_Height</a>, <a class="el" href="texture__far_8cpp-source.html#l00042">_LightmapExpanded</a>, <a class="el" href="texture__far_8cpp-source.html#l00043">_LumelExpanded</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="texture__far_8cpp-source.html#l00044">_TileTLIColors</a>, <a class="el" href="bitmap_8h-source.html#l00094">NLMISC::CBitmap::_Width</a>, <a class="el" href="texture__far_8h-source.html#l00219">NL3D_CComputeTileFar::AsmMMX</a>, <a class="el" href="texture__far_8h-source.html#l00227">NL3D_CExpandLightmap::ColorTile</a>, <a class="el" href="texture__far_8h-source.html#l00210">NL3D_CComputeTileFar::DstDeltaX</a>, <a class="el" href="texture__far_8h-source.html#l00213">NL3D_CComputeTileFar::DstDeltaY</a>, <a class="el" href="texture__far_8h-source.html#l00207">NL3D_CComputeTileFar::DstPixels</a>, <a class="el" href="texture__far_8h-source.html#l00247">NL3D_CExpandLightmap::DstPixels</a>, <a class="el" href="bitmap_8h-source.html#l00334">NLMISC::CBitmap::getPixelFormat</a>, <a class="el" href="bitmap_8h-source.html#l00307">NLMISC::CBitmap::getPixels</a>, <a class="el" href="system__info_8cpp-source.html#l00360">NLMISC::CSystemInfo::hasMMX</a>, <a class="el" href="texture__far_8h-source.html#l00238">NL3D_CExpandLightmap::Height</a>, <a class="el" href="opcode__register_8cpp-source.html#l00036">NLAISCRIPT::l</a>, <a class="el" href="texture__far_8h-source.html#l00232">NL3D_CExpandLightmap::LumelTile</a>, <a class="el" href="bit__set_8cpp-source.html#l00038">min</a>, <a class="el" href="texture__far_8h-source.html#l00241">NL3D_CExpandLightmap::MulFactor</a>, <a class="el" href="texture__far_8cpp-source.html#l01675">NL3D_drawFarTileInFarTexture</a>, <a class="el" href="texture__far_8cpp-source.html#l01805">NL3D_drawFarTileInFarTextureAdditive</a>, <a class="el" href="texture__far_8cpp-source.html#l01872">NL3D_drawFarTileInFarTextureAdditiveAlpha</a>, <a class="el" href="texture__far_8cpp-source.html#l01738">NL3D_drawFarTileInFarTextureAlpha</a>, <a class="el" href="texture__far_8cpp-source.html#l01193">NL3D_expandLightmap</a>, <a class="el" href="texture__far_8h-source.html#l00037">NL_NUM_FAR_PATCHES_BY_EDGE</a>, <a class="el" href="texture__far_8h-source.html#l00034">NL_NUM_FAR_PATCHES_BY_EDGE_SHIFT</a>, <a class="el" href="tile__far__bank_8h-source.html#l00038">NL_NUM_PIXELS_ON_FAR_TILE_EDGE</a>, <a class="el" href="tile__element_8h-source.html#l00053">NL_TILE_ELM_LAYER_EMPTY</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="debug_8h-source.html#l00114">nlwarning</a>, <a class="el" href="classNLMISC_1_1CBitmap.html#s11s0">NLMISC::CBitmap::RGBA</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00673">s</a>, <a class="el" href="texture__far_8h-source.html#l00216">NL3D_CComputeTileFar::Size</a>, <a class="el" href="cf__lexical_8cpp-source.html#l02935">size</a>, <a class="el" href="texture__far_8h-source.html#l00192">NL3D_CComputeTileFar::SrcAdditivePixels</a>, <a class="el" href="texture__far_8h-source.html#l00195">NL3D_CComputeTileFar::SrcDeltaX</a>, <a class="el" href="texture__far_8h-source.html#l00198">NL3D_CComputeTileFar::SrcDeltaY</a>, <a class="el" href="texture__far_8h-source.html#l00189">NL3D_CComputeTileFar::SrcDiffusePixels</a>, <a class="el" href="texture__far_8h-source.html#l00204">NL3D_CComputeTileFar::SrcLightingDeltaY</a>, <a class="el" href="texture__far_8h-source.html#l00201">NL3D_CComputeTileFar::SrcLightingPixels</a>, <a class="el" href="texture__far_8h-source.html#l00244">NL3D_CExpandLightmap::StaticLightColor</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00681">t</a>, <a class="el" href="texture__far_8h-source.html#l00229">NL3D_CExpandLightmap::TLIColor</a>, <a class="el" href="texture__far_8h-source.html#l00235">NL3D_CExpandLightmap::Width</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>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00225">doGenerate</a>. </td>
+ </tr>
+</table>
+<a name="a4" doxytag="NL3D::CTextureFar::removePatch"></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::CTextureFar::removePatch </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1CPatch.html">CPatch</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>pPatch</em> </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>
+Remove a patch in the CTexture Patch.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00170">170</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00152">_PatchCount</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="texture__far_8h-source.html#l00039">NL_NUM_FAR_PATCHES_BY_TEXTURE</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td>
+ </tr>
+</table>
+<a name="c1" doxytag="NL3D::CTextureFar::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::CTextureFar::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, private, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+From IStreamable.
+<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__far_8h-source.html#l00168">168</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>. </td>
+ </tr>
+</table>
+<a name="a2" doxytag="NL3D::CTextureFar::setSizeOfFarPatch"></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::CTextureFar::setSizeOfFarPatch </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a14">sint</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#a14">sint</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>
+Set the size of the patch stored in this texture far.
+<p>
+Note that width must be larger than height. For patch with a bigger height than width, invert width and height value. So, in this texture far, you can store patches with a size of width*height but also patches with a size of height*width.<dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>width</em>&nbsp;</td><td>
+is the width of the texture far stored in this texture. Can be 64, 32, 16, 8, 4 or 2 </td></tr>
+<tr><td valign=top><em>height</em>&nbsp;</td><td>
+is the height of the texture far stored in this texture. Can be 64, 32, 16, 8, 4 or 2 </td></tr>
+</table>
+</dl>
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00088">88</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00160">_OriginalHeight</a>, <a class="el" href="texture__far_8h-source.html#l00159">_OriginalWidth</a>, <a class="el" href="texture__far_8h-source.html#l00152">_PatchCount</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="classNL3D_1_1ITexture.html#s28s1">NL3D::ITexture::Clamp</a>, <a class="el" href="common_8h-source.html#l00177">NLMISC::contReset</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">height</a>, <a class="el" href="classNL3D_1_1ITexture.html#s30s19">NL3D::ITexture::Linear</a>, <a class="el" href="classNL3D_1_1ITexture.html#s31s24">NL3D::ITexture::LinearMipMapOff</a>, <a class="el" href="texture__far_8h-source.html#l00037">NL_NUM_FAR_PATCHES_BY_EDGE</a>, <a class="el" href="texture__far_8h-source.html#l00039">NL_NUM_FAR_PATCHES_BY_TEXTURE</a>, <a class="el" href="classNL3D_1_1ITexture.html#s29s8">NL3D::ITexture::RGB565</a>, <a class="el" href="texture_8cpp-source.html#l00100">NL3D::ITexture::setFilterMode</a>, <a class="el" href="texture_8cpp-source.html#l00088">NL3D::ITexture::setUploadFormat</a>, <a class="el" href="texture_8h-source.html#l00194">NL3D::ITexture::setWrapS</a>, <a class="el" href="texture_8h-source.html#l00195">NL3D::ITexture::setWrapT</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00709">width</a>. </td>
+ </tr>
+</table>
+<a name="a6" doxytag="NL3D::CTextureFar::touchPatch"></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::CTextureFar::touchPatch </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="mdname1" valign="top" nowrap>&nbsp; <em>patchId</em> </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>
+Touch a patch by its id in texture (call <a class="el" href="classNL3D_1_1ITexture.html#a1">touchRect</a>()).
+<p>
+<dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>patchId</em>&nbsp;</td><td>
+a value beetween 0 and NL_NUM_FAR_PATCHES_BY_TEXTURE-1, which gives the id of the patch in the texture </td></tr>
+</table>
+</dl><dl compact><dt><b>
+Returns: </b><dd>
+number of pixels touched. 0 if Patch==NULL (empty). </dl>
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00198">198</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00160">_OriginalHeight</a>, <a class="el" href="texture__far_8h-source.html#l00159">_OriginalWidth</a>, <a class="el" href="texture__far_8h-source.html#l00149">_Patches</a>, <a class="el" href="texture__far_8h-source.html#l00038">NL_NUM_FAR_PATCHES_BY_EDGE_MASK</a>, <a class="el" href="texture__far_8h-source.html#l00034">NL_NUM_FAR_PATCHES_BY_EDGE_SHIFT</a>, <a class="el" href="texture__far_8h-source.html#l00039">NL_NUM_FAR_PATCHES_BY_TEXTURE</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</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="a8" doxytag="NL3D::CTextureFar::unlinkUL"></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::CTextureFar::unlinkUL </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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+For lighting update, unlink (CiruclarList).
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8cpp-source.html#l00077">77</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+References <a class="el" href="texture__far_8h-source.html#l00179">_ULNext</a>, and <a class="el" href="texture__far_8h-source.html#l00178">_ULPrec</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Data Documentation</h2>
+<a name="m2" doxytag="NL3D::CTextureFar::_Bank"></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="classNL3D_1_1CTileFarBank.html">CTileFarBank</a>* NL3D::CTextureFar::_Bank
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+A pointer on the far bank.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00155">155</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>. </td>
+ </tr>
+</table>
+<a name="r0" doxytag="NL3D::CTextureFar::_LightmapExpanded"></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"> CRGBA NL3D::CTextureFar::_LightmapExpanded<code> [static, private]</code>
+ </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__far_8cpp-source.html#l00042">42</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>. </td>
+ </tr>
+</table>
+<a name="r1" doxytag="NL3D::CTextureFar::_LumelExpanded"></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#a7">uint8</a> NL3D::CTextureFar::_LumelExpanded<code> [static, private]</code>
+ </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__far_8cpp-source.html#l00043">43</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>. </td>
+ </tr>
+</table>
+<a name="o1" doxytag="NL3D::CTextureFar::_OriginalHeight"></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#a11">uint32</a> NL3D::CTextureFar::_OriginalHeight<code> [private]</code>
+ </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__far_8h-source.html#l00160">160</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00120">addPatch</a>, <a class="el" href="texture__far_8cpp-source.html#l00225">doGenerate</a>, <a class="el" href="texture__far_8cpp-source.html#l00088">setSizeOfFarPatch</a>, and <a class="el" href="texture__far_8cpp-source.html#l00198">touchPatch</a>. </td>
+ </tr>
+</table>
+<a name="o0" doxytag="NL3D::CTextureFar::_OriginalWidth"></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#a11">uint32</a> NL3D::CTextureFar::_OriginalWidth<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The original size.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00159">159</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00120">addPatch</a>, <a class="el" href="texture__far_8cpp-source.html#l00225">doGenerate</a>, <a class="el" href="texture__far_8cpp-source.html#l00088">setSizeOfFarPatch</a>, and <a class="el" href="texture__far_8cpp-source.html#l00198">touchPatch</a>. </td>
+ </tr>
+</table>
+<a name="m1" doxytag="NL3D::CTextureFar::_PatchCount"></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#a11">uint32</a> NL3D::CTextureFar::_PatchCount
+ </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__far_8h-source.html#l00152">152</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00120">addPatch</a>, <a class="el" href="texture__far_8cpp-source.html#l00170">removePatch</a>, and <a class="el" href="texture__far_8cpp-source.html#l00088">setSizeOfFarPatch</a>. </td>
+ </tr>
+</table>
+<a name="m0" doxytag="NL3D::CTextureFar::_Patches"></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_1CTextureFar_1_1CPatchIdent.html">CPatchIdent</a>&gt; NL3D::CTextureFar::_Patches
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Vector of patches which texture far is stored in this <a class="el" href="classNL3D_1_1CTextureFar.html">CTextureFar</a> Should be == to _WidthPatches*_HeightPatches.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00149">149</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00120">addPatch</a>, <a class="el" href="texture__far_8cpp-source.html#l00225">doGenerate</a>, <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>, <a class="el" href="texture__far_8cpp-source.html#l00170">removePatch</a>, <a class="el" href="texture__far_8cpp-source.html#l00088">setSizeOfFarPatch</a>, and <a class="el" href="texture__far_8cpp-source.html#l00198">touchPatch</a>. </td>
+ </tr>
+</table>
+<a name="r2" doxytag="NL3D::CTextureFar::_TileTLIColors"></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"> CRGBA NL3D::CTextureFar::_TileTLIColors<code> [static, private]</code>
+ </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__far_8cpp-source.html#l00044">44</a> of file <a class="el" href="texture__far_8cpp-source.html">texture_far.cpp</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00272">rebuildRectangle</a>. </td>
+ </tr>
+</table>
+<a name="o3" doxytag="NL3D::CTextureFar::_ULNext"></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"> CTextureFar* NL3D::CTextureFar::_ULNext<code> [private]</code>
+ </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__far_8h-source.html#l00179">179</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00046">CTextureFar</a>, <a class="el" href="texture__far_8h-source.html#l00140">getNextUL</a>, <a class="el" href="texture__far_8cpp-source.html#l00062">linkBeforeUL</a>, <a class="el" href="texture__far_8cpp-source.html#l00077">unlinkUL</a>, and <a class="el" href="texture__far_8cpp-source.html#l00055">~CTextureFar</a>. </td>
+ </tr>
+</table>
+<a name="o2" doxytag="NL3D::CTextureFar::_ULPrec"></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"> CTextureFar* NL3D::CTextureFar::_ULPrec<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+UpdateLighting. CiruclarList.
+<p>
+
+<p>
+Definition at line <a class="el" href="texture__far_8h-source.html#l00178">178</a> of file <a class="el" href="texture__far_8h-source.html">texture_far.h</a>.
+<p>
+Referenced by <a class="el" href="texture__far_8cpp-source.html#l00046">CTextureFar</a>, <a class="el" href="texture__far_8cpp-source.html#l00062">linkBeforeUL</a>, <a class="el" href="texture__far_8cpp-source.html#l00077">unlinkUL</a>, and <a class="el" href="texture__far_8cpp-source.html#l00055">~CTextureFar</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="texture__far_8h-source.html">texture_far.h</a><li><a class="el" href="texture__far_8cpp-source.html">texture_far.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>