aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/patchdlm__context_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/patchdlm__context_8h-source.html')
-rw-r--r--docs/doxygen/nel/patchdlm__context_8h-source.html262
1 files changed, 262 insertions, 0 deletions
diff --git a/docs/doxygen/nel/patchdlm__context_8h-source.html b/docs/doxygen/nel/patchdlm__context_8h-source.html
new file mode 100644
index 00000000..4ae87834
--- /dev/null
+++ b/docs/doxygen/nel/patchdlm__context_8h-source.html
@@ -0,0 +1,262 @@
+<!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>patchdlm_context.h</h1><a href="patchdlm__context_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2000-2002 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_PATCHDLM_CONTEXT_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_PATCHDLM_CONTEXT_H</font>
+00028 <font class="preprocessor"></font>
+00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00030 <font class="preprocessor">#include "<a class="code" href="object__vector_8h.html">nel/misc/object_vector.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="tess__list_8h.html">3d/tess_list.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="bsphere_8h.html">nel/misc/bsphere.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="aabbox_8h.html">nel/misc/aabbox.h</a>"</font>
+00034 <font class="preprocessor">#include "<a class="code" href="rgba_8h.html">nel/misc/rgba.h</a>"</font>
+00035 <font class="preprocessor">#include "<a class="code" href="landscape__def_8h.html">3d/landscape_def.h</a>"</font>
+00036
+00037
+00038 <font class="keyword">namespace </font>NL3D
+00039 {
+00040
+00041
+00042 <font class="keyword">class </font>CPatch;
+00043 <font class="keyword">class </font>CTextureDLM;
+00044 <font class="keyword">class </font>CPointLight;
+00045 <font class="keyword">class </font>CPatchDLMContextList;
+00046
+00047 <font class="comment">// ***************************************************************************</font>
+<a name="l00055"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html">00055</a> <font class="comment"></font><font class="keyword">class </font>CPatchDLMPointLight
+00056 {
+00057 <font class="keyword">public</font>:
+00058 <font class="comment">// Diffuse Color of the Spot, pre-modulated with landscape PointLightDiffuseMaterial. 0..255</font>
+<a name="l00059"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m0">00059</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m0">R</a>, <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m1">G</a>, <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m2">B</a>;
+00060 <font class="comment">// Is this a spot? NB: if false, cosMin/cosMax are still well computed for correctLighting (cosMax=-1, cosMin= -2).</font>
+<a name="l00061"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m3">00061</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m3">IsSpot</a>;
+00062 <font class="comment">// World Position of the spot</font>
+<a name="l00063"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m4">00063</a> CVector <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m4">Pos</a>;
+00064 <font class="comment">// Direction of the spot, normalized</font>
+<a name="l00065"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m5">00065</a> CVector <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m5">Dir</a>;
+00066 <font class="comment">// cosMax, where influence==1.</font>
+<a name="l00067"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m6">00067</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m6">CosMax</a>;
+00068 <font class="comment">// cosMin, where influence==0. NB: cosMax&gt;cosMin (ie angleMax&lt;angleMin)</font>
+<a name="l00069"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m7">00069</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m7">CosMin</a>;
+00070 <font class="comment">// 1.f / (cosMax-cosMin);</font>
+<a name="l00071"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m8">00071</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m8">OOCosDelta</a>;
+00072 <font class="comment">// Attenuation distance, where influence==0.</font>
+<a name="l00073"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m9">00073</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m9">AttMax</a>;
+00074 <font class="comment">// Attenuation distance, where influence==1. NB: attMax&gt;attMin</font>
+<a name="l00075"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m10">00075</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m10">AttMin</a>;
+00076 <font class="comment">// 1.f / (attMin-attMax);</font>
+<a name="l00077"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m11">00077</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m11">OOAttDelta</a>;
+00078
+00079
+00080 <font class="comment">// The estimated sphere which englobe the light. NB: approximated for SpotLight</font>
+<a name="l00081"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m12">00081</a> <a class="code" href="classNLMISC_1_1CBSphere.html">NLMISC::CBSphere</a> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m12">BSphere</a>;
+00082 <font class="comment">// The BBox which englobe the light. NB: Sphere and Box are best fit to the light, ie bbox may not</font>
+00083 <font class="comment">// englobe the sphere and vice versa</font>
+<a name="l00084"></a><a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m13">00084</a> <a class="code" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#m13">BBox</a>;
+00085
+00086
+00087 <font class="keyword">public</font>:
+00088 <font class="comment">// compile from a pointlight. NB: attenuation end is clamped to maxAttEnd (must be &gt;0)</font>
+00089 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMPointLight.html#a0">compile</a>(<font class="keyword">const</font> CPointLight &amp;pl, <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> landDiffMat, <font class="keywordtype">float</font> maxAttEnd= 30.f);
+00090 };
+00091
+00092
+00093 <font class="comment">// ***************************************************************************</font>
+<a name="l00100"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html">00100</a> <font class="comment"></font><font class="keyword">class </font>CPatchDLMContext : <font class="keyword">public</font> CTessNodeList
+00101 {
+00102 <font class="keyword">public</font>:
+00103
+<a name="l00104"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CVertex.html">00104</a> <font class="keyword">struct </font>CVertex
+00105 {
+<a name="l00106"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CVertex.html#m0">00106</a> CVector <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CVertex.html#m0">Pos</a>;
+<a name="l00107"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CVertex.html#m1">00107</a> CVector <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CVertex.html#m1">Normal</a>;
+00108 };
+00109
+<a name="l00111"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4">00111</a> <font class="keyword">enum</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4">TCompileType</a> {<a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4s0">ModulateTileColor</a>=0, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4s1">ModulateTextureFar</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4s2">ModulateConstant</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4s3">NoModulate</a>};
+00112
+00113 <font class="keyword">public</font>:
+00114
+<a name="l00117"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m2">00117</a> uint <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m0">TextPosX</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m1">TextPosY</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m2">Width</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m3">Height</a>;
+<a name="l00119"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m5">00119</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m4">DLMUScale</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m5">DLMVScale</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m6">DLMUBias</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m7">DLMVBias</a>;
+<a name="l00121"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m8">00121</a> uint8 <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m8">MinU8</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m9">MaxU8</a>;
+<a name="l00122"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m10">00122</a> uint8 <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m10">MinV8</a>, <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m11">MaxV8</a>;
+00123
+<a name="l00127"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m12">00127</a> uint <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m12">OldPointLightCount</a>;
+<a name="l00128"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#m13">00128</a> uint <a class="code" href="classNL3D_1_1CPatchDLMContext.html#m13">CurPointLightCount</a>;
+00129
+00130
+00131 <font class="keyword">public</font>:
+00132
+00134 <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a0">CPatchDLMContext</a>();
+00136 <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a1">~CPatchDLMContext</a>();
+00137
+00143 <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a2">generate</a>(CPatch *patch, CTextureDLM *textureDLM, CPatchDLMContextList *ctxList);
+00144
+00148 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a3">clearLighting</a>();
+00149
+00153 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a4">addPointLightInfluence</a>(<font class="keyword">const</font> CPatchDLMPointLight &amp;pl);
+00154
+00162 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a5">compileLighting</a>(<a class="code" href="classNL3D_1_1CPatchDLMContext.html#s4">TCompileType</a> compType, <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> modulateCte= <a class="code" href="classNLMISC_1_1CRGBA.html#p7">NLMISC::CRGBA::White</a>);
+00163
+<a name="l00164"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#a6">00164</a> CPatch *<a class="code" href="classNL3D_1_1CPatchDLMContext.html#a6">getPatch</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o0">_Patch</a>;}
+00165
+00166 <font class="comment">// For Bench. Get the size in memory this class use.</font>
+00167 uint <a class="code" href="classNL3D_1_1CPatchDLMContext.html#a7">getMemorySize</a>() <font class="keyword">const</font>;
+00168
+00169 <font class="comment">// *************************</font>
+00170 <font class="keyword">private</font>:
+00171
+<a name="l00173"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o0">00173</a> CPatch *<a class="code" href="classNL3D_1_1CPatchDLMContext.html#o0">_Patch</a>;
+<a name="l00175"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o1">00175</a> CTextureDLM *<a class="code" href="classNL3D_1_1CPatchDLMContext.html#o1">_DLMTexture</a>;
+00176 <font class="comment">// The ctx list where this context is appened.</font>
+<a name="l00177"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o2">00177</a> CPatchDLMContextList *<a class="code" href="classNL3D_1_1CPatchDLMContext.html#o2">_DLMContextList</a>;
+00178
+<a name="l00180"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o3">00180</a> <a class="code" href="classNLMISC_1_1CObjectVector.html">NLMISC::CObjectVector&lt;CVertex&gt;</a> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o3">_Vertices</a>;
+00181
+<a name="l00183"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o4">00183</a> <a class="code" href="classNLMISC_1_1CObjectVector.html">NLMISC::CObjectVector&lt;CRGBA&gt;</a> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o4">_LightMap</a>;
+00184
+<a name="l00186"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html">00186</a> <font class="keyword">struct </font>CCluster
+00187 {
+00188 <font class="comment">// The bounding sphere of the cluster</font>
+<a name="l00189"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m0">00189</a> <a class="code" href="classNLMISC_1_1CBSphere.html">NLMISC::CBSphere</a> <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m0">BSphere</a>;
+00190 <font class="comment">// If cluster not clipped, how many cluster to skip. NB: if NSkips==0, then it is a leaf cluster.</font>
+<a name="l00191"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m1">00191</a> uint <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m1">NSkips</a>;
+00192 <font class="comment">// For leaf cluster: logical position of the cluster</font>
+<a name="l00193"></a><a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m3">00193</a> uint16 <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m2">X</a>, <a class="code" href="structNL3D_1_1CPatchDLMContext_1_1CCluster.html#m3">Y</a>;
+00194 };
+00195
+<a name="l00197"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o5">00197</a> <a class="code" href="classNLMISC_1_1CObjectVector.html">NLMISC::CObjectVector&lt;CCluster&gt;</a> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o5">_Clusters</a>;
+00198
+00199 <font class="comment">// Tells if all _LightMap[] is all black.</font>
+<a name="l00200"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o6">00200</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o6">_IsSrcTextureFullBlack</a>;
+00201 <font class="comment">// Tells if all dst texture in _DLMTexture is black.</font>
+<a name="l00202"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o7">00202</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o7">_IsDstTextureFullBlack</a>;
+00203
+00204
+00205 <font class="comment">// If resolution of the lightmap is every 2x2 tiles, must bkup tileColors.</font>
+00206 <font class="preprocessor">#ifndef NL_DLM_TILE_RES</font>
+00207 <font class="preprocessor"></font> <font class="comment">// The tileColors at resolution of tessBlock</font>
+<a name="l00208"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o8">00208</a> <a class="code" href="classNLMISC_1_1CObjectVector.html">NLMISC::CObjectVector&lt;uint16, false&gt;</a> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o8">_LowResTileColors</a>;
+00209 <font class="preprocessor">#endif</font>
+00210 <font class="preprocessor"></font>
+00211
+<a name="l00215"></a><a class="code" href="classNL3D_1_1CPatchDLMContext.html#o9">00215</a> <a class="code" href="classNLMISC_1_1CObjectVector.html">NLMISC::CObjectVector&lt;CRGBA&gt;</a> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#o9">_TextureFar</a>;
+00216
+00217
+00218 <font class="keyword">private</font>:
+00219
+00220 <font class="comment">// called at generate.</font>
+00221 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#c0">computeTextureFar</a>();
+00222
+00223 <font class="comment">// Tile at 2x2 resolution method</font>
+00224 <font class="keyword">static</font> <font class="keyword">const</font> CRGBA *<a class="code" href="classNL3D_1_1CPatchDLMContext.html#f0">computeTileFarSrcDeltas</a>(sint nRot, <font class="keywordtype">bool</font> is256x256, uint8 uvOff, <font class="keyword">const</font> CRGBA *srcPixel, sint &amp;srcDeltaX, sint &amp;srcDeltaY);
+00225 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#f1">copyTileToTexture</a>(<font class="keyword">const</font> CRGBA *srcPixel, sint srcDeltaX, sint srcDeltaY, CRGBA *dstPixel, uint dstStride);
+00226 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPatchDLMContext.html#f2">blendTileToTexture</a>(<font class="keyword">const</font> CRGBA *srcPixel, sint srcDeltaX, sint srcDeltaY, CRGBA *dstPixel, uint dstStride);
+00227
+00228 };
+00229
+00230
+00231 <font class="comment">// ***************************************************************************</font>
+<a name="l00233"></a><a class="code" href="classNL3D_1_1CPatchDLMContextList.html">00233</a> <font class="comment">class CPatchDLMContextList : public CTessList&lt;CPatchDLMContext&gt;</font>
+00234 {
+00235 };
+00236
+00237
+00238
+00239 } <font class="comment">// NL3D</font>
+00240
+00241
+00242 <font class="preprocessor">#endif // NL_PATCHDLM_CONTEXT_H</font>
+00243 <font class="preprocessor"></font>
+00244 <font class="comment">/* End of patchdlm_context.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>