diff options
Diffstat (limited to 'docs/doxygen/nel/a03700.html')
-rw-r--r-- | docs/doxygen/nel/a03700.html | 325 |
1 files changed, 325 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03700.html b/docs/doxygen/nel/a03700.html new file mode 100644 index 00000000..3fa840f3 --- /dev/null +++ b/docs/doxygen/nel/a03700.html @@ -0,0 +1,325 @@ +<!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::CVertexCache struct 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::CVertexCache Struct Reference</h1><table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCachea0">CVertexCache</a> (<a class="el" href="a04558.html#a14">sint</a> cacheSize, <a class="el" href="a04558.html#a14">sint</a> nbVerts)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCachea1">getVertexInCache</a> (<a class="el" href="a04558.html#a15">uint</a> vertIdInCache)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCachea2">isVertexInCache</a> (<a class="el" href="a04558.html#a15">uint</a> vert)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCachea3">tempTouchVertex</a> (<a class="el" href="a04558.html#a15">uint</a> vert, bool inCache)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCachea4">touchVertex</a> (<a class="el" href="a04558.html#a15">uint</a> vert)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>deque< <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>vector< <a class="el" href="a04558.html#a7">uint8</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CVertexCachea0" doxytag="NL3D::CVertexCache::CVertexCache" ></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"> NL3D::CVertexCache::CVertexCache </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>cacheSize</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a14">sint</a> </td> + <td class="mdname" nowrap> <em>nbVerts</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></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="a06473.html#l00103">103</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +References <a class="el" href="a06473.html#l00152">_VertexInCache</a>, and <a class="el" href="a05981.html#l00104">sint</a>. +<p> +<div class="fragment"><pre>00104 { +00105 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>.resize(nbVerts, 0); +00106 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a>.resize(cacheSize, 0xFFFFFFFF); +00107 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CVertexCachea1" doxytag="NL3D::CVertexCache::getVertexInCache" ></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#a15">uint</a> NL3D::CVertexCache::getVertexInCache </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>vertIdInCache</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> + +<p> +Definition at line <a class="el" href="a06473.html#l00134">134</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06473.html#l00196">NL3D::CStripifier::optimizeTriangles()</a>. +<p> +<div class="fragment"><pre>00135 { +00136 <span class="keywordflow">return</span> <a class="code" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a>[vertIdInCache]; +00137 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CVertexCachea2" doxytag="NL3D::CVertexCache::isVertexInCache" ></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"> bool NL3D::CVertexCache::isVertexInCache </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>vert</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> + +<p> +Definition at line <a class="el" href="a06473.html#l00128">128</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +References <a class="el" href="a06473.html#l00152">_VertexInCache</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06473.html#l00173">NL3D::COrderFace::countCacheMiss()</a>, and <a class="el" href="a06473.html#l00109">touchVertex()</a>. +<p> +<div class="fragment"><pre>00129 { +00130 <span class="keywordflow">return</span> <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[vert]==3; +00131 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CVertexCachea3" doxytag="NL3D::CVertexCache::tempTouchVertex" ></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::CVertexCache::tempTouchVertex </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>vert</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>inCache</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></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="a06473.html#l00139">139</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +References <a class="el" href="a06473.html#l00152">_VertexInCache</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06473.html#l00196">NL3D::CStripifier::optimizeTriangles()</a>. +<p> +<div class="fragment"><pre>00140 { +00141 <span class="keywordflow">if</span>( <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[vert]&1 ) +00142 { +00143 <span class="keywordflow">if</span>(inCache) +00144 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[vert]|= 2; +00145 <span class="keywordflow">else</span> +00146 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[vert]&= 1; +00147 } +00148 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CVertexCachea4" doxytag="NL3D::CVertexCache::touchVertex" ></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::CVertexCache::touchVertex </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>vert</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> + +<p> +Definition at line <a class="el" href="a06473.html#l00109">109</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +References <a class="el" href="a06473.html#l00152">_VertexInCache</a>, <a class="el" href="a06473.html#l00128">isVertexInCache()</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06473.html#l00164">NL3D::COrderFace::insertInPB()</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <span class="keywordflow">if</span>(<a class="code" href="a03700.html#NL3D_1_1CVertexCachea2">isVertexInCache</a>(vert)) +00112 { +00113 <span class="comment">// do nothing ?????? depends of vcache implementation</span> +00114 } +00115 <span class="keywordflow">else</span> +00116 { +00117 <span class="comment">// pop front</span> +00118 <a class="code" href="a04558.html#a15">uint</a> removed= <a class="code" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a>.front(); +00119 <span class="keywordflow">if</span>(removed!=0xFFFFFFFF) +00120 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[removed]= 0; +00121 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a>.pop_front(); +00122 <span class="comment">// push_back</span> +00123 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher1">_VertexInCache</a>[vert]= 3; +00124 <a class="code" href="a03700.html#NL3D_1_1CVertexCacher0">_Cache</a>.push_back(vert); +00125 } +00126 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CVertexCacher0" doxytag="NL3D::CVertexCache::_Cache" ></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"> deque<<a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a03700.html#NL3D_1_1CVertexCacher0">NL3D::CVertexCache::_Cache</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="a06473.html#l00153">153</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CVertexCacher1" doxytag="NL3D::CVertexCache::_VertexInCache" ></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"> vector<<a class="el" href="a04558.html#a7">uint8</a>> <a class="el" href="a03700.html#NL3D_1_1CVertexCacher1">NL3D::CVertexCache::_VertexInCache</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="a06473.html#l00152">152</a> of file <a class="el" href="a06473.html">stripifier.cpp</a>. +<p> +Referenced by <a class="el" href="a06473.html#l00103">CVertexCache()</a>, <a class="el" href="a06473.html#l00128">isVertexInCache()</a>, <a class="el" href="a06473.html#l00139">tempTouchVertex()</a>, and <a class="el" href="a06473.html#l00109">touchVertex()</a>. </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following file:<ul> +<li><a class="el" href="a06473.html">stripifier.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:25:51 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> |