aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02371.html
blob: 51fef9926765e13613c47e6cd9acbea1d5cfe23e (plain)
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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
<!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::CCoarseMeshManager class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CCoarseMeshManager Class Reference</h1><code>#include &lt;<a class="el" href="a05570.html">coarse_mesh_manager.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Management of coarse meshes.<p>
This container will render meshes with very low polygon count efficiently.<p>
All coarse meshes must use a common vertex format. It is a pos + UV vertex format. (NL3D_COARSEMESH_VERTEX_FORMAT_EXPORT)<p>
Internally the <a class="el" href="a02371.html">CCoarseMeshManager</a> store meshes with pos + UV + color vertex format, to color instances (NL3D_COARSEMESH_VERTEX_FORMAT_MGR)<p>
Coarse meshes must use indexed triangle primitive in a single render pass in a single matrix block.<p>
All coarse meshes musts use a single material. It is a simple mapping with alpha test rendering and a common texture.<p>
The coarse meshes must have been preprocessed to build the common texture and remap the UV mapping coordinates in the new common texture.<p>
The manager must have been setuped with the common texture.<p>
<dl compact><dt><b>Author:</b></dt><dd>Cyril 'Hulud' Corvazier, Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00085">85</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.<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>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera0">addMesh</a> (<a class="el" href="a04558.html#a15">uint</a> numVertices, const <a class="el" href="a04558.html#a7">uint8</a> *vBuffer, <a class="el" href="a04558.html#a15">uint</a> numTris, const <a class="el" href="a04558.html#a11">uint32</a> *indexBuffer)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera1">CCoarseMeshManager</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NL3D_1_1CCoarseMeshManagera1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera2">flushRender</a> (<a class="el" href="a02434.html">IDriver</a> *drv)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera3">getColorOff</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02839.html">CMaterial</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera4">getMaterial</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera5">getUVOff</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera6">getVertexSize</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the VertexSize of the MGR format.  <a href="#NL3D_1_1CCoarseMeshManagera6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera7">setTextureFile</a> (const char *<a class="el" href="a04115.html#a95">file</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set texture file to use with this coarse mesh.  <a href="#NL3D_1_1CCoarseMeshManagera7"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">_CurrentNumVertices</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02839.html">CMaterial</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr2">_Material</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">CSmartPtr</a>&lt; <a class="el" href="a03502.html">CTextureFile</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr3">_Texture</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a04558.html#a11">uint32</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr4">_Triangles</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03692.html">CVertexBuffer</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera1" doxytag="NL3D::CCoarseMeshManager::CCoarseMeshManager" ></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::CCoarseMeshManager::CCoarseMeshManager </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor. 
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera0" doxytag="NL3D::CCoarseMeshManager::addMesh" ></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::CCoarseMeshManager::addMesh </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>numVertices</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vBuffer</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>numTris</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a04558.html#a11">uint32</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>indexBuffer</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a coarse mesh in the manager. If an error occured, it returns CantAddCoarseMesh. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>vBuffer</em>&nbsp;</td><td>the VertexBuffer pre-transformed / Colored. Size MUST be numVertices*NL3D_COARSEMESH_VERTEX_FORMAT_MGR </td></tr>
    <tr><td valign=top><em>indexBuffer</em>&nbsp;</td><td>containing triangles that will be inserted. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>false if the mesh can't be added to this pass BECAUSE OF TOO MANY VERTICES or TOO MANY PRIMITIVES reason You may call <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagera2">flushRender()</a>, then restart a block. NB: if numVertices&gt;NL3D_COARSEMESH_VERTEXBUFFER_SIZE or if numTriangles&gt;NL3D_COARSEMESH_TRIANGLE_SIZE, it will always return false</dd></dl>

<p>
Definition at line <a class="el" href="a05569.html#l00084">84</a> of file <a class="el" href="a05569.html">coarse_mesh_manager.cpp</a>.
<p>
References <a class="el" href="a05570.html#l00126">_CurrentNumTriangles</a>, <a class="el" href="a05570.html#l00125">_CurrentNumVertices</a>, <a class="el" href="a05570.html#l00124">_Triangles</a>, <a class="el" href="a05570.html#l00123">_VBuffer</a>, <a class="el" href="a06710.html#l00438">NL3D::CVertexBuffer::getVertexCoordPointer()</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, <a class="el" href="a05788.html#l00064">H_AUTO_USE</a>, <a class="el" href="a05570.html#l00045">NL3D_COARSEMESH_TRIANGLE_SIZE</a>, <a class="el" href="a05570.html#l00043">NL3D_COARSEMESH_VERTEXBUFFER_SIZE</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00496">NL3D::CMeshMultiLod::renderCoarseMesh()</a>.
<p>
<div class="fragment"><pre>00085 {
00086         <a class="code" href="a04365.html#a7">H_AUTO_USE</a>( NL3D_StaticLod_AddMesh );
00087 
00088         <span class="comment">// if 0 mesh, quit</span>
00089         <span class="keywordflow">if</span>(numTris==0 || numVertices==0)
00090                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00091 
00092         <span class="comment">// check vertex size</span>
00093         <span class="keywordflow">if</span>(<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">_CurrentNumVertices</a> + numVertices &gt; <a class="code" href="a04147.html#a0">NL3D_COARSEMESH_VERTEXBUFFER_SIZE</a>)
00094                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00095 
00096         <span class="comment">// check tri size</span>
00097         <span class="keywordflow">if</span>(<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a> + numTris&gt; <a class="code" href="a04147.html#a1">NL3D_COARSEMESH_TRIANGLE_SIZE</a>)
00098                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00099         
00100         <span class="comment">// Copy Vertices to VBuffer</span>
00101         <a class="code" href="a04558.html#a15">uint</a>    baseVertex= <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">_CurrentNumVertices</a>;
00102         CFastMem::memcpy(<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a>.getVertexCoordPointer(baseVertex), vBuffer, numVertices*<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a>.getVertexSize());
00103         <span class="comment">// next</span>
00104         _CurrentNumVertices+= numVertices;
00105 
00106         <span class="comment">// Copy tris to triangles, adding baseVertex to index</span>
00107         <a class="code" href="a04558.html#a11">uint32</a>                  *triDst= &amp;<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr4">_Triangles</a>[<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a>*3];
00108         <span class="keyword">const</span> <a class="code" href="a04558.html#a11">uint32</a>    *triSrc= indexBuffer;
00109         <a class="code" href="a04558.html#a15">uint</a>    numIdx= numTris*3;
00110         <span class="comment">// NB: for the majority of CoarseMesh (4 faces==48 bytes of indices), not interressant to use CFastMem::precache()</span>
00111         <span class="keywordflow">for</span>(;numIdx&gt;0;numIdx--, triSrc++, triDst++)
00112         {
00113                 *triDst= *triSrc + baseVertex;
00114         }
00115         <span class="comment">// next</span>
00116         <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a>+= numTris;
00117 
00118         <span class="keywordflow">return</span> <span class="keyword">true</span>;
00119 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera2" doxytag="NL3D::CCoarseMeshManager::flushRender" ></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::CCoarseMeshManager::flushRender </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>drv</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Render the container
<p>
Definition at line <a class="el" href="a05569.html#l00123">123</a> of file <a class="el" href="a05569.html">coarse_mesh_manager.cpp</a>.
<p>
References <a class="el" href="a05570.html#l00126">_CurrentNumTriangles</a>, <a class="el" href="a05570.html#l00125">_CurrentNumVertices</a>, <a class="el" href="a05570.html#l00124">_Triangles</a>, <a class="el" href="a05570.html#l00123">_VBuffer</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, <a class="el" href="a05788.html#l00056">H_AUTO</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera56">NL3D::IDriver::renderTriangles()</a>, and <a class="el" href="a02434.html#NL3D_1_1IDrivera68">NL3D::IDriver::setupModelMatrix()</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00496">NL3D::CMeshMultiLod::renderCoarseMesh()</a>, and <a class="el" href="a06329.html#l00089">NL3D::CRenderTrav::traverse()</a>.
<p>
<div class="fragment"><pre>00124 {
00125         <a class="code" href="a04365.html#a4">H_AUTO</a>( NL3D_StaticLod_Render );
00126 
00127         <span class="comment">// If not empty, render</span>
00128         <span class="keywordflow">if</span>(<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">_CurrentNumVertices</a> &amp;&amp; <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a>)
00129         {
00130                 <span class="comment">// Set Ident matrix</span>
00131                 drv-&gt;setupModelMatrix (CMatrix::Identity);
00132 
00133                 <span class="comment">// Set VB</span>
00134                 drv-&gt;activeVertexBuffer(_VBuffer);
00135 
00136                 <span class="comment">// render</span>
00137                 drv-&gt;renderTriangles(_Material, &amp;_Triangles[0], _CurrentNumTriangles);
00138         }
00139 
00140         <span class="comment">// reset</span>
00141         <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">_CurrentNumVertices</a>= 0;
00142         <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">_CurrentNumTriangles</a>= 0;
00143 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera3" doxytag="NL3D::CCoarseMeshManager::getColorOff" ></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::CCoarseMeshManager::getColorOff </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00119">119</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
References <a class="el" href="a05570.html#l00123">_VBuffer</a>, <a class="el" href="a06711.html#l00340">NL3D::CVertexBuffer::getColorOff()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00496">NL3D::CMeshMultiLod::renderCoarseMesh()</a>.
<p>
<div class="fragment"><pre>00119 {<span class="keywordflow">return</span> (<a class="code" href="a04558.html#a15">uint</a>)<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a>.getColorOff();}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera4" doxytag="NL3D::CCoarseMeshManager::getMaterial" ></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="a02839.html">CMaterial</a>&amp; NL3D::CCoarseMeshManager::getMaterial </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get material of the container. For rendering purpose only.
<p>
Definition at line <a class="el" href="a05570.html#l00114">114</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00446">NL3D::CMeshMultiLod::renderMeshGeom()</a>.
<p>
<div class="fragment"><pre>00114 {<span class="keywordflow">return</span> <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr2">_Material</a>;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera5" doxytag="NL3D::CCoarseMeshManager::getUVOff" ></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::CCoarseMeshManager::getUVOff </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00118">118</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
References <a class="el" href="a05570.html#l00123">_VBuffer</a>, <a class="el" href="a06711.html#l00339">NL3D::CVertexBuffer::getTexCoordOff()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00496">NL3D::CMeshMultiLod::renderCoarseMesh()</a>.
<p>
<div class="fragment"><pre>00118 {<span class="keywordflow">return</span> (<a class="code" href="a04558.html#a15">uint</a>)<a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a>.getTexCoordOff(0);}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera6" doxytag="NL3D::CCoarseMeshManager::getVertexSize" ></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::CCoarseMeshManager::getVertexSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get the VertexSize of the MGR format. 
<p>

<p>
Definition at line <a class="el" href="a05570.html#l00117">117</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
References <a class="el" href="a05570.html#l00123">_VBuffer</a>, <a class="el" href="a06711.html#l00473">NL3D::CVertexBuffer::getVertexSize()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06016.html#l00740">NL3D::CMeshMultiLod::instanciateCoarseMeshSpace()</a>, and <a class="el" href="a06016.html#l00496">NL3D::CMeshMultiLod::renderCoarseMesh()</a>.
<p>
<div class="fragment"><pre>00117 {<span class="keywordflow">return</span> <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">_VBuffer</a>.getVertexSize();}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagera7" doxytag="NL3D::CCoarseMeshManager::setTextureFile" ></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::CCoarseMeshManager::setTextureFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>file</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set texture file to use with this coarse mesh. 
<p>

<p>
Definition at line <a class="el" href="a05569.html#l00077">77</a> of file <a class="el" href="a05569.html">coarse_mesh_manager.cpp</a>.
<p>
References <a class="el" href="a05538.html#l02654">file</a>.
<p>
Referenced by <a class="el" href="a06348.html#l00134">NL3D::CScene::CScene()</a>, and <a class="el" href="a06352.html#l00194">NL3D::CSceneUser::setCoarseMeshManagerTexture()</a>.
<p>
<div class="fragment"><pre>00078 {
00079         <a class="code" href="a02371.html#NL3D_1_1CCoarseMeshManagerr3">_Texture</a>-&gt;setFileName (file);
00080 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr0" doxytag="NL3D::CCoarseMeshManager::_CurrentNumTriangles" ></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> <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr0">NL3D::CCoarseMeshManager::_CurrentNumTriangles</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00126">126</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
Referenced by <a class="el" href="a05569.html#l00084">addMesh()</a>, and <a class="el" href="a05569.html#l00123">flushRender()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr1" doxytag="NL3D::CCoarseMeshManager::_CurrentNumVertices" ></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> <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr1">NL3D::CCoarseMeshManager::_CurrentNumVertices</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00125">125</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
Referenced by <a class="el" href="a05569.html#l00084">addMesh()</a>, and <a class="el" href="a05569.html#l00123">flushRender()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr2" doxytag="NL3D::CCoarseMeshManager::_Material" ></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="a02839.html">CMaterial</a> <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr2">NL3D::CCoarseMeshManager::_Material</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00132">132</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr3" doxytag="NL3D::CCoarseMeshManager::_Texture" ></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="a03408.html">CSmartPtr</a>&lt;<a class="el" href="a03502.html">CTextureFile</a>&gt; <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr3">NL3D::CCoarseMeshManager::_Texture</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00129">129</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr4" doxytag="NL3D::CCoarseMeshManager::_Triangles" ></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"> std::vector&lt;<a class="el" href="a04558.html#a11">uint32</a>&gt; <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr4">NL3D::CCoarseMeshManager::_Triangles</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00124">124</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
Referenced by <a class="el" href="a05569.html#l00084">addMesh()</a>, and <a class="el" href="a05569.html#l00123">flushRender()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCoarseMeshManagerr5" doxytag="NL3D::CCoarseMeshManager::_VBuffer" ></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="a03692.html">CVertexBuffer</a> <a class="el" href="a02371.html#NL3D_1_1CCoarseMeshManagerr5">NL3D::CCoarseMeshManager::_VBuffer</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05570.html#l00123">123</a> of file <a class="el" href="a05570.html">coarse_mesh_manager.h</a>.
<p>
Referenced by <a class="el" href="a05569.html#l00084">addMesh()</a>, <a class="el" href="a05569.html#l00123">flushRender()</a>, <a class="el" href="a05570.html#l00119">getColorOff()</a>, <a class="el" href="a05570.html#l00118">getUVOff()</a>, and <a class="el" href="a05570.html#l00117">getVertexSize()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05570.html">coarse_mesh_manager.h</a><li><a class="el" href="a05569.html">coarse_mesh_manager.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:45:24 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>