1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
|
<!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="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD WIDTH=16><IMG SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=><b>Home</B></FONT></A> </TD>
<TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD>
</TR>
</TABLE>
<!-- banner Nevrax -->
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
<TR><TD BGCOLOR="#000000" BACKGROUND="/inc/img/black_banner.jpg"><A HREF=""><IMG SRC="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
<TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="/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="/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
</TABLE>
</TD></TR></TABLE></TD></TR></TABLE>
<!------ End Box ------>
</TD>
<TD WIDTH=15><IMG SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD ALIGN=left valign=top><IMG SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
<!-- title -->
<TABLE background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG SRC="/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
</td></tr></table>
<!-- 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="/inc/img/reddots.gif"></TD>
<TD><B>Documentation</B></TD>
<TD ALIGN=RIGHT> </td>
</tr></table>
<!-- Generated by Doxygen 1.2.14 -->
<center>
<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> </center>
<hr><h1>render_trav.h</h1><a href="render__trav_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
00007 <font class="comment">/* Copyright, 2000 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_RENDER_TRAV_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_RENDER_TRAV_H</font>
00028 <font class="preprocessor"></font>
00029 <font class="preprocessor">#include "<a class="code" href="trav__scene_8h.html">3d/trav_scene.h</a>"</font>
00030 <font class="preprocessor">#include "<a class="code" href="ordering__table_8h.html">3d/ordering_table.h</a>"</font>
00031 <font class="preprocessor">#include "<a class="code" href="layered__ordering__table_8h.html">3d/layered_ordering_table.h</a>"</font>
00032 <font class="preprocessor">#include "<a class="code" href="rgba_8h.html">nel/misc/rgba.h</a>"</font>
00033 <font class="preprocessor">#include "<a class="code" href="viewport_8h.html">nel/3d/viewport.h</a>"</font>
00034 <font class="preprocessor">#include "<a class="code" href="light__contribution_8h.html">3d/light_contribution.h</a>"</font>
00035 <font class="preprocessor">#include "<a class="code" href="light_8h.html">3d/light.h</a>"</font>
00036 <font class="preprocessor">#include "<a class="code" href="mesh__block__manager_8h.html">3d/mesh_block_manager.h</a>"</font>
00037 <font class="preprocessor">#include <vector></font>
00038
00039
00040 <font class="keyword">namespace </font>NL3D
00041 {
00042
00043 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>;
00044 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CPlane.html">NLMISC::CPlane</a>;
00045 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>;
00046
00047 <font class="keyword">class </font>IBaseRenderObs;
00048 <font class="keyword">class </font>IDriver;
00049 <font class="keyword">class </font>CMaterial;
00050
00051 <font class="keyword">class </font>CTransform;
00052
00053 <font class="keyword">class </font>CMeshSkinManager;
00054
00055
00056 <font class="comment">// ***************************************************************************</font>
00057 <font class="comment">// Skin Manager setup</font>
<a name="l00058"></a><a class="code" href="render__trav_8h.html#a0">00058</a> <font class="preprocessor">#define NL3D_MESH_SKIN_MANAGER_VERTEXFORMAT (CVertexBuffer::PositionFlag | CVertexBuffer::NormalFlag | CVertexBuffer::TexCoord0Flag)</font>
<a name="l00059"></a><a class="code" href="render__trav_8h.html#a1">00059</a> <font class="preprocessor"></font><font class="preprocessor">#define NL3D_MESH_SKIN_MANAGER_MAXVERTICES 10000</font>
00060 <font class="preprocessor"></font>
00061
00062 <font class="comment">// ***************************************************************************</font>
00063 <font class="comment">// ClassIds.</font>
00064 <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CClassId.html">NLMISC::CClassId</a> <a class="code" href="namespaceNL3D.html#a232">RenderTravId</a>= <a class="code" href="classNLMISC_1_1CClassId.html">NLMISC::CClassId</a>(0x572456ee, 0x3db55f23);
00065
00066
00067 <font class="comment">// ***************************************************************************</font>
<a name="l00088"></a><a class="code" href="classNL3D_1_1CRenderTrav.html">00088</a> <font class="comment"></font><font class="keyword">class </font>CRenderTrav : <font class="keyword">public</font> ITravCameraScene
00089 {
00090 <font class="keyword">public</font>:
00091
00093 <a class="code" href="classNL3D_1_1CRenderTrav.html#a0">CRenderTrav</a>();
00094
00096
00097 IObs *<a class="code" href="classNL3D_1_1CRenderTrav.html#z745_0">createDefaultObs</a>() <font class="keyword">const</font>;
<a name="l00098"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z745_1">00098</a> NLMISC::CClassId <a class="code" href="classNL3D_1_1CRenderTrav.html#z745_1">getClassId</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> RenderTravId;}
<a name="l00099"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z745_2">00099</a> sint <a class="code" href="classNL3D_1_1CRenderTrav.html#z745_2">getRenderOrder</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> 4000;}
00104 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z745_3">traverse</a>();
00106
00108
00109
00110 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z746_0">clearRenderList</a>();
00114 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z746_1">addRenderObs</a>(IBaseRenderObs *o);
00116
00117
<a name="l00118"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a1">00118</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a1">setDriver</a>(IDriver *drv) {<a class="code" href="classNL3D_1_1CRenderTrav.html#o3">Driver</a>= drv;}
<a name="l00119"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a2">00119</a> IDriver *<a class="code" href="classNL3D_1_1CRenderTrav.html#a2">getDriver</a>() {<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o3">Driver</a>;}
<a name="l00120"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a3">00120</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a3">setViewport</a> (<font class="keyword">const</font> CViewport& viewport)
00121 {
00122 <a class="code" href="classNL3D_1_1CRenderTrav.html#o4">_Viewport</a> = viewport;
00123 }
<a name="l00124"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a4">00124</a> CViewport <a class="code" href="classNL3D_1_1CRenderTrav.html#a4">getViewport</a> ()<font class="keyword"> const</font>
00125 <font class="keyword"> </font>{
00126 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o4">_Viewport</a>;
00127 }
00128
<a name="l00129"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a5">00129</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a5">isCurrentPassOpaque</a>() { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o5">_CurrentPassOpaque</a>; }
00130
<a name="l00137"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a6">00137</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a6">setLayersRenderingOrder</a>(<font class="keywordtype">bool</font> directOrder = <font class="keyword">true</font>) { <a class="code" href="classNL3D_1_1CRenderTrav.html#o6">_LayersRenderingOrder</a> = directOrder; }
<a name="l00138"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a7">00138</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a7">getLayersRenderingOrder</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o6">_LayersRenderingOrder</a>; }
00139
00140
00141
00143 <font class="comment">// @{</font>
00144
00145 <font class="comment">// False by default. setuped by CScene</font>
<a name="l00146"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z747_2">00146</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_2">LightingSystemEnabled</a>;
00147
00148 <font class="comment">// Global ambient. Default is (50,50,50).</font>
<a name="l00149"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z747_3">00149</a> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_3">AmbientGlobal</a>;
00150 <font class="comment">// The Sun Setup.</font>
<a name="l00151"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z747_6">00151</a> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_4">SunAmbient</a>, <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_5">SunDiffuse</a>, <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_6">SunSpecular</a>;
00152 <font class="comment">// set the direction of the sun. dir is normalized.</font>
00153 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_0">setSunDirection</a>(<font class="keyword">const</font> CVector &dir);
<a name="l00154"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z747_1">00154</a> <font class="keyword">const</font> CVector <a class="code" href="classNL3D_1_1CRenderTrav.html#z747_1">getSunDirection</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_8">_SunDirection</a>;}
00155
00156 <font class="comment">// @}</font>
00157
00158
00163 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#a8">setMeshSkinManager</a>(CMeshSkinManager *msm);
00164
<a name="l00166"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#a9">00166</a> CMeshSkinManager *<a class="code" href="classNL3D_1_1CRenderTrav.html#a9">getMeshSkinManager</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o7">_MeshSkinManager</a>;}
00167
00168
00169 <font class="comment">// ******************</font>
00170 <font class="keyword">public</font>:
00171
00173 <font class="comment">// @{</font>
00174
00175 <font class="comment">// Max VP Light setup Infos.</font>
00176 <font class="keyword">enum</font> {<a class="code" href="classNL3D_1_1CRenderTrav.html#z748_0s0">MaxVPLight</a>= 4};
00177
00182 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_1">resetLightSetup</a>();
00183
00194 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_2">changeLightSetup</a>(CLightContribution *lightContribution, <font class="keywordtype">bool</font> useLocalAttenuation);
00195
00196
00205 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_3">beginVPLightSetup</a>(uint ctStart, <font class="keywordtype">bool</font> supportSpecular, <font class="keyword">const</font> CMatrix &invObjectWM);
00206
00210 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_4">changeVPLightSetupMaterial</a>(<font class="keyword">const</font> CMaterial &mat, <font class="keywordtype">bool</font> excludeStrongest);
00211
00212
00251 <font class="keyword">static</font> std::string <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_9">getLightVPFragment</a>(uint numActivePointLights, uint ctStart, <font class="keywordtype">bool</font> supportSpecular, <font class="keywordtype">bool</font> normalize);
00252
<a name="l00256"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z748_5">00256</a> <font class="keyword">const</font> CLight &<a class="code" href="classNL3D_1_1CRenderTrav.html#z748_5">getDriverLight</a>(sint <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)<font class="keyword"> const </font>
00257 <font class="keyword"> </font>{
00258 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> >= 0 && <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> < <a class="code" href="light__contribution_8h.html#a0">NL3D_MAX_LIGHT_CONTRIBUTION</a>+1);
00259 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_9">_DriverLight</a>[<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>];
00260 }
00261
00263 sint <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_6">getStrongestLightIndex</a>() <font class="keyword">const</font>;
00264
00269 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_7">getStrongestLightColors</a>(<a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> &diffuse, <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> &specular);
00270
<a name="l00274"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z748_8">00274</a> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z748_8">getNumVPLights</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_13">_VPNumLights</a>;}
00275
00276 <font class="comment">// @}</font>
00277
00278
00280 <font class="comment">// @{</font>
00281
<a name="l00283"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z749_0">00283</a> CMeshBlockManager <a class="code" href="classNL3D_1_1CRenderTrav.html#z749_0">MeshBlockManager</a>;
00284
00285 <font class="comment">// @}</font>
00286
00287 <font class="keyword">private</font>:
00288
00289 <font class="comment">// A grow only list of observers to be rendered.</font>
<a name="l00290"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o0">00290</a> std::vector<IBaseRenderObs*> <a class="code" href="classNL3D_1_1CRenderTrav.html#o0">RenderList</a>;
00291 <font class="comment">// Ordering Table to sort transparent objects</font>
<a name="l00292"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o1">00292</a> COrderingTable<IBaseRenderObs> <a class="code" href="classNL3D_1_1CRenderTrav.html#o1">OrderOpaqueList</a>;
<a name="l00293"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o2">00293</a> CLayeredOrderingTable<IBaseRenderObs> <a class="code" href="classNL3D_1_1CRenderTrav.html#o2">OrderTransparentList</a>;
00294
<a name="l00295"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o3">00295</a> IDriver *<a class="code" href="classNL3D_1_1CRenderTrav.html#o3">Driver</a>;
<a name="l00296"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o4">00296</a> CViewport <a class="code" href="classNL3D_1_1CRenderTrav.html#o4">_Viewport</a>;
00297
00298 <font class="comment">// Temporary for the render</font>
<a name="l00299"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o5">00299</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o5">_CurrentPassOpaque</a>;
<a name="l00300"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o6">00300</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#o6">_LayersRenderingOrder</a>;
00301
00302
00304 <font class="comment">// @{</font>
00305 <font class="comment">// The last setup.</font>
<a name="l00306"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_0">00306</a> CLightContribution *<a class="code" href="classNL3D_1_1CRenderTrav.html#z750_0">_CacheLightContribution</a>;
<a name="l00307"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_1">00307</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_1">_LastLocalAttenuation</a>;
00308 <font class="comment">// The number of light enabled</font>
<a name="l00309"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_2">00309</a> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_2">_NumLightEnabled</a>;
00310
00311 <font class="comment">// More precise setup</font>
<a name="l00312"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_3">00312</a> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_3">_LastSunFactor</a>;
<a name="l00313"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_4">00313</a> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_4">_LastSunAmbient</a>;
<a name="l00314"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_5">00314</a> CPointLight *<a class="code" href="classNL3D_1_1CRenderTrav.html#z750_5">_LastPointLight</a>[<a class="code" href="light__contribution_8h.html#a0">NL3D_MAX_LIGHT_CONTRIBUTION</a>];
<a name="l00315"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_6">00315</a> uint8 <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_6">_LastPointLightFactor</a>[<a class="code" href="light__contribution_8h.html#a0">NL3D_MAX_LIGHT_CONTRIBUTION</a>];
<a name="l00316"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_7">00316</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_7">_LastPointLightLocalAttenuation</a>[<a class="code" href="light__contribution_8h.html#a0">NL3D_MAX_LIGHT_CONTRIBUTION</a>];
00317
<a name="l00318"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_8">00318</a> CVector <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_8">_SunDirection</a>;
00319
00320 <font class="comment">// driver Lights setuped in changeLightSetup()</font>
<a name="l00321"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_9">00321</a> CLight <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_9">_DriverLight</a>[<a class="code" href="light__contribution_8h.html#a0">NL3D_MAX_LIGHT_CONTRIBUTION</a>+1];
00322
00323 <font class="comment">// index of the strongest light (when used)</font>
<a name="l00324"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_10">00324</a> <font class="keyword">mutable</font> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_10">_StrongestLightIndex</a>;
<a name="l00325"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_11">00325</a> <font class="keyword">mutable</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_11">_StrongestLightTouched</a>;
00326
00327 <font class="comment">// Current ctStart setuped with beginVPLightSetup()</font>
<a name="l00328"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_12">00328</a> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_12">_VPCurrentCtStart</a>;
00329 <font class="comment">// Current num of VP lights enabled.</font>
<a name="l00330"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_13">00330</a> uint <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_13">_VPNumLights</a>;
00331 <font class="comment">// Current support of specular</font>
<a name="l00332"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_14">00332</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_14">_VPSupportSpecular</a>;
00333 <font class="comment">// Sum of all ambiant of all lights + ambiantGlobal.</font>
<a name="l00334"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_15">00334</a> <a class="code" href="classNLMISC_1_1CRGBAF.html">NLMISC::CRGBAF</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_15">_VPFinalAmbient</a>;
00335 <font class="comment">// Diffuse/Spec comp of all light / 255.</font>
<a name="l00336"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_16">00336</a> <a class="code" href="classNLMISC_1_1CRGBAF.html">NLMISC::CRGBAF</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_16">_VPLightDiffuse</a>[<a class="code" href="classNL3D_1_1CRenderTrav.html#z748_0s0">MaxVPLight</a>];
<a name="l00337"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_17">00337</a> <a class="code" href="classNLMISC_1_1CRGBAF.html">NLMISC::CRGBAF</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_17">_VPLightSpecular</a>[<a class="code" href="classNL3D_1_1CRenderTrav.html#z748_0s0">MaxVPLight</a>];
00338
<a name="l00339"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_18">00339</a> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_18">_StrongestLightDiffuse</a>;
<a name="l00340"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_19">00340</a> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_19">_StrongestLightSpecular</a>;
00341
00342 <font class="comment">// Cache for changeVPLightSetupMaterial()</font>
<a name="l00343"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_20">00343</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_20">_VPMaterialCacheDirty</a>;
<a name="l00344"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_21">00344</a> uint32 <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_21">_VPMaterialCacheEmissive</a>;
<a name="l00345"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_22">00345</a> uint32 <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_22">_VPMaterialCacheAmbient</a>;
<a name="l00346"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_23">00346</a> uint32 <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_23">_VPMaterialCacheDiffuse</a>;
<a name="l00347"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_24">00347</a> uint32 <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_24">_VPMaterialCacheSpecular</a>;
<a name="l00348"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#z750_25">00348</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CRenderTrav.html#z750_25">_VPMaterialCacheShininess</a>;
00349
00350 <font class="comment">// @}</font>
00351
00352
<a name="l00354"></a><a class="code" href="classNL3D_1_1CRenderTrav.html#o7">00354</a> CMeshSkinManager *<a class="code" href="classNL3D_1_1CRenderTrav.html#o7">_MeshSkinManager</a>;
00355
00356 };
00357
00358
00359 }
00360
00361
00362 <font class="preprocessor">#endif // NL_RENDER_TRAV_H</font>
00363 <font class="preprocessor"></font>
00364 <font class="comment">/* End of render_trav.h */</font>
</pre></div>
<!-- footer -->
<BR><FONT Size=+5> </FONT>
</TD>
<TD WIDTH=15><IMG SRC=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|