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
|
<!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='/'><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>coarse_mesh_manager.h</h1><a href="coarse__mesh__manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
00007 <font class="comment">/* Copyright, 2001 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_COARSE_MESH_MANAGER_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_COARSE_MESH_MANAGER_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="rgba_8h.html">nel/misc/rgba.h</a>"</font>
00031
00032 <font class="preprocessor">#include "<a class="code" href="transform_8h.html">3d/transform.h</a>"</font>
00033 <font class="preprocessor">#include "<a class="code" href="material_8h.html">3d/material.h</a>"</font>
00034 <font class="preprocessor">#include "<a class="code" href="3d_2primitive__block_8h.html">3d/primitive_block.h</a>"</font>
00035 <font class="preprocessor">#include "<a class="code" href="vertex__buffer_8h.html">3d/vertex_buffer.h</a>"</font>
00036
00037 <font class="keyword">namespace </font>NL3D
00038 {
00039
00040 <font class="comment">// ***************************************************************************</font>
00041
<a name="l00042"></a><a class="code" href="coarse__mesh__manager_8h.html#a0">00042</a> <font class="preprocessor">#define NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY_SHIFT 3</font>
<a name="l00043"></a><a class="code" href="coarse__mesh__manager_8h.html#a1">00043</a> <font class="preprocessor"></font><font class="preprocessor">#define NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY_MASK (NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY-1)</font>
<a name="l00044"></a><a class="code" href="coarse__mesh__manager_8h.html#a2">00044</a> <font class="preprocessor"></font><font class="preprocessor">#define NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY (1<<NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY_SHIFT)</font>
<a name="l00045"></a><a class="code" href="coarse__mesh__manager_8h.html#a3">00045</a> <font class="preprocessor"></font><font class="preprocessor">#define NL3D_COARSEMESH_VERTEXBUFFER_RESERVE 10</font>
00046 <font class="preprocessor"></font><font class="comment">// The vertex Format used by the coarseMesh manager</font>
<a name="l00047"></a><a class="code" href="coarse__mesh__manager_8h.html#a4">00047</a> <font class="preprocessor">#define NL3D_COARSEMESH_VERTEX_FORMAT_MGR (CVertexBuffer::PositionFlag|CVertexBuffer::TexCoord0Flag|CVertexBuffer::PrimaryColorFlag)</font>
00048 <font class="preprocessor"></font><font class="comment">// The Vertex Format used for export CoarseMesh. MUST NOT HAVE color (important for material coloring/alphaTrans)</font>
<a name="l00049"></a><a class="code" href="coarse__mesh__manager_8h.html#a5">00049</a> <font class="preprocessor">#define NL3D_COARSEMESH_VERTEX_FORMAT_EXPORT (CVertexBuffer::PositionFlag|CVertexBuffer::TexCoord0Flag)</font>
<a name="l00050"></a><a class="code" href="coarse__mesh__manager_8h.html#a6">00050</a> <font class="preprocessor"></font><font class="preprocessor">#define NL3D_COARSEMESH_PRIMITIVE_BLOCK_SIZE 100</font>
00051 <font class="preprocessor"></font>
00052 <font class="comment">// ***************************************************************************</font>
00053
00054 <font class="keyword">class </font>CMeshGeom;
00055 <font class="keyword">class </font>CTransformShape;
00056 <font class="keyword">class </font>CTextureFile;
00057
00058 <font class="comment">// ***************************************************************************</font>
00059
00060 <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CClassId.html">NLMISC::CClassId</a> <a class="code" href="namespaceNL3D.html#a27">CoarseMeshManagerId</a>=<a class="code" href="classNLMISC_1_1CClassId.html">NLMISC::CClassId</a>(0x77554f87, 0x5bb373d8);
00061
00062 <font class="comment">// ***************************************************************************</font>
00063
<a name="l00103"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html">00103</a> <font class="keyword">class </font>CCoarseMeshManager : <font class="keyword">public</font> CTransform
00104 {
00105 <font class="keyword">public</font>:
00106
00107 <font class="keyword">enum</font>
00108 {
00109 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#s1s0">CantAddCoarseMesh</a> = 0xffffffff
00110 };
00111
00113 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a0">CCoarseMeshManager</a> ();
00114
00116 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a1">setTextureFile</a> (<font class="keyword">const</font> <font class="keywordtype">char</font>* <a class="code" href="cf__lexical_8cpp.html#a95">file</a>);
00117
00122 uint64 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a2">addMesh</a> (<font class="keyword">const</font> CMeshGeom& geom);
00123
00127 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a3">removeMesh</a> (uint64 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>);
00128
00132 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a4">setMatrixMesh</a> (uint64 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, <font class="keyword">const</font> CMeshGeom& geom, <font class="keyword">const</font> CMatrix& <a class="code" href="driver__opengl__extension__def_8h.html#a370">matrix</a>);
00133
00137 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a5">setColorMesh</a> (uint64 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, <font class="keyword">const</font> CMeshGeom& geom, <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color);
00138
00142 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a6">render</a> (IDriver *drv);
00143
00147 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#d0">registerBasic</a>();
00148
<a name="l00152"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a7">00152</a> CMaterial &<a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a7">getMaterial</a>() {<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o2">_Material</a>;}
00153
00154 <font class="keyword">private</font>:
00155
<a name="l00159"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f0">00159</a> <font class="keyword">static</font> uint64 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f0">buildId</a> (uint32 renderPassId, uint32 renderPassMeshId)
00160 {
00161 <font class="keywordflow">return</font> ((uint64)renderPassId|(((uint64)renderPassMeshId)<<32));
00162 }
00163
<a name="l00167"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f1">00167</a> <font class="keyword">static</font> uint32 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f1">getRenderPassId</a> (uint64 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>)
00168 {
00169 <font class="keywordflow">return</font> (uint32)(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>&0xFFFFFFFF);
00170 }
00171
<a name="l00175"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f2">00175</a> <font class="keyword">static</font> uint32 <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f2">getRenderPassMeshId</a> (uint64 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>)
00176 {
00177 <font class="keywordflow">return</font> (uint32)(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>>>32);
00178 }
00179
<a name="l00180"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html">00180</a> <font class="keyword">class </font>CRenderPass
00181 {
00182 <font class="keyword">public</font>:
00183 <font class="keyword">enum</font>
00184 {
00185 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#s1s0">CantAddMesh</a> = 0xffffffff
00186 };
00187
00191 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a0">init</a> (uint blockSize);
00192
00196 uint32 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a1">addMesh</a> (<font class="keyword">const</font> CMeshGeom& geom);
00197
00201 uint <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a2">getTriCount</a> (<font class="keyword">const</font> CMeshGeom& geom);
00202
00206 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a3">removeMesh</a> (uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>);
00207
00211 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a4">setMatrixMesh</a> (uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, <font class="keyword">const</font> CMeshGeom& geom, <font class="keyword">const</font> CMatrix& <a class="code" href="driver__opengl__extension__def_8h.html#a370">matrix</a>);
00212
00216 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a5">setColorMesh</a> (uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, uint nVertices, <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color);
00217
00221 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#a6">render</a> (IDriver *drv, CMaterial& mat);
00222 <font class="keyword">private</font>:
00223
<a name="l00227"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f0">00227</a> <font class="keyword">static</font> uint32 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f0">buildId</a> (uint16 primitiveBlockId, uint16 vertexBufferId)
00228 {
00229 <font class="keywordflow">return</font> ((uint32)primitiveBlockId|(((uint32)vertexBufferId)<<16));
00230 }
00231
<a name="l00235"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f1">00235</a> <font class="keyword">static</font> uint16 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f1">getPrimitiveblockId</a> (uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>)
00236 {
00237 <font class="keywordflow">return</font> (uint16)(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> & 0xFFFF);
00238 }
00239
<a name="l00243"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f2">00243</a> <font class="keyword">static</font> uint16 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#f2">getVertexBufferId</a> (uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>)
00244 {
00245 <font class="keywordflow">return</font> (uint16)(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>>>16);
00246 }
00247
<a name="l00251"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html">00251</a> <font class="keyword">class </font>CPrimitiveBlockInfo
00252 {
00253 <font class="keyword">public</font>:
00254 <font class="keyword">enum</font>
00255 {
00256 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#s2s0">Failed</a> = 0,
00257 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#s2s1">Success</a> = 1,
00258 };
00259
00263 uint <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#a0">addMesh</a> (uint16 vertexBufferId, <font class="keyword">const</font> CMeshGeom& geom, uint32 firstVertexIndex, uint triCount);
00264
00268 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#a1">removeMesh</a> (uint16 vertexBufferId);
00269
<a name="l00271"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html">00271</a> <font class="keyword">class </font>CMeshInfo
00272 {
00273 <font class="keyword">public</font>:
<a name="l00275"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#a0">00275</a> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#a0">CMeshInfo</a> (uint <a class="code" href="driver__opengl__extension__def_8h.html#a378">offset</a>, uint length, uint16 vertexBufferId)
00276 {
00277 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m0">Offset</a>=<a class="code" href="driver__opengl__extension__def_8h.html#a378">offset</a>;
00278 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m1">Length</a>=length;
00279 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m2">VertexBufferId</a>=vertexBufferId;
00280 }
00281
<a name="l00283"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m0">00283</a> uint <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m0">Offset</a>;
00284
<a name="l00286"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m1">00286</a> uint <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m1">Length</a>;
00287
<a name="l00289"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m2">00289</a> uint16 <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo_1_1CMeshInfo.html#m2">VertexBufferId</a>;
00290 };
00291
00293 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#a2">init</a> (uint size);
00294
<a name="l00296"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#m0">00296</a> CPrimitiveBlock <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#m0">PrimitiveBlock</a>;
00297
<a name="l00299"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#m1">00299</a> <a class="code" href="classstd_1_1list.html">std::list< CMeshInfo ></a> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass_1_1CPrimitiveBlockInfo.html#m1">MeshIdList</a>;
00300 };
00301
<a name="l00302"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o0">00302</a> uint <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o0">VBlockSize</a>;
<a name="l00303"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o1">00303</a> CVertexBuffer <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o1">VBuffer</a>;
<a name="l00304"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o2">00304</a> <a class="code" href="classstd_1_1list.html">std::list< uint16 ></a> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o2">FreeVBlock</a>;
<a name="l00305"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o3">00305</a> <a class="code" href="classstd_1_1list.html">std::list< CPrimitiveBlockInfo ></a> <a class="code" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html#o3">PrimitiveBlockInfoList</a>;
00306 };
00307
00308 <font class="comment">// Indexes allocation</font>
<a name="l00309"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#u0">00309</a> <font class="keyword">typedef</font> std::map< uint, CRenderPass > <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#u0">TRenderingPassMap</a>;
<a name="l00310"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o0">00310</a> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#u0">TRenderingPassMap</a> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o0">_RenderPass</a>;
00311
00312 <font class="comment">// The unique texture used by all the coarse object inserted in the container.</font>
<a name="l00313"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o1">00313</a> CSmartPtr<CTextureFile> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o1">_Texture</a>;
00314
00315 <font class="comment">// The unique material used by all the coarse object inserted in the container.</font>
<a name="l00316"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o2">00316</a> CMaterial <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#o2">_Material</a>;
00317
<a name="l00318"></a><a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f3">00318</a> <font class="keyword">static</font> <a class="code" href="classNL3D_1_1IModel.html#b0">IModel</a> *<a class="code" href="classNL3D_1_1CCoarseMeshManager.html#f3">creator</a>() {<font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNL3D_1_1CCoarseMeshManager.html#a0">CCoarseMeshManager</a>;}
00319 };
00320
00321 <font class="comment">// ***************************************************************************</font>
00322
<a name="l00328"></a><a class="code" href="classNL3D_1_1CCoarseMeshClipObs.html">00328</a> <font class="keyword">class </font>CCoarseMeshClipObs : <font class="keyword">public</font> CTransformClipObs
00329 {
00330 <font class="keyword">public</font>:
00331
00333 <font class="comment">// @{</font>
00334 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CCoarseMeshClipObs.html#z398_0">clip</a>(<a class="code" href="classNL3D_1_1IBaseClipObs.html#a0">IBaseClipObs</a> *caller);
00335 <font class="comment">// @}</font>
00336
00337 <font class="comment">// The creator.</font>
<a name="l00338"></a><a class="code" href="classNL3D_1_1CCoarseMeshClipObs.html#d0">00338</a> <font class="keyword">static</font> <a class="code" href="classNL3D_1_1IObs.html#a0">IObs</a> *<a class="code" href="classNL3D_1_1CCoarseMeshClipObs.html#d0">creator</a>() {<font class="keywordflow">return</font> <font class="keyword">new</font> CCoarseMeshClipObs;}
00339 };
00340
00341 } <font class="comment">// NL3D</font>
00342
00343
00344 <font class="preprocessor">#endif // NL_COARSE_MESH_MANAGER_H</font>
00345 <font class="preprocessor"></font>
00346 <font class="comment">/* End of coarse_mesh_manager.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>
|