aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/vertex__buffer_8h-source.html
blob: 80b2a4fa4d3ff3db474adc7a0c4ed3a0769adc3b (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
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
<!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>&nbsp;<A CLASS=uplinks HREF='/'><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF='/'><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="/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>
&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="/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:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
<hr><h1>vertex_buffer.h</h1><a href="vertex__buffer_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_VERTEX_BUFFER_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_VERTEX_BUFFER_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="smart__ptr_8h.html">nel/misc/smart_ptr.h</a>"</font>
00031 <font class="preprocessor">#include "<a class="code" href="rgba_8h.html">nel/misc/rgba.h</a>"</font>
00032 <font class="preprocessor">#include "<a class="code" href="vector_8h.html">nel/misc/vector.h</a>"</font>
00033 <font class="preprocessor">#include "<a class="code" href="vectord_8h.html">nel/misc/vectord.h</a>"</font>
00034 <font class="preprocessor">#include "<a class="code" href="debug_8h.html">nel/misc/debug.h</a>"</font>
00035 <font class="preprocessor">#include "<a class="code" href="uv_8h.html">nel/misc/uv.h</a>"</font>
00036 <font class="preprocessor">#include &lt;vector&gt;</font>
00037 <font class="preprocessor">#include &lt;list&gt;</font>
00038 
00039 <font class="keyword">namespace </font>NLMISC 
00040 {
00041         <font class="keyword">class </font>CUV;
00042 }
00043 
00044 
00045 <font class="keyword">namespace </font>NL3D 
00046 {
00047 
00048 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CRefCount.html">NLMISC::CRefCount</a>;
00049 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CRefPtr.html">NLMISC::CRefPtr</a>;
00050 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a>;
00051 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>;
00052 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>;
00053 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CUV.html">NLMISC::CUV</a>;
00054 
00055 
00056 <font class="keyword">class   </font>IDriver;
00057 
00058 <font class="comment">// --------------------------------------------------</font>
00059 
00060 
00061 <font class="comment">// List typedef.</font>
00062 <font class="keyword">class   </font>IVBDrvInfos;
00063 <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list&lt;IVBDrvInfos*&gt;</a>                 <a class="code" href="namespaceNL3D.html#a294">TVBDrvInfoPtrList</a>;
00064 <font class="keyword">typedef</font> TVBDrvInfoPtrList::iterator             <a class="code" href="namespaceNL3D.html#a295">ItVBDrvInfoPtrList</a>;
00065 
00066 
00067 <font class="comment">// *** IMPORTANT ********************</font>
00068 <font class="comment">// *** IF YOU MODIFY THE STRUCTURE OF THIS CLASS, PLEASE INCREMENT IDriver::InterfaceVersion TO INVALIDATE OLD DRIVER DLL</font>
00069 <font class="comment">// **********************************</font>
<a name="l00070"></a><a class="code" href="classNL3D_1_1IVBDrvInfos.html">00070</a> <font class="keyword">class </font>IVBDrvInfos : <font class="keyword">public</font> CRefCount
00071 {
00072 <font class="keyword">private</font>:
<a name="l00073"></a><a class="code" href="classNL3D_1_1IVBDrvInfos.html#o0">00073</a>         IDriver                         *<a class="code" href="classNL3D_1_1IVBDrvInfos.html#o0">_Driver</a>;
<a name="l00074"></a><a class="code" href="classNL3D_1_1IVBDrvInfos.html#o1">00074</a>         <a class="code" href="namespaceNL3D.html#a295">ItVBDrvInfoPtrList</a>      <a class="code" href="classNL3D_1_1IVBDrvInfos.html#o1">_DriverIterator</a>;
00075 
00076 <font class="keyword">public</font>:
<a name="l00077"></a><a class="code" href="classNL3D_1_1IVBDrvInfos.html#a0">00077</a>         <a class="code" href="classNL3D_1_1IVBDrvInfos.html#a0">IVBDrvInfos</a>(IDriver     *drv, <a class="code" href="namespaceNL3D.html#a295">ItVBDrvInfoPtrList</a> it) {<a class="code" href="classNL3D_1_1IVBDrvInfos.html#o0">_Driver</a>= drv; <a class="code" href="classNL3D_1_1IVBDrvInfos.html#o1">_DriverIterator</a>= it;}
00078         <font class="comment">// The virtual dtor is important.</font>
00079         <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1IVBDrvInfos.html#a1">~IVBDrvInfos</a>();
00080 };
00081 
00082 
00083 <font class="comment">// ***************************************************************************</font>
<a name="l00087"></a><a class="code" href="structNL3D_1_1CPaletteSkin.html">00087</a> <font class="comment"></font><font class="keyword">struct  </font>CPaletteSkin
00088 {
<a name="l00089"></a><a class="code" href="structNL3D_1_1CPaletteSkin.html#m0">00089</a>         uint8   <a class="code" href="structNL3D_1_1CPaletteSkin.html#m0">MatrixId</a>[4];
00090 
00091         <font class="keywordtype">void</font>    <a class="code" href="structNL3D_1_1CPaletteSkin.html#a0">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f);
00092 };
00093 
00094 <font class="comment">// ***************************************************************************</font>
00095 
00100 <font class="comment">/* *** IMPORTANT ********************</font>
00101 <font class="comment"> * *** IF YOU MODIFY THE STRUCTURE OF THIS CLASS, PLEASE INCREMENT IDriver::InterfaceVersion TO INVALIDATE OLD DRIVER DLL</font>
00102 <font class="comment"> * **********************************</font>
00103 <font class="comment"> */</font>
00104 <font class="comment">// All these flags are similar to DX8</font>
<a name="l00105"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html">00105</a> <font class="keyword">class </font>CVertexBuffer : <font class="keyword">public</font> CRefCount
00106 {
00107 <font class="keyword">public</font>:
00108 
<a name="l00112"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">00112</a>         <font class="keyword">enum</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a>
00113         { 
00114                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s0">Position</a>                =0, 
00115                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s1">Normal</a>                  =1, 
00116                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>               =2,
00117                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s3">TexCoord1</a>               =3, 
00118                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s4">TexCoord2</a>               =4,
00119                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s5">TexCoord3</a>               =5, 
00120                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s6">TexCoord4</a>               =6, 
00121                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s7">TexCoord5</a>               =7, 
00122                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s8">TexCoord6</a>               =8, 
00123                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s9">TexCoord7</a>               =9,
00124                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s10">PrimaryColor</a>    =10, 
00125                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s11">SecondaryColor</a>  =11, 
00126                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s12">Weight</a>                  =12,
00127                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>             =13,
00128                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s14">Fog</a>                             =14, 
00129                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s15">Empty</a>                   =15,
00130                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>                =16
00131         };
00132 
00136         <font class="keyword">enum</font>
00137         {
00138                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s52s17">FirstTexCoordValue</a> = <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>,
00139                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s52s18">LastTexCoordValue</a>  = <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s9">TexCoord7</a>,         
00140         };
00141 
00145         <font class="keyword">enum</font> 
00146         {
00147                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s19">PositionFlag</a>            =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s0">Position</a>, 
00148                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s20">NormalFlag</a>                      =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s1">Normal</a>, 
00149                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s21">TexCoord0Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>, 
00150                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s22">TexCoord1Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s3">TexCoord1</a>, 
00151                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s23">TexCoord2Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s4">TexCoord2</a>, 
00152                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s24">TexCoord3Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s5">TexCoord3</a>, 
00153                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s25">TexCoord4Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s6">TexCoord4</a>, 
00154                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s26">TexCoord5Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s7">TexCoord5</a>, 
00155                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s27">TexCoord6Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s8">TexCoord6</a>, 
00156                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s28">TexCoord7Flag</a>           =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s9">TexCoord7</a>,
00157                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s29">PrimaryColorFlag</a>        =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s10">PrimaryColor</a>, 
00158                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s30">SecondaryColorFlag</a>      =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s11">SecondaryColor</a>, 
00159                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s31">WeightFlag</a>                      =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s12">Weight</a>,
00160                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s32">PaletteSkinFlag</a>         =       (1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>)|(1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s12">Weight</a>),
00161                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s33">FogFlag</a>                         =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s14">Fog</a>, 
00162                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s34">EmptyFlag</a>                       =       1&lt;&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s15">Empty</a>,
00163         };
00164 
00165         
00166 
<a name="l00170"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#s54">00170</a>         <font class="keyword">enum</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54">TType</a>
00171         { 
00172                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s35">Double1</a>=0, 
00173                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s36">Float1</a>, 
00174                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s37">Short1</a>, 
00175                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s38">Double2</a>, 
00176                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s39">Float2</a>, 
00177                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s40">Short2</a>, 
00178                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s41">Double3</a>, 
00179                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>, 
00180                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s43">Short3</a>,
00181                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>, 
00182                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>, 
00183                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s46">Short4</a>,
00184                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s47">UChar4</a>,
00185                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s48">NumType</a>
00186         };
00187 
00191         <font class="keyword">enum</font>
00192         {
00193                 <font class="comment">// Max count of texture coordinates</font>
00194                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s55s49">MaxStage</a> = 8,
00195 
00196                 <font class="comment">// Max count of skinning weight</font>
00197                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#s55s50">MaxWeight</a> = 4,
00198         };
00199 
00203         <font class="keyword">static</font> <font class="keyword">const</font> uint <a class="code" href="classNL3D_1_1CVertexBuffer.html#p0">SizeType</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s48">NumType</a>];
00204 
00208         <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54">TType</a> <a class="code" href="classNL3D_1_1CVertexBuffer.html#p1">DefaultValueType</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>];
00209 
00213         <font class="keyword">static</font> <font class="keyword">const</font> uint  <a class="code" href="classNL3D_1_1CVertexBuffer.html#p2">NumComponentsType</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s48">NumType</a>];
00214 
00215 <font class="keyword">private</font>:
00216 
00220         <font class="keyword">enum</font>
00221         {
00223                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#u3u0">TouchedVertexFormat</a>             = 1,
00224 
00226                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#u3u1">TouchedNumVertices</a>              = 2,
00227 
00229                 <a class="code" href="classNL3D_1_1CVertexBuffer.html#u3u2">TouchedAll</a>                              = 0xFFFF
00230         };
00231 
00232         <font class="comment">// Type of data stored in each value</font>
<a name="l00233"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">00233</a>         uint8                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>];        <font class="comment">// Offset 0 : aligned</font>
<a name="l00234"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o1">00234</a>         uint8                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#o1">_Pad</a>;                           <font class="comment">// Offset 13 : aligned</font>
00235 
00236         <font class="comment">// Size of the vertex (sum of the size of each value</font>
<a name="l00237"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">00237</a>         uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>;            <font class="comment">// Offset 14 : aligned</font>
00238 
00239         <font class="comment">// Flags: bit #n is 1 if the value #n is used</font>
<a name="l00240"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">00240</a>         uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a>;                         <font class="comment">// Offset 16 : aligned</font>
00241 
00242         <font class="comment">// Internal flags</font>
<a name="l00243"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o4">00243</a>         uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o4">_InternalFlags</a>;         <font class="comment">// Offset 18 : aligned</font>
00244 
00245         <font class="comment">// Vertex count in the buffer</font>
<a name="l00246"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o5">00246</a>         uint32                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o5">_NbVerts</a>;                       <font class="comment">// Offset 20 : aligned</font>
00247 
00248         <font class="comment">// Capacity of the buffer</font>
<a name="l00249"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o6">00249</a>         uint32                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o6">_Capacity</a>;
00250 
00251         <font class="comment">// Vertex array</font>
<a name="l00252"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">00252</a>         std::vector&lt;uint8&gt;              <a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>;
00253 
00254         <font class="comment">// Offset of each value</font>
<a name="l00255"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">00255</a>         uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>];
00256 
00257 <font class="keyword">public</font>:
00258         <font class="comment">// \name Private. For Driver only.</font>
00259         <font class="comment">// @{</font>
<a name="l00260"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_2">00260</a>         CRefPtr&lt;IVBDrvInfos&gt;    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_2">DrvInfos</a>;
<a name="l00261"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_0">00261</a>         uint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_0">getTouchFlags</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o4">_InternalFlags</a>&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#u3u2">TouchedAll</a>; }
<a name="l00262"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_1">00262</a>         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z898_1">resetTouchFlags</a>() {<a class="code" href="classNL3D_1_1CVertexBuffer.html#o4">_InternalFlags</a> &amp;= ~<a class="code" href="classNL3D_1_1CVertexBuffer.html#u3u2">TouchedAll</a>;}
00263         <font class="comment">// @}</font>
00264 
00265 <font class="keyword">public</font>:
00266 
00270         <a class="code" href="classNL3D_1_1CVertexBuffer.html#a0">CVertexBuffer</a>(<font class="keywordtype">void</font>);
00271 
00276         <a class="code" href="classNL3D_1_1CVertexBuffer.html#a0">CVertexBuffer</a>(<font class="keyword">const</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#a0">CVertexBuffer</a> &amp;vb);
00277 
00281         <a class="code" href="classNL3D_1_1CVertexBuffer.html#a2">~CVertexBuffer</a>(<font class="keywordtype">void</font>);
00282 
00287         <a class="code" href="classNL3D_1_1CVertexBuffer.html#a0">CVertexBuffer</a>                   &amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#a3">operator=</a>(<font class="keyword">const</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#a0">CVertexBuffer</a> &amp;vb);
00288 
00293         <font class="comment">// @{</font>
00294 
00304                 <font class="keywordtype">bool</font>                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_0">setVertexFormat</a> (uint32 Flags);
00305 
<a name="l00315"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_1">00315</a>                 uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_1">getVertexFormat</a> (<font class="keywordtype">void</font>)<font class="keyword"> const  </font>{ <font class="keywordflow">return</font>(_Flags); };
00316 
00317 
00319                 uint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_2">getNumTexCoordUsed</a>() <font class="keyword">const</font>;
00320 
00321                 <font class="comment">// It is an error (assert) to set a vertex component if not setuped in setVertexFormat().</font>
00322                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_3">setVertexCoord</a>(uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>);
00323                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_3">setVertexCoord</a>(uint idx, <font class="keyword">const</font> CVector &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>);
00324                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_5">setNormalCoord</a>(uint idx, <font class="keyword">const</font> CVector &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>);
00325                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_6">setTexCoord</a>(uint idx, uint8 stage, <font class="keywordtype">float</font> u, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>);
00326                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_6">setTexCoord</a>(uint idx, uint8 stage, <font class="keyword">const</font> CUV &amp;uv);
00327                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_8">setColor</a>(uint idx, CRGBA rgba);
00328                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_9">setSpecular</a>(uint idx, CRGBA rgba);
00329                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_10">setWeight</a>(uint idx, uint8 wgt, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>);
00330                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_11">setPaletteSkin</a>(uint idx, CPaletteSkin ps);
00331 
00332                 <font class="comment">// It is an error (assert) to query a vertex offset of a vertex component not setuped in setVertexFormat().</font>
00333                 <font class="comment">// NB: The Vertex offset is always 0.</font>
<a name="l00334"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_12">00334</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_12">getNormalOff</a>()<font class="keyword"> const </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s20">NormalFlag</a>); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s1">Normal</a>];}
<a name="l00335"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_13">00335</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_13">getTexCoordOff</a>(uint8 stage=0)<font class="keyword"> const  </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s21">TexCoord0Flag</a>&lt;&lt;stage)); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>+stage]; }
<a name="l00336"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_14">00336</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_14">getColorOff</a>()<font class="keyword"> const </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s29">PrimaryColorFlag</a>); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s10">PrimaryColor</a>];}
<a name="l00337"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_15">00337</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_15">getSpecularOff</a>()<font class="keyword"> const </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s30">SecondaryColorFlag</a>); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s11">SecondaryColor</a>];}
<a name="l00339"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_16">00339</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_16">getWeightOff</a>(sint wgt)<font class="keyword"> const </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s31">WeightFlag</a>); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s12">Weight</a>]+(wgt*<font class="keyword">sizeof</font>(float));}
<a name="l00340"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_17">00340</a>                 sint                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_17">getPaletteSkinOff</a>()<font class="keyword"> const </font>{<a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>];}
00341 
00351                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_18">getVertexCoordPointer</a>(uint idx=0);
00352                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_19">getNormalCoordPointer</a>(uint idx=0);
00353                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_20">getTexCoordPointer</a>(uint idx=0, uint8 stage=0);
00354                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_21">getColorPointer</a>(uint idx=0);
00355                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_22">getSpecularPointer</a>(uint idx=0);
00356                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_23">getWeightPointer</a>(uint idx=0, uint8 wgt=0);
00357                 <font class="keywordtype">void</font>*                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_24">getPaletteSkinPointer</a>(uint idx=0);
00358 
00359                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_18">getVertexCoordPointer</a>(uint idx=0) <font class="keyword">const</font> ;
00360                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_19">getNormalCoordPointer</a>(uint idx=0) <font class="keyword">const</font> ;
00361                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_20">getTexCoordPointer</a>(uint idx=0, uint8 stage=0) <font class="keyword">const</font> ;
00362                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_21">getColorPointer</a>(uint idx=0) <font class="keyword">const</font> ;
00363                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_22">getSpecularPointer</a>(uint idx=0) <font class="keyword">const</font> ;
00364                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_23">getWeightPointer</a>(uint idx=0, uint8 wgt=0) <font class="keyword">const</font> ;
00365                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                             <a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_24">getPaletteSkinPointer</a>(uint idx=0) <font class="keyword">const</font> ;
00366         <font class="comment">// @}</font>
00367 
00373         <font class="comment">// @{</font>
00374 
00381                 <font class="keyword">static</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a>           <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_22">getValueIdByNumberEx</a> (uint valueNumber);
00382 
00387                 <font class="keywordtype">void</font>                            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_0">clearValueEx</a> ();                
00388 
00395                 <font class="keywordtype">void</font>                            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_1">addValueEx</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54">TType</a> <a class="code" href="driver__opengl__extension__def_8h.html#a373">type</a>);
00396 
00398                 <font class="keywordtype">bool</font>                            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_2">hasValueEx</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId) <font class="keyword">const</font>;               
00399 
00403                 <font class="keywordtype">void</font>                            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_3">initEx</a> ();
00404 
00408                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_4">setValueDouble1Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
00409                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_5">setValueDouble2Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>);
00410                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_6">setValueDouble3Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>);
00411                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_6">setValueDouble3Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keyword">const</font> CVectorD&amp; vector);
00412                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_8">setValueDouble4Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>);
00413                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_9">setValueFloat1Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
00414                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_10">setValueFloat2Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>);
00415                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_11">setValueFloat3Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>);
00416                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_11">setValueFloat3Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keyword">const</font> CVector&amp; vector);
00417                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_13">setValueFloat4Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>);
00418                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_14">setValueShort1Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
00419                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_15">setValueShort2Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>);
00420                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_16">setValueShort3Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>);
00421                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_17">setValueShort4Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>);
00422                 <font class="keyword">inline</font> <font class="keywordtype">void</font>                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_18">setValueUChar4Ex</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx, CRGBA rgba);
00423 
<a name="l00427"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_19">00427</a>                 <font class="keywordtype">void</font>*                           <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_19">getValueEx</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx=0) { <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;valueId));     <font class="keywordflow">return</font> (<font class="keywordtype">void</font>*)((&amp;(*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>.begin()))+idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>+<a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_21">getValueOffEx</a> (valueId)); }
00428 
<a name="l00432"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_20">00432</a>                 <font class="keyword">const</font> <font class="keywordtype">void</font>*                     <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_19">getValueEx</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId, uint idx=0)<font class="keyword"> const </font>{ <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;valueId));       <font class="keywordflow">return</font> (<font class="keywordtype">void</font>*)((&amp;(*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>.begin()))+idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>+<a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_21">getValueOffEx</a> (valueId)); };
00433 
<a name="l00437"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_21">00437</a>                 sint                            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_21">getValueOffEx</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51">TValue</a> valueId)<font class="keyword"> const </font>{ <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;valueId)); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId]; };
00438 
00439         <font class="comment">// @}</font>
00440 
00444         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#a4">setNumVertices</a>(uint32 n);
00445         
<a name="l00449"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#a5">00449</a>         uint32                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#a5">getNumVertices</a>(<font class="keywordtype">void</font>)<font class="keyword"> const  </font>{ <font class="keywordflow">return</font>(_NbVerts); }
00450 
00454         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#a6">deleteAllVertices</a>();
00455 
00459         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVertexBuffer.html#a7">reserve</a>(uint32 nVerts);
00460         
<a name="l00464"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#a8">00464</a>         uint32                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#a8">capacity</a>() { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o6">_Capacity</a>; }
00465 
<a name="l00469"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#a9">00469</a>         uint16                                  <a class="code" href="classNL3D_1_1CVertexBuffer.html#a9">getVertexSize</a> (<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font>(_VertexSize); }
00470 
<a name="l00474"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#a10">00474</a>         <a class="code" href="classNL3D_1_1CVertexBuffer.html#s54">TType</a>                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#a10">getValueType</a> (uint <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>)<font class="keyword"> const </font>{ <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>); <font class="keywordflow">return</font>((TType)<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>]); }
00475 
<a name="l00479"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#a11">00479</a>         <font class="keyword">const</font> uint8                             *<a class="code" href="classNL3D_1_1CVertexBuffer.html#a11">getValueTypePointer</a> ()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>; }
00480 
00484         uint8                                   <a class="code" href="classNL3D_1_1CVertexBuffer.html#a12">getNumWeight</a> () <font class="keyword">const</font>;
00485 
00486         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVertexBuffer.html#a13">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f);
00487 
00488 
00490         <font class="comment">// @{</font>
00492 <font class="comment">        void            serialHeader(NLMISC::IStream &amp;f);</font>
00496 <font class="comment"></font>        <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVertexBuffer.html#z901_1">serialSubset</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f, uint vertexStart, uint vertexEnd);
00497         <font class="comment">// @}</font>
00498 
00499 
00500 <font class="keyword">private</font>:
00502         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVertexBuffer.html#c0">serialOldV1Minus</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f, sint ver);
00503 
00505         uint16          <a class="code" href="classNL3D_1_1CVertexBuffer.html#c1">remapV2Flags</a> (uint32 oldFlags, uint&amp; weightCount);
00506 };
00507 
00508 
00510 <font class="comment">// implementation of inline methods //</font>
00512 <font class="comment">// --------------------------------------------------</font>
00513 
<a name="l00514"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_3">00514</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setVertexCoord(uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
00515 {
00516         <font class="keywordtype">float</font>*  ptr;
00517 
00518         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s19">PositionFlag</a>);
00519         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s0">Position</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>);
00520 
00521         ptr=(<font class="keywordtype">float</font>*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00522         *ptr=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00523         ptr++;
00524         *ptr=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00525         ptr++;
00526         *ptr=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00527 }
00528 
00529 <font class="comment">// --------------------------------------------------</font>
00530 
<a name="l00531"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_4">00531</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setVertexCoord(uint idx, <font class="keyword">const</font> CVector &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>)
00532 {
00533         uint8*  ptr;
00534 
00535         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s19">PositionFlag</a>);
00536         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s0">Position</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>);
00537 
00538         ptr=&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>];
00539         memcpy(ptr, &amp;(<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>.x), 3*<font class="keyword">sizeof</font>(<font class="keywordtype">float</font>));
00540 }
00541 
00542 <font class="comment">// --------------------------------------------------</font>
00543 
<a name="l00544"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_5">00544</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setNormalCoord(uint idx, <font class="keyword">const</font> CVector &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>)
00545 {
00546         uint8*  ptr;
00547 
00548         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s20">NormalFlag</a>);
00549         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s1">Normal</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>);
00550 
00551         ptr=&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>];
00552         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s1">Normal</a>];
00553         memcpy(ptr, &amp;(<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>.x), 3*<font class="keyword">sizeof</font>(<font class="keywordtype">float</font>));
00554 }
00555 
00556 <font class="comment">// --------------------------------------------------</font>
00557 
<a name="l00558"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_8">00558</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setColor(uint idx, CRGBA rgba)
00559 {
00560         uint8*  ptr;
00561         CRGBA   *pCol;
00562 
00563         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s29">PrimaryColorFlag</a>);
00564         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s10">PrimaryColor</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s47">UChar4</a>);
00565 
00566         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00567         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s10">PrimaryColor</a>];
00568         pCol= (CRGBA*)ptr;
00569         *pCol= rgba;
00570 }
00571 
00572 <font class="comment">// --------------------------------------------------</font>
00573 
<a name="l00574"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_9">00574</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setSpecular(uint idx, CRGBA rgba)
00575 {
00576         uint8*  ptr;
00577         CRGBA   *pCol;
00578 
00579         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s30">SecondaryColorFlag</a>);
00580         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s11">SecondaryColor</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s47">UChar4</a>);
00581 
00582         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00583         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s11">SecondaryColor</a>];
00584         pCol= (CRGBA*)ptr;
00585         *pCol= rgba;
00586 }
00587 
00588 <font class="comment">// --------------------------------------------------</font>
00589 
<a name="l00590"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_6">00590</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setTexCoord(uint idx, uint8 stage, <font class="keywordtype">float</font> u, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>)
00591 {
00592         uint8*  ptr;
00593         <font class="keywordtype">float</font>*  ptrf;
00594 
00595         <a class="code" href="debug_8h.html#a6">nlassert</a>(stage&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s55s49">MaxStage</a>);
00596         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s21">TexCoord0Flag</a>&lt;&lt;stage));
00597         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>+stage]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s39">Float2</a>);
00598 
00599         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00600         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>+stage];
00601         ptrf=(<font class="keywordtype">float</font>*)ptr;
00602         *ptrf=u;
00603         ptrf++;
00604         *ptrf=<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>;
00605 }
00606 
00607 <font class="comment">// --------------------------------------------------</font>
00608 
<a name="l00609"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_7">00609</a> <font class="keyword">inline</font> <font class="keywordtype">void</font>     CVertexBuffer::setTexCoord(uint idx, uint8 stage, <font class="keyword">const</font> CUV &amp;uv)
00610 {
00611         uint8*  ptr;
00612         CUV*    ptruv;
00613 
00614         <a class="code" href="debug_8h.html#a6">nlassert</a>(stage&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s55s49">MaxStage</a>);
00615         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s21">TexCoord0Flag</a>&lt;&lt;stage));
00616         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>+stage]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s39">Float2</a>);
00617 
00618         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00619         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s2">TexCoord0</a>+stage];
00620         ptruv=(CUV*)ptr;
00621         *ptruv=uv;
00622 }
00623 
00624 
00625 <font class="comment">// --------------------------------------------------</font>
00626 
<a name="l00627"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_10">00627</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setWeight(uint idx, uint8 wgt, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>)
00628 {
00629         uint8*  ptr;
00630         <font class="keywordtype">float</font>*  ptrf;
00631 
00632         <a class="code" href="debug_8h.html#a6">nlassert</a>(wgt&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s55s50">MaxWeight</a>);
00633         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (<a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s31">WeightFlag</a>));
00634 
00635         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00636         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s12">Weight</a>]+<font class="keyword">sizeof</font>(float)*wgt;
00637         ptrf=(<font class="keywordtype">float</font>*)ptr;
00638         *ptrf=<a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>;
00639 }
00640 
00641 <font class="comment">// --------------------------------------------------</font>
00642 
<a name="l00643"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z899_11">00643</a> <font class="keyword">inline</font> <font class="keywordtype">void</font>     CVertexBuffer::setPaletteSkin(uint idx, CPaletteSkin ps)
00644 {
00645         uint8*  ptr;
00646         CPaletteSkin    *pPalSkin;
00647 
00648         <a class="code" href="debug_8h.html#a6">nlassert</a> ( (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; <a class="code" href="classNL3D_1_1CVertexBuffer.html#s53s32">PaletteSkinFlag</a>) == CVertexBuffer::PaletteSkinFlag);
00649         <a class="code" href="debug_8h.html#a6">nlassert</a> (<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s47">UChar4</a>);
00650 
00651         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00652         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s13">PaletteSkin</a>];
00653         pPalSkin= (CPaletteSkin*)ptr;
00654         *pPalSkin= ps;
00655 }
00656 
00657 <font class="comment">// --------------------------------------------------</font>
00658 
<a name="l00659"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_4">00659</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueDouble1Ex (TValue valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>)
00660 {
00661         uint8*  ptr;
00662         <font class="keywordtype">double</font>* ptrd;
00663 
00664         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00665         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00666         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s41">Double3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s38">Double2</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s35">Double1</a>));
00667 
00668         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00669         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00670         ptrd=(<font class="keywordtype">double</font>*)ptr;
00671         *ptrd=<a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>;
00672 }
00673 
00674 <font class="comment">// --------------------------------------------------</font>
00675 
<a name="l00676"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_5">00676</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueDouble2Ex (TValue valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>)
00677 {
00678         uint8*  ptr;
00679         <font class="keywordtype">double</font>* ptrd;
00680 
00681         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00682         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00683         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s41">Double3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s38">Double2</a>));
00684 
00685         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00686         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00687         ptrd=(<font class="keywordtype">double</font>*)ptr;
00688         ptrd[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00689         ptrd[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00690 }
00691 
00692 <font class="comment">// --------------------------------------------------</font>
00693 
<a name="l00694"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_6">00694</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueDouble3Ex (TValue valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
00695 {
00696         uint8*  ptr;
00697         <font class="keywordtype">double</font>* ptrd;
00698 
00699         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00700         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00701         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s41">Double3</a>));
00702 
00703         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00704         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00705         ptrd=(<font class="keywordtype">double</font>*)ptr;
00706         ptrd[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00707         ptrd[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00708         ptrd[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00709 }
00710 
00711 <font class="comment">// --------------------------------------------------</font>
00712 
<a name="l00713"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_7">00713</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueDouble3Ex (TValue valueId, uint idx, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>&amp; vector)
00714 {
00715         uint8*  ptr;
00716         <font class="keywordtype">double</font>* ptrd;
00717 
00718         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00719         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00720         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s41">Double3</a>));
00721 
00722         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00723         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00724         ptrd=(<font class="keywordtype">double</font>*)ptr;
00725         memcpy (ptrd, &amp;vector, <font class="keyword">sizeof</font>(<font class="keywordtype">double</font>)*3);
00726 }
00727 
00728 <font class="comment">// --------------------------------------------------</font>
00729 
<a name="l00730"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_8">00730</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueDouble4Ex (TValue valueId, uint idx, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, <font class="keywordtype">double</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>)
00731 {
00732         uint8*  ptr;
00733         <font class="keywordtype">double</font>* ptrd;
00734 
00735         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00736         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00737         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s44">Double4</a>);
00738 
00739         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00740         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00741         ptrd=(<font class="keywordtype">double</font>*)ptr;
00742         ptrd[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00743         ptrd[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00744         ptrd[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00745         ptrd[3]=<a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>;
00746 }
00747 
00748 <font class="comment">// --------------------------------------------------</font>
00749 
<a name="l00750"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_9">00750</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueFloat1Ex (TValue valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>)
00751 {
00752         uint8*  ptr;
00753         <font class="keywordtype">float</font>*  ptrf;
00754 
00755         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00756         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00757         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s39">Float2</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s36">Float1</a>));
00758 
00759         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00760         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00761         ptrf=(<font class="keywordtype">float</font>*)ptr;
00762         *ptrf=<a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>;
00763 }
00764 
00765 <font class="comment">// --------------------------------------------------</font>
00766 
<a name="l00767"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_10">00767</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueFloat2Ex (TValue valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>)
00768 {
00769         uint8*  ptr;
00770         <font class="keywordtype">float</font>*  ptrf;
00771 
00772         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00773         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00774         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s39">Float2</a>));
00775 
00776         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00777         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00778         ptrf=(<font class="keywordtype">float</font>*)ptr;
00779         ptrf[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00780         ptrf[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00781 }
00782 
00783 <font class="comment">// --------------------------------------------------</font>
00784 
<a name="l00785"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_11">00785</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueFloat3Ex (TValue valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
00786 {
00787         uint8*  ptr;
00788         <font class="keywordtype">float</font>*  ptrf;
00789 
00790         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00791         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00792         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>));
00793 
00794         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00795         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00796         ptrf=(<font class="keywordtype">float</font>*)ptr;
00797         ptrf[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00798         ptrf[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00799         ptrf[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00800 }
00801 
00802 <font class="comment">// --------------------------------------------------</font>
00803 
<a name="l00804"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_12">00804</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueFloat3Ex (TValue valueId, uint idx, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>&amp; vector)
00805 {
00806         uint8*  ptr;
00807         <font class="keywordtype">float</font>*  ptrf;
00808 
00809         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00810         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00811         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s42">Float3</a>));
00812 
00813         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00814         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00815         ptrf=(<font class="keywordtype">float</font>*)ptr;
00816         memcpy (ptrf, &amp;vector, <font class="keyword">sizeof</font>(<font class="keywordtype">float</font>)*3);
00817 }
00818 
00819 <font class="comment">// --------------------------------------------------</font>
00820 
<a name="l00821"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_13">00821</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueFloat4Ex (TValue valueId, uint idx, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>)
00822 {
00823         uint8*  ptr;
00824         <font class="keywordtype">float</font>*  ptrf;
00825 
00826         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00827         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00828         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s45">Float4</a>);
00829 
00830         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00831         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00832         ptrf=(<font class="keywordtype">float</font>*)ptr;
00833         ptrf[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00834         ptrf[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00835         ptrf[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00836         ptrf[3]=<a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>;
00837 }
00838 
00839 <font class="comment">// --------------------------------------------------</font>
00840 
<a name="l00841"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_14">00841</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueShort1Ex (TValue valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>)
00842 {
00843         uint8*  ptr;
00844         uint16* ptri;
00845 
00846         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00847         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00848         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s46">Short4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s43">Short3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s40">Short2</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s37">Short1</a>));
00849 
00850         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00851         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00852         ptri=(uint16*)ptr;
00853         *ptri=<a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>;
00854 }
00855 
00856 <font class="comment">// --------------------------------------------------</font>
00857 
<a name="l00858"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_15">00858</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueShort2Ex (TValue valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>)
00859 {
00860         uint8*  ptr;
00861         uint16* ptri;
00862 
00863         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00864         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00865         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s46">Short4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s43">Short3</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s40">Short2</a>));
00866 
00867         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00868         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00869         ptri=(uint16*)ptr;
00870         ptri[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00871         ptri[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00872 }
00873 
00874 <font class="comment">// --------------------------------------------------</font>
00875 
<a name="l00876"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_16">00876</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueShort3Ex (TValue valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
00877 {
00878         uint8*  ptr;
00879         uint16* ptri;
00880 
00881         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00882         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00883         <a class="code" href="debug_8h.html#a6">nlassert</a>((<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s46">Short4</a>)||(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s43">Short3</a>));
00884 
00885         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00886         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00887         ptri=(uint16*)ptr;
00888         ptri[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00889         ptri[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00890         ptri[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00891 }
00892 
00893 <font class="comment">// --------------------------------------------------</font>
00894 
<a name="l00895"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_17">00895</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueShort4Ex (TValue valueId, uint idx, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>, uint16 <a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>)
00896 {
00897         uint8*  ptr;
00898         uint16* ptri;
00899 
00900         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00901         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00902         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s46">Short4</a>);
00903 
00904         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00905         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00906         ptri=(uint16*)ptr;
00907         ptri[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>;
00908         ptri[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>;
00909         ptri[2]=<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>;
00910         ptri[3]=<a class="code" href="driver__opengl__extension__def_8h.html#a367">w</a>;
00911 }
00912 
00913 <font class="comment">// --------------------------------------------------</font>
00914 
<a name="l00915"></a><a class="code" href="classNL3D_1_1CVertexBuffer.html#z900_18">00915</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CVertexBuffer::setValueUChar4Ex (TValue valueId, uint idx, CRGBA rgba)
00916 {
00917         uint8*  ptr;
00918         CRGBA*  ptrr;
00919 
00920         <a class="code" href="debug_8h.html#a6">nlassert</a>(valueId&lt;<a class="code" href="classNL3D_1_1CVertexBuffer.html#s51s16">NumValue</a>);
00921         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o3">_Flags</a> &amp; (1&lt;&lt;(uint)valueId));
00922         <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CVertexBuffer.html#o0">_Type</a>[valueId]==<a class="code" href="classNL3D_1_1CVertexBuffer.html#s54s47">UChar4</a>);
00923 
00924         ptr=(uint8*)(&amp;<a class="code" href="classNL3D_1_1CVertexBuffer.html#o7">_Verts</a>[idx*<a class="code" href="classNL3D_1_1CVertexBuffer.html#o2">_VertexSize</a>]);
00925         ptr+=<a class="code" href="classNL3D_1_1CVertexBuffer.html#o8">_Offset</a>[valueId];
00926         ptrr=(CRGBA*)ptr;
00927         *ptrr=rgba;
00928 }
00929 
00930 <font class="comment">// --------------------------------------------------</font>
00931 
00932 } <font class="comment">// NL3D</font>
00933 
00934 
00935 <font class="preprocessor">#endif // NL_VERTEX_BUFFER_H</font>
00936 <font class="preprocessor"></font>
00937 <font class="comment">/* End of vertex_buffer.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=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>