diff options
Diffstat (limited to 'docs/doxygen/nel/a03522.html')
-rw-r--r-- | docs/doxygen/nel/a03522.html | 618 |
1 files changed, 618 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03522.html b/docs/doxygen/nel/a03522.html new file mode 100644 index 00000000..8cd50659 --- /dev/null +++ b/docs/doxygen/nel/a03522.html @@ -0,0 +1,618 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CTileElement class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CTileElement Class Reference</h1><code>#include <<a class="el" href="a06541.html">tile_element.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +An Element for CPatchTexture. Temporary! since CPatchTexture should be compressed... NB: no default ctor => must init all fields. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06541.html#l00064">64</a> of file <a class="el" href="a06541.html">tile_element.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a> { <br> + <a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw0">AboveWater</a> = 0, +<a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw3">UnderWater</a>, +<a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw1">IntersectWater</a>, +<a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw4">VegetableDisabled</a>, +<br> + <a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw5">VegetInfoLast</a> +<br> + }</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Micro vegetation position. Above water is the default. <a href="#NL3D_1_1CTileElementw2">More...</a><br><br></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa0">copyFlagsFromOther</a> (const <a class="el" href="a03522.html">CTileElement</a> &other)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy this tile flags from an other tile. <a href="#NL3D_1_1CTileElementa0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa1">getTile256Info</a> (bool &is256x256, <a class="el" href="a04558.html#a7">uint8</a> &uvOff) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa2">getTileOrient</a> (<a class="el" href="a04558.html#a14">sint</a> i) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa3">getTileSubNoise</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa4">getVegetableState</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the micro vegetable state for this tile. <a href="#NL3D_1_1CTileElementa4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa5">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa6">setTile256Info</a> (bool is256x256, <a class="el" href="a04558.html#a7">uint8</a> uvOff=0)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa7">setTileOrient</a> (<a class="el" href="a04558.html#a14">sint</a> i, <a class="el" href="a04558.html#a7">uint8</a> orient)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa8">setTileSubNoise</a> (<a class="el" href="a04558.html#a7">uint8</a> subNoise)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementa9">setVegetableState</a> (<a class="el" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a> state)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the micro vegetation state. <a href="#NL3D_1_1CTileElementa9"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a9">uint16</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElemento0">Tile</a> [3]</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a9">uint16</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a></td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NL3D_1_1CTileElementw2" doxytag="NL3D::CTileElement::TVegetableInfo" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> enum <a class="el" href="a03522.html#NL3D_1_1CTileElementw2">NL3D::CTileElement::TVegetableInfo</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Micro vegetation position. Above water is the default. +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTileElementw2NL3D_1_1CTileElementw0" doxytag="AboveWater" ></a>AboveWater</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTileElementw2NL3D_1_1CTileElementw3" doxytag="UnderWater" ></a>UnderWater</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTileElementw2NL3D_1_1CTileElementw1" doxytag="IntersectWater" ></a>IntersectWater</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTileElementw2NL3D_1_1CTileElementw4" doxytag="VegetableDisabled" ></a>VegetableDisabled</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTileElementw2NL3D_1_1CTileElementw5" doxytag="VegetInfoLast" ></a>VegetInfoLast</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a06541.html#l00125">125</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +Referenced by <a class="el" href="a06541.html#l00131">getVegetableState()</a>. +<p> +<div class="fragment"><pre>00125 { <a class="code" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw0">AboveWater</a> = 0, <a class="code" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw3">UnderWater</a>, <a class="code" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw1">IntersectWater</a>, <a class="code" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw4">VegetableDisabled</a>, <a class="code" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw5">VegetInfoLast</a> }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CTileElementa0" doxytag="NL3D::CTileElement::copyFlagsFromOther" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::copyFlagsFromOther </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03522.html">CTileElement</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>other</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Copy this tile flags from an other tile. +<p> + +<p> +Definition at line <a class="el" href="a06541.html#l00072">72</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +References <a class="el" href="a06541.html#l00067">Flags</a>. +<p> +<div class="fragment"><pre>00072 { <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a> = other.<a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa1" doxytag="NL3D::CTileElement::getTile256Info" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::getTile256Info </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool & </td> + <td class="mdname" nowrap> <em>is256x256</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> & </td> + <td class="mdname" nowrap> <em>uvOff</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the tile 256x256 information. +<p> +Definition at line <a class="el" href="a06540.html#l00064">64</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00039">NL_TILE_ELM_MASK_UVINFO</a>, <a class="el" href="a06541.html#l00040">NL_TILE_ELM_OFFSET_UVINFO</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06163.html#l00964">NL3D::CPatchDLMContext::computeTextureFar()</a>, <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>, and <a class="el" href="a06758.html#l01825">NL3D::CPatchInfo::transform()</a>. +<p> +<div class="fragment"><pre>00065 { +00066 <a class="code" href="a04558.html#a14">sint</a> where= <a class="code" href="a05118.html#a4">NL_TILE_ELM_OFFSET_UVINFO</a>; +00067 <a class="code" href="a04558.html#a14">sint</a> info= ((<a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>>>where) & <a class="code" href="a05118.html#a3">NL_TILE_ELM_MASK_UVINFO</a>); +00068 uvOff= info&3; +00069 is256x256= (info&4)?<span class="keyword">true</span>:<span class="keyword">false</span>; +00070 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa2" doxytag="NL3D::CTileElement::getTileOrient" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NL3D::CTileElement::getTileOrient </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a14">sint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>i</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the tile orientation of pass i. orient E [0,3]. The rotation is CCW. +<p> +Definition at line <a class="el" href="a06540.html#l00046">46</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00036">NL_TILE_ELM_MASK_ROTATE</a>, <a class="el" href="a06541.html#l00037">NL_TILE_ELM_OFFSET_ROTATE</a>, <a class="el" href="a06541.html#l00038">NL_TILE_ELM_SIZE_ROTATE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06163.html#l00964">NL3D::CPatchDLMContext::computeTextureFar()</a>, <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>, and <a class="el" href="a06758.html#l01825">NL3D::CPatchInfo::transform()</a>. +<p> +<div class="fragment"><pre>00047 { +00048 <a class="code" href="a04199.html#a6">nlassert</a>(i>=0 && i<=2); +00049 <a class="code" href="a04558.html#a14">sint</a> where= <a class="code" href="a05118.html#a2">NL_TILE_ELM_SIZE_ROTATE</a>*i+<a class="code" href="a05118.html#a1">NL_TILE_ELM_OFFSET_ROTATE</a>; +00050 <span class="keywordflow">return</span> <a class="code" href="a05167.html#a9">uint8</a> ((Flags>>where) & NL_TILE_ELM_MASK_ROTATE); +00051 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa3" doxytag="NL3D::CTileElement::getTileSubNoise" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NL3D::CTileElement::getTileSubNoise </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the tile SubNoise information. +<p> +Definition at line <a class="el" href="a06541.html#l00116">116</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +References <a class="el" href="a06541.html#l00042">NL_TILE_ELM_MASK_SUBNOISE</a>, <a class="el" href="a06541.html#l00043">NL_TILE_ELM_OFFSET_SUBNOISE</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00117 { +00118 <span class="keywordflow">return</span> ((<a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>>><a class="code" href="a05118.html#a7">NL_TILE_ELM_OFFSET_SUBNOISE</a>) & <a class="code" href="a05118.html#a6">NL_TILE_ELM_MASK_SUBNOISE</a>); +00119 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa4" doxytag="NL3D::CTileElement::getVegetableState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a> NL3D::CTileElement::getVegetableState </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the micro vegetable state for this tile. +<p> + +<p> +Definition at line <a class="el" href="a06541.html#l00131">131</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +References <a class="el" href="a06541.html#l00050">NL_TILE_ELM_MASK_VEGETABLE</a>, <a class="el" href="a06541.html#l00049">NL_TILE_ELM_OFFSET_VEGETABLE</a>, and <a class="el" href="a06541.html#l00125">TVegetableInfo</a>. +<p> +Referenced by <a class="el" href="a06768.html#l03710">NL3D::CZoneLighter::setTileFlagsToDefault()</a>. +<p> +<div class="fragment"><pre>00132 { +00133 <span class="keywordflow">return</span> (<a class="code" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a>) ((<a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a> >> <a class="code" href="a05118.html#a9">NL_TILE_ELM_OFFSET_VEGETABLE</a>) & <a class="code" href="a05118.html#a10">NL_TILE_ELM_MASK_VEGETABLE</a>); +00134 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa5" doxytag="NL3D::CTileElement::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06540.html#l00082">82</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06462.html#l00647">NLMISC::IStream::xmlSerial()</a>. +<p> +<div class="fragment"><pre>00083 { +00084 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a> (Flags, <span class="stringliteral">"FLAGS"</span>); +00085 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a> (Tile[0], Tile[1], Tile[2], <span class="stringliteral">"TILES_ID"</span>); +00086 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa6" doxytag="NL3D::CTileElement::setTile256Info" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::setTile256Info </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname" nowrap> <em>is256x256</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>uvOff</em> = 0</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the tile 256x256 information of pass 0.<p> +NB: During UV computing, orient is applied first, then tile256x256 uvOffset (only if the tile is 256x256). <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>is256x256</em> </td><td>is this tile a part of a 256x256 </td></tr> + <tr><td valign=top><em>uvOff</em> </td><td>the UV offset of tile 256x256. uvOff E [0,3]. Meanings: --------- | 0 | 3 | |___|___| | | | | 1 | 2 | ---------</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06540.html#l00054">54</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00039">NL_TILE_ELM_MASK_UVINFO</a>, <a class="el" href="a06541.html#l00040">NL_TILE_ELM_OFFSET_UVINFO</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06758.html#l01825">NL3D::CPatchInfo::transform()</a>. +<p> +<div class="fragment"><pre>00055 { +00056 <a class="code" href="a04199.html#a6">nlassert</a>(uvOff<=3); +00057 <a class="code" href="a04558.html#a14">sint</a> where= <a class="code" href="a05118.html#a4">NL_TILE_ELM_OFFSET_UVINFO</a>; +00058 <a class="code" href="a04558.html#a14">sint</a> info= uvOff+(is256x256?4:0); +00059 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>&= ~(<a class="code" href="a05118.html#a3">NL_TILE_ELM_MASK_UVINFO</a><<where); +00060 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>|= info<<where; +00061 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa7" doxytag="NL3D::CTileElement::setTileOrient" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::setTileOrient </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a14">sint</a> </td> + <td class="mdname" nowrap> <em>i</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>orient</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the tile orientation of pass i, to "orient". orient E [0,3]. The rotation is CCW. +<p> +Definition at line <a class="el" href="a06540.html#l00036">36</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00036">NL_TILE_ELM_MASK_ROTATE</a>, <a class="el" href="a06541.html#l00037">NL_TILE_ELM_OFFSET_ROTATE</a>, <a class="el" href="a06541.html#l00038">NL_TILE_ELM_SIZE_ROTATE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06758.html#l01825">NL3D::CPatchInfo::transform()</a>. +<p> +<div class="fragment"><pre>00037 { +00038 <a class="code" href="a04199.html#a6">nlassert</a>(i>=0 && i<=2); +00039 <a class="code" href="a04199.html#a6">nlassert</a>(orient<=3); +00040 <a class="code" href="a04558.html#a14">sint</a> where= <a class="code" href="a05118.html#a2">NL_TILE_ELM_SIZE_ROTATE</a>*i+<a class="code" href="a05118.html#a1">NL_TILE_ELM_OFFSET_ROTATE</a>; +00041 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>&= ~(<a class="code" href="a05118.html#a0">NL_TILE_ELM_MASK_ROTATE</a><<where); +00042 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>|= orient<<where; +00043 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa8" doxytag="NL3D::CTileElement::setTileSubNoise" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::setTileSubNoise </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>subNoise</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the tile SubNoise. subNoise E [0, 15]. +<p> +Definition at line <a class="el" href="a06540.html#l00073">73</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00042">NL_TILE_ELM_MASK_SUBNOISE</a>, <a class="el" href="a06541.html#l00043">NL_TILE_ELM_OFFSET_SUBNOISE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00074 { +00075 <a class="code" href="a04199.html#a6">nlassert</a>(subNoise<=15); +00076 <a class="code" href="a04558.html#a14">sint</a> where= <a class="code" href="a05118.html#a7">NL_TILE_ELM_OFFSET_SUBNOISE</a>; +00077 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>&= ~(<a class="code" href="a05118.html#a6">NL_TILE_ELM_MASK_SUBNOISE</a><<where); +00078 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a>|= subNoise<<where; +00079 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElementa9" doxytag="NL3D::CTileElement::setVegetableState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CTileElement::setVegetableState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03522.html#NL3D_1_1CTileElementw2">TVegetableInfo</a> </td> + <td class="mdname1" valign="top" nowrap> <em>state</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the micro vegetation state. +<p> + +<p> +Definition at line <a class="el" href="a06540.html#l00089">89</a> of file <a class="el" href="a06540.html">tile_element.cpp</a>. +<p> +References <a class="el" href="a06541.html#l00050">NL_TILE_ELM_MASK_VEGETABLE</a>, <a class="el" href="a06541.html#l00049">NL_TILE_ELM_OFFSET_VEGETABLE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00098">uint16</a>, and <a class="el" href="a03522.html#NL3D_1_1CTileElementw2NL3D_1_1CTileElementw5">VegetInfoLast</a>. +<p> +Referenced by <a class="el" href="a06768.html#l03563">NL3D::CZoneLighter::computeTileFlagsForPositionTowardWater()</a>, and <a class="el" href="a06768.html#l03710">NL3D::CZoneLighter::setTileFlagsToDefault()</a>. +<p> +<div class="fragment"><pre>00090 { +00091 <a class="code" href="a04199.html#a6">nlassert</a>(state < VegetInfoLast); +00092 <span class="keyword">const</span> <a class="code" href="a04558.html#a9">uint16</a> mask = <a class="code" href="a05118.html#a10">NL_TILE_ELM_MASK_VEGETABLE</a> << <a class="code" href="a05118.html#a9">NL_TILE_ELM_OFFSET_VEGETABLE</a>; +00093 <a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a> = (<a class="code" href="a03522.html#NL3D_1_1CTileElementr0">Flags</a> & ~mask) | ((<a class="code" href="a04558.html#a9">uint16</a>) state << <a class="code" href="a05118.html#a9">NL_TILE_ELM_OFFSET_VEGETABLE</a>); +00094 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CTileElementr0" doxytag="NL3D::CTileElement::Flags" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a9">uint16</a> <a class="el" href="a03522.html#NL3D_1_1CTileElementr0">NL3D::CTileElement::Flags</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06541.html#l00067">67</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +Referenced by <a class="el" href="a06541.html#l00072">copyFlagsFromOther()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CTileElemento0" doxytag="NL3D::CTileElement::Tile" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a9">uint16</a> <a class="el" href="a03522.html#NL3D_1_1CTileElemento0">NL3D::CTileElement::Tile</a>[3] + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The three tile ident. NL_TILE_ELM_LAYER_EMPTY means no Tile for this pass. Tile[0] should be !=NL_TILE_ELM_LAYER_EMPTY. Else cross are drawn... +<p> +Definition at line <a class="el" href="a06541.html#l00077">77</a> of file <a class="el" href="a06541.html">tile_element.h</a>. +<p> +Referenced by <a class="el" href="a06163.html#l00964">NL3D::CPatchDLMContext::computeTextureFar()</a>, <a class="el" href="a06725.html#l00565">NL3D::CVisualCollisionEntity::getSurfaceInfo()</a>, <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>, and <a class="el" href="a06758.html#l01825">NL3D::CPatchInfo::transform()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06541.html">tile_element.h</a><li><a class="el" href="a06540.html">tile_element.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:04:31 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |