summaryrefslogtreecommitdiffhomepage
path: root/Doc/doxygen/html/_m3_d_s_8h_source.html
blob: 823a1f768204f33ff7c4c82ff87899269ed11473 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Starshatter_Open: D:/SRC/StarshatterSVN/Magic2/M3DS.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Starshatter_Open
   </div>
   <div id="projectbrief">Open source Starshatter engine</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_m3_d_s_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">M3DS.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_m3_d_s_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*  Project nGenEx</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">    Destroyer Studios LLC</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">    Copyright © 1997-2004. All Rights Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    SUBSYSTEM:    nGenEx.lib</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">    FILE:         M3DS.h</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    AUTHOR:       John DiCamillo</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">    OVERVIEW</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    ========</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    Window class</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// parts copyright (c) 2001-2002 Lev Povalahev</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef M3DS_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define M3DS_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_list_8h.html">List.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_chunk.html">Chunk</a></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;   WORD  <a class="code" href="struct_chunk.html#a5a7c08992aa0ce5b69d7ffae8435186f">id</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;   DWORD <a class="code" href="struct_chunk.html#a223a85427053e42440b95939d3d6cfed">len</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;   BYTE* <a class="code" href="struct_chunk.html#a9286b907b562f26825a237ea4469b67b">start</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;   <a class="code" href="class_list.html">List&lt;Chunk&gt;</a> <a class="code" href="struct_chunk.html#ad6a94e623c649e202216c4bd18d6793a">chunks</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;};</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_l_triangle.html">LTriangle</a></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;{</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="struct_l_triangle.html#a838468c630bf2639a500a58fefabe7da">   37</a></span>&#160;   WORD <a class="code" href="struct_l_triangle.html#a040846aec26d166e827ed855c0c589aa">a</a>,<a class="code" href="struct_l_triangle.html#a800e3f4ad855c2f80b8ea409d518b68a">b</a>,<a class="code" href="struct_l_triangle.html#a838468c630bf2639a500a58fefabe7da">c</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;};</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_l_triangle2.html">LTriangle2</a></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="struct_l_triangle2.html#ab979e794da2f92b0fa4f22bb88a0a9a4">   42</a></span>&#160;   <a class="code" href="struct_point.html">Point</a>    <a class="code" href="struct_l_triangle2.html#afecb46219d1e39a0bed5f2afe3fe8754">vertices</a>[3];</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="struct_l_triangle2.html#a339001af4db0909bcdc22281fbad463a">   43</a></span>&#160;   <a class="code" href="struct_vec3.html">Vec3</a>     <a class="code" href="struct_l_triangle2.html#a52cdf7a71872bf8ed84812338fe9d101">vertexNormals</a>[3];</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;   <a class="code" href="struct_l_vector2.html">LVector2</a> <a class="code" href="struct_l_triangle2.html#aa3fdc984438021a08dbef446f5cbe7f4">textureCoords</a>[3];</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="struct_l_triangle2.html#a2e5813061cee6ca15edf43bb0b347381">   45</a></span>&#160;   <a class="code" href="struct_vec3.html">Vec3</a>     <a class="code" href="struct_l_triangle2.html#a2e5813061cee6ca15edf43bb0b347381">faceNormal</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="struct_l_triangle2.html#a6b7c0843a4e8abeca866876d9f18dcaa">   46</a></span>&#160;   DWORD     <a class="code" href="struct_l_triangle2.html#a6b7c0843a4e8abeca866876d9f18dcaa">materialId</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;};</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_texture_map.html">TextureMap</a></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;   <span class="keywordtype">char</span>     <a class="code" href="struct_texture_map.html#aaa949bfa158bdcbaec2efb118a3bab67">fname</a>[256];</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#a95ccd4b8f824a851b9cb1f5ed972406a">strength</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#af9e0f7b675f659ef33edc427032dae81">u_scale</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#acef8d20bb757aea718bc33bdf0de12f3">v_scale</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#ae2945ddf817795459ac5e173b7faa6a9">u_offset</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#ad64014cbc6f293a79e8ea099ff17cb8c">v_offset</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;   <span class="keywordtype">float</span>    <a class="code" href="struct_texture_map.html#a384a509623a23d782d3fd57b1b525626">angle</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;};</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">class </span><a class="code" href="class_l_object.html">LObject</a></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;{</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;   <a class="code" href="class_l_object.html#a5c6623c0a6f372a2d195f5339d91fc0a">LObject</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;   <span class="keyword">virtual</span> <a class="code" href="class_l_object.html#a765d4708f02ebd5d51e3566e19de5356">~LObject</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*  <a class="code" href="class_l_object.html#a406795e8a3c032890fe792560317fccf">GetName</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">bool</span>         <a class="code" href="class_l_object.html#a73b77f65335d7fb1857918ba648ea964">IsObject</a>(<span class="keyword">const</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_l_object.html#a81a4880af70c07a56dd6e865b9007674">name</a>);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="class_l_object.html#a81a4880af70c07a56dd6e865b9007674">   72</a></span>&#160;    <a class="code" href="class_text.html">Text</a>    <a class="code" href="class_l_object.html#a81a4880af70c07a56dd6e865b9007674">name</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">class </span><a class="code" href="class_l_material.html">LMaterial</a> : <span class="keyword">public</span> <a class="code" href="class_l_object.html">LObject</a></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;{</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;   <a class="code" href="class_l_material.html#a00a3a33e7e4a94e60e105d625b84f464">LMaterial</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;   <span class="keyword">virtual</span> <a class="code" href="class_l_material.html#af41e761770aecc4ed9260fe58a1a3ba1">~LMaterial</a>();</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;   DWORD       <a class="code" href="class_l_material.html#a725ce6c71cc699702ca78fa41935f3ce">GetID</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#a0f277fa51a9d52a4668ed64d3e83a84a">GetTextureMap1</a>();</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#a439264561c6bbee367bca5ed2c716416">GetTextureMap2</a>();</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#aec696b8109973a0e64cc417e756ed949">GetOpacityMap</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#a13cf51d93ff4e7fbd4cfb2f92e77cb7e">GetSpecularMap</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#ad36568dd16a4790889ad493d21108222">GetBumpMap</a>();</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; <a class="code" href="class_l_material.html#a2568ed49926734c547fa8cb28b886347">GetReflectionMap</a>();</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#af3e515565f7b25925dac57f60dd1fb56">GetAmbientColor</a>();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#a0cc17c4cc2733a70018b3befad1294c4">GetDiffuseColor</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#aa28080f18a5ecbcf63a126ba050a2b35">GetSpecularColor</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;   <span class="keywordtype">float</span>       <a class="code" href="class_l_material.html#a6edf2d26935adb18601d8e1154e1f4b2">GetShininess</a>();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;   <span class="keywordtype">float</span>       <a class="code" href="class_l_material.html#aba8a05a12bca8f664c701582f4a11be6">GetTransparency</a>();</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;   DWORD       <a class="code" href="class_l_material.html#a142e8cb3d8028916239cd3da1e3b69de">GetShadingType</a>();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;   <span class="comment">// this methods should not be used by the &quot;user&quot;, they&#39;re used internally to fill the class</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;   <span class="comment">// with valid data when reading from file. If you&#39;re about to add an importer for another format you&#39;LL</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;   <span class="comment">// have to use these methods</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#a61f7fcc7c4b6a3139d262d45dc833d88">SetID</a>(DWORD value);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#a4fedfa3cf0bbb5e528bd41f5276d5269">SetAmbientColor</a>(<span class="keyword">const</span> <a class="code" href="class_color_value.html">ColorValue</a> &amp;color);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#a483beefe1c1e5029d2d1ec62b4de40f1">SetDiffuseColor</a>(<span class="keyword">const</span> <a class="code" href="class_color_value.html">ColorValue</a> &amp;color);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#a427aff891a5a59c5a68d567b51a40512">SetSpecularColor</a>(<span class="keyword">const</span> <a class="code" href="class_color_value.html">ColorValue</a> &amp;color);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#aa4aca0dd262dacf076d6d5def713cf15">SetShininess</a>(<span class="keywordtype">float</span> value);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#acc4fbfb340abad530a818f0242b2069c">SetTransparency</a>(<span class="keywordtype">float</span> value);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;   <span class="keywordtype">void</span>        <a class="code" href="class_l_material.html#aef75d13b946aa2083e2a8f1e5a8ea700">SetShadingType</a>(DWORD <a class="code" href="class_l_material.html#aa303634d64a77aece7980552fab14fd9">shading</a>);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="class_l_material.html#aca3092d91217fb38bab4532d5d972a1a">  110</a></span>&#160;   <span class="keywordtype">int</span>         <a class="code" href="class_l_material.html#aca3092d91217fb38bab4532d5d972a1a">id</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="class_l_material.html#ab4f86a65796e5288c6ddc0c92322bf43">  111</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#ab4f86a65796e5288c6ddc0c92322bf43">texMap1</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="class_l_material.html#aae1e99c27f11a7c0c105fb89725b8e3d">  112</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#aae1e99c27f11a7c0c105fb89725b8e3d">texMap2</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="class_l_material.html#a2b91a17e2f3a925874c5c724f56c34ba">  113</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#a2b91a17e2f3a925874c5c724f56c34ba">opacMap</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="class_l_material.html#a8b8ce781e35b83155490d9e9728e9552">  114</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#a8b8ce781e35b83155490d9e9728e9552">refTextureMap</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="class_l_material.html#abcbf51a435b4bb2ca6631dd40cf036d0">  115</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#abcbf51a435b4bb2ca6631dd40cf036d0">bumpMap</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="class_l_material.html#af3ffb32d347cc5f133571a29246db8a3">  116</a></span>&#160;   <a class="code" href="struct_texture_map.html">TextureMap</a>  <a class="code" href="class_l_material.html#af3ffb32d347cc5f133571a29246db8a3">specMap</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="class_l_material.html#aa2bc4144b4c71fc61bd56b39f54cd017">  117</a></span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#aa2bc4144b4c71fc61bd56b39f54cd017">ambient</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="class_l_material.html#a471be68e21116c39e1a274f214e8559f">  118</a></span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#a471be68e21116c39e1a274f214e8559f">diffuse</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="class_l_material.html#a5833c31d3ec5c282930f6fc64450bcab">  119</a></span>&#160;   <a class="code" href="class_color_value.html">ColorValue</a>  <a class="code" href="class_l_material.html#a5833c31d3ec5c282930f6fc64450bcab">specular</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="class_l_material.html#a521470811663aaad4cd69e2236783fa5">  120</a></span>&#160;   <span class="keywordtype">float</span>       <a class="code" href="class_l_material.html#a521470811663aaad4cd69e2236783fa5">shininess</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="class_l_material.html#a56a1ae1437d2d088869440789cb9cfdf">  121</a></span>&#160;   <span class="keywordtype">float</span>       <a class="code" href="class_l_material.html#a56a1ae1437d2d088869440789cb9cfdf">transparency</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="class_l_material.html#aa303634d64a77aece7980552fab14fd9">  122</a></span>&#160;   DWORD       <a class="code" href="class_l_material.html#aa303634d64a77aece7980552fab14fd9">shading</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keyword">class </span><a class="code" href="class_l_mesh.html">LMesh</a> : <span class="keyword">public</span> <a class="code" href="class_l_object.html">LObject</a></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="class_l_mesh.html#aa18c059b6d38e60f4d7af8f8bc32ee34">LMesh</a>();</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_l_mesh.html#a0c07f358f80521f7fdb635f885d948cb">~LMesh</a>();</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a7e2e6f482429c8f2722154178ad093cf">Clear</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    DWORD <a class="code" href="class_l_mesh.html#afffa509eb708a87b0efbe9d3cad72ebd">GetVertexCount</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a3d4e2566b0bef1ab9aaab7167f026c86">SetVertexArraySize</a>(DWORD value);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    DWORD <a class="code" href="class_l_mesh.html#aa83a4c3e3a221c28fd9c3a554a996f4f">GetTriangleCount</a>();</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#afa83071668256f7ae9fee6bf0219337f">SetTriangleArraySize</a>(DWORD value);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">// returns given vertex    </span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_vector4.html">LVector4</a>&amp; <a class="code" href="class_l_mesh.html#ab51b7ceff64f9354284f3da0d65d78f6">GetVertex</a>(DWORD index);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="comment">// returns the given normal</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a>&amp; <a class="code" href="class_l_mesh.html#a535d95728d50deb1756342d8ef386bf5">GetNormal</a>(DWORD index);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="comment">// returns the given texture coordinates vector</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_vector2.html">LVector2</a>&amp; <a class="code" href="class_l_mesh.html#a5fd8f08b0dd11298ed6ad7f5f256a622">GetUV</a>(DWORD index);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="comment">// returns the pointer to the array of tangents</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a>&amp; <a class="code" href="class_l_mesh.html#ae990548652c6b8026ce1382b2d41a333">GetTangent</a>(DWORD index);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="comment">// returns the pointer to the array of binormals</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a>&amp; <a class="code" href="class_l_mesh.html#ac4d2cfe37589a7d6f1dcec96bffdc80a">GetBinormal</a>(DWORD index);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="comment">// sets the vertex at a given index to &quot;vec&quot; - for internal use    </span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a408ed477d2d30cf086f36d68f72dc7ea">SetVertex</a>(<span class="keyword">const</span> <a class="code" href="struct_l_vector4.html">LVector4</a> &amp;vec, DWORD index);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">// sets the normal at a given index to &quot;vec&quot; - for internal use    </span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#ac2395d344637761170a2f186a31b8621">SetNormal</a>(<span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a> &amp;vec, DWORD index);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment">// sets the texture coordinates vector at a given index to &quot;vec&quot; - for internal use    </span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a2717525d9c963d3a740e077340e56dd9">SetUV</a>(<span class="keyword">const</span> <a class="code" href="struct_l_vector2.html">LVector2</a> &amp;vec, DWORD index);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="comment">// sets the tangent at a given index to &quot;vec&quot; - for internal use    </span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a28297f6312463dfa4d60f51bdf04c5a9">SetTangent</a>(<span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a> &amp;vec, DWORD index);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="comment">// sets the binormal at a given index to &quot;vec&quot; - for internal use    </span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#af4a047d41277173b70f6c37d6a9a6457">SetBinormal</a>(<span class="keyword">const</span> <a class="code" href="struct_l_vector3.html">LVector3</a> &amp;vec, DWORD index);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="comment">// returns the triangle with a given index</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keyword">const</span> <a class="code" href="struct_l_triangle.html">LTriangle</a>&amp; <a class="code" href="class_l_mesh.html#a6ac8b7de54499a1c5e26b3beb4608e75">GetTriangle</a>(DWORD index);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="comment">// returns the triangle with a given index, see LTriangle2 structure description</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <a class="code" href="struct_l_triangle2.html">LTriangle2</a> <a class="code" href="class_l_mesh.html#a8d5a156c9d35a0839221236444c7986d">GetTriangle2</a>(DWORD index);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="comment">// returns the mesh matrix, should be identity matrix after loading    </span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <a class="code" href="struct_l_matrix4.html">LMatrix4</a> <a class="code" href="class_l_mesh.html#ac7ddb13d9f1694083e81ad13e79e2819">GetMatrix</a>();</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="comment">// sets the mesh matrix to a given matrix - for internal use</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#ac753ded16e3b377b031e900186664c58">SetMatrix</a>(<a class="code" href="struct_l_matrix4.html">LMatrix4</a> m);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="comment">// optimizises the mesh using a given optimization level</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#aa390a22687f04d1d4cf0a3b7552f0a81">Optimize</a>(<a class="code" href="l3ds_8h.html#a756d882d7c090e8fdc009969d3adf957">LOptimizationLevel</a> value);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="comment">// sets an internal triangle structure with index &quot;index&quot; - for internal use only</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a2f88dcbfdfe88f926452ab40a7b66672">SetTri</a>(<span class="keyword">const</span> <a class="code" href="struct_l_tri.html">LTri</a> &amp;tri, DWORD index);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="comment">// returns the pointer to the internal triangle structure - for internal use only</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="struct_l_tri.html">LTri</a>&amp; <a class="code" href="class_l_mesh.html#af4b0169430b6aee8c450707bbbdecc96">GetTri</a>(DWORD index);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="comment">// returns the material id with a given index for the mesh</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    DWORD <a class="code" href="class_l_mesh.html#ab6958e089f59f217ce2aab337ab196bb">GetMaterial</a>(DWORD index);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="comment">// adds a material to the mesh and returns its index - for internal use</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    DWORD <a class="code" href="class_l_mesh.html#a2e46e16a4127fd4108edfb7bac5a7832">AddMaterial</a>(DWORD <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="comment">// returns the number of materials used in the mesh</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    DWORD <a class="code" href="class_l_mesh.html#a150b3f3683d10ee9a7a1375f29676cf2">GetMaterialCount</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="comment">// the vertices, normals, etc.</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="code" href="class_l_mesh.html#a08b796d6f5e87555852e3f8ce020f464">  182</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LVector4&gt;</a> <a class="code" href="class_l_mesh.html#a08b796d6f5e87555852e3f8ce020f464">vertices</a>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="class_l_mesh.html#aa7cb05087d12fdf06520b0503ce89bc4">  183</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LVector3&gt;</a> <a class="code" href="class_l_mesh.html#aa7cb05087d12fdf06520b0503ce89bc4">normals</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="class_l_mesh.html#a9d93f6aff8c594ffe6d53c41eb3be77f">  184</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LVector3&gt;</a> <a class="code" href="class_l_mesh.html#a9d93f6aff8c594ffe6d53c41eb3be77f">binormals</a>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="code" href="class_l_mesh.html#aeec1ee0efd07c3c9f0783ddb404a38d5">  185</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LVector3&gt;</a> <a class="code" href="class_l_mesh.html#aeec1ee0efd07c3c9f0783ddb404a38d5">tangents</a>;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="class_l_mesh.html#acf5e66b6440637d41267eddcc2c5dbda">  186</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LVector2&gt;</a> <a class="code" href="class_l_mesh.html#acf5e66b6440637d41267eddcc2c5dbda">uv</a>;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="comment">// triangles</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="class_l_mesh.html#ae0a80124ca70d52712b20d211cb5867a">  189</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LTriangle&gt;</a> <a class="code" href="class_l_mesh.html#ae0a80124ca70d52712b20d211cb5867a">triangles</a>;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="comment">//used internally</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="class_l_mesh.html#a5751a748fb096217471d66124e81bcab">  192</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LTri&gt;</a> <a class="code" href="class_l_mesh.html#a5751a748fb096217471d66124e81bcab">tris</a>;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="comment">// the transformation matrix.</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="class_l_mesh.html#aeb9fb0e10f3dcc1366f6ef8cf0caf74e">  195</a></span>&#160;    <a class="code" href="struct_matrix.html">Matrix</a> <a class="code" href="class_l_mesh.html#aeb9fb0e10f3dcc1366f6ef8cf0caf74e">matrix</a>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="comment">// the material ID array</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="class_l_mesh.html#a5f99a8f312d8004890195d3321cbd557">  198</a></span>&#160;    <a class="code" href="class_list.html">List&lt;DWORD&gt;</a> <a class="code" href="class_l_mesh.html#a5f99a8f312d8004890195d3321cbd557">materials</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">// calculates the normals, either using the smoothing groups information or not</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#a9314951bef65e2120f1eaf752dbc90d4">CalcNormals</a>(<span class="keywordtype">bool</span> useSmoothingGroups);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="comment">// calculates the texture(tangent) space for each vertex</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#ad958c62131c309a5fdc01155bcdac844">CalcTextureSpace</a>();</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="comment">// transforms the vertices by the mesh matrix</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_mesh.html#aed810f51167414e94e0081dd10f8a897">TransformVertices</a>();</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;};</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="comment">//------------------------------------------------</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="keyword">class </span><a class="code" href="class_l_importer.html">LImporter</a></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;{</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="comment">// the default constructor</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="class_l_importer.html#a07ff432a17ef79378999d9eda1e5bac7">LImporter</a>();</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="comment">// the destructor</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_l_importer.html#ae1934020b9e805314fb224d428a51f13">~LImporter</a>();</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="comment">// reads the model from a file, must be overriden by the child classes</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_l_importer.html#adfb32714d600ac289b64bffd42034139">LoadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename) = 0;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="comment">// returns the number of meshes in the scene</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    DWORD <a class="code" href="class_l_importer.html#a74e4386c3fc47b3fb6fc85f64d3d3d14">GetMeshCount</a>();</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="comment">// returns the number of lights in the scene</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    DWORD <a class="code" href="class_l_importer.html#a079f340dfb36f4f5c39e4e8a32dd97ea">GetLightCount</a>();</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="comment">// returns the number of materials in the scene</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    DWORD <a class="code" href="class_l_importer.html#ac7ece6fa0c9d134d26ffde31e5645df7">GetMaterialCount</a>();</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="comment">// returns a pointer to a mesh</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <a class="code" href="class_l_mesh.html">LMesh</a>&amp; <a class="code" href="class_l_importer.html#a106a15f3d50e6c2ebd84809c83baa699">GetMesh</a>(DWORD index);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="comment">// returns a pointer to a light at a given index</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <a class="code" href="class_l_light.html">LLight</a>&amp; <a class="code" href="class_l_importer.html#a0dd08bd876d6711e541544c8f73b0ed7">GetLight</a>(DWORD index);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="comment">// returns the pointer to the material</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <a class="code" href="class_l_material.html">LMaterial</a>&amp; <a class="code" href="class_l_importer.html#aadfa0f5e616041bae466e72c639c300f">GetMaterial</a>(DWORD index);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="comment">// returns the pointer to the material with a given name, or NULL if the material was not found</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <a class="code" href="class_l_material.html">LMaterial</a>* <a class="code" href="class_l_importer.html#a25546ca9b1e1c87425ed074529495001">FindMaterial</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a> &amp;name);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="comment">// returns the pointer to the mesh with a given name, or NULL if the mesh with such name </span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="comment">// is not present in the scene</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <a class="code" href="class_l_mesh.html">LMesh</a>* <a class="code" href="class_l_importer.html#a092ad8617396f5931794bf5a137fb84e">FindMesh</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a> &amp;name);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="comment">// returns the pointer to the light with a given name, or NULL if not found</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <a class="code" href="class_l_light.html">LLight</a>* <a class="code" href="class_l_importer.html#ac844ee026b3a5389353479285e701769">FindLight</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a> &amp;name);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="comment">// sets the optimization level to a given value</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l_importer.html#af22fcdd3d8f125f6aac81c092866c068">SetOptimizationLevel</a>(<a class="code" href="l3ds_8h.html#a756d882d7c090e8fdc009969d3adf957">LOptimizationLevel</a> value);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="comment">// returns the current optimization level</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="l3ds_8h.html#a756d882d7c090e8fdc009969d3adf957">LOptimizationLevel</a> <a class="code" href="class_l_importer.html#ab24790d3ea8e6d308f74888d2ee127a9">GetOptimizationLevel</a>();</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="comment">// the lights found in the scene</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="code" href="class_l_importer.html#abf4868dab672ab83008b9a0487507c90">  244</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LLight&gt;</a> <a class="code" href="class_l_importer.html#abf4868dab672ab83008b9a0487507c90">lights</a>;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="comment">// triangular meshes</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="class_l_importer.html#a2a0557f702683e6ce9bfab275ff06250">  246</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LMesh&gt;</a> <a class="code" href="class_l_importer.html#a2a0557f702683e6ce9bfab275ff06250">meshes</a>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="comment">// the materials in the scene</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="code" href="class_l_importer.html#a93f5ef260ba53158e536bfb3d8c646fc">  248</a></span>&#160;    <a class="code" href="class_list.html">List&lt;LMaterial&gt;</a> <a class="code" href="class_l_importer.html#a93f5ef260ba53158e536bfb3d8c646fc">materials</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">// level of optimization to perform on the meshes</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="code" href="class_l_importer.html#a1dc549f47dc66ea702eccecb6f820e0b">  250</a></span>&#160;    <a class="code" href="l3ds_8h.html#a756d882d7c090e8fdc009969d3adf957">LOptimizationLevel</a> <a class="code" href="class_l_importer.html#a1dc549f47dc66ea702eccecb6f820e0b">optLevel</a>;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="comment">// clears all data.</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_l_importer.html#a3956346e472f5fa6f5d4d02c1e75a600">Clear</a>();</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;};</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">//------------------------------------------------</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="keyword">class </span><a class="code" href="class_l3_d_s.html">L3DS</a> : <span class="keyword">public</span> <a class="code" href="class_l_importer.html">LImporter</a></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;{</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="comment">// the default contructor</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <a class="code" href="class_l3_d_s.html#a34f39639125fd3b6be482e8d57ca9974">L3DS</a>();</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="comment">// constructs the object and loads the file</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <a class="code" href="class_l3_d_s.html#a34f39639125fd3b6be482e8d57ca9974">L3DS</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="comment">// destructor</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_l3_d_s.html#ae7c18053973bf7ebe8696faef6f2ff29">~L3DS</a>();</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="comment">// load 3ds file </span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_l3_d_s.html#a5838071f8859c97b095dd86fb17b905c">LoadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <span class="comment">// used internally for reading</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="code" href="class_l3_d_s.html#adb1c554667dabdfc1049838c08090e0d">  269</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="class_l3_d_s.html#adb1c554667dabdfc1049838c08090e0d">objName</a>[100];</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="comment">// true if end of file is reached</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="code" href="class_l3_d_s.html#af3ff451ea0dba66effeb640241e5601d">  271</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_l3_d_s.html#af3ff451ea0dba66effeb640241e5601d">eof</a>;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="comment">// buffer for loading, used for speedup</span></div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="code" href="class_l3_d_s.html#ab5c3334f515ac132eedeec2c20bbafb8">  273</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="class_l3_d_s.html#ab5c3334f515ac132eedeec2c20bbafb8">buffer</a>;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="comment">// the size of the buffer</span></div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="code" href="class_l3_d_s.html#a679e895a258aff110748bfdeb74c2961">  275</a></span>&#160;    DWORD <a class="code" href="class_l3_d_s.html#a679e895a258aff110748bfdeb74c2961">bufferSize</a>;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="comment">// the current cursor position in the buffer</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="code" href="class_l3_d_s.html#a49ac74f6d94695dc7c034bfdd7080c50">  277</a></span>&#160;    DWORD <a class="code" href="class_l3_d_s.html#a49ac74f6d94695dc7c034bfdd7080c50">pos</a>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="comment">// reads a short value from the buffer</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordtype">short</span> <a class="code" href="class_l3_d_s.html#ac0c91f5c0aba3258bfd3b1c4cfd426c9">ReadShort</a>();</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <span class="comment">// reads an int value from the buffer</span></div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_l3_d_s.html#a3d07ad422edd63dbfa28833fe67a1a94">ReadInt</a>();</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="comment">// reads a char from the buffer</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordtype">char</span> <a class="code" href="class_l3_d_s.html#a52a8fdadccfe064f78ec6c3fe0006c00">ReadChar</a>();</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="comment">//reada a floatvalue from the buffer</span></div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_l3_d_s.html#a5d1a756bc4dacac84f87393efcf66a63">ReadFloat</a>();</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <span class="comment">//reads an unsigned byte from the buffer</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <a class="code" href="l3ds_8h.html#a0c8186d9b9b7880309c27230bbb5e69d">byte</a> <a class="code" href="class_l3_d_s.html#a67cc402bc8e8df04f8a90026d3b2c896">ReadByte</a>();</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="comment">//reads an asciiz string </span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_l3_d_s.html#a38eab7b0d084ece005cdcc7f649f069c">ReadASCIIZ</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> max_count);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="comment">// seek wihtin the buffer</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a46326d115576c2fafbd74b188408ea11">Seek</a>(<span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> origin);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="comment">// returns the position of the cursor</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    DWORD <a class="code" href="class_l3_d_s.html#ad8e5b91ac1d71939f3ab0fa78c1a90b3">Pos</a>();</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="comment">// read the chunk and return it.</span></div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <a class="code" href="struct_l_chunk.html">LChunk</a> <a class="code" href="class_l3_d_s.html#ab2d3e7abaf201a3878c3cd69f626b092">ReadChunk</a>();</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    <span class="comment">// read until given chunk is found</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_l3_d_s.html#ae3da5f855e92808270814fe3a4ca8d13">FindChunk</a>(<a class="code" href="struct_l_chunk.html">LChunk</a> &amp;target, <span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;parent);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="comment">// skip to the end of chunk &quot;chunk&quot;</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a13d1e28ef48ebc78a51d5bca5f032557">SkipChunk</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk);</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="comment">// goes to the beginning of the data in teh given chunk</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a810d93692c81f19cf3751f238222144c">GotoChunk</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="comment">// the function read the color chunk (any of the color chunks)</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <a class="code" href="class_color_value.html">ColorValue</a> <a class="code" href="class_l3_d_s.html#aa5efb851de74d41caf5e8ad7f396e851">ReadColor</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="comment">// the function that read the percentage chunk and returns a float from 0 to 1</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_l3_d_s.html#a2cbe40baff18b7f0cdcfef9e2e8d076e">ReadPercentage</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk);</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="comment">// this is where 3ds file is being read</span></div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_l3_d_s.html#a9fa939c6098b3569870e4dc991502a2b">Read3DS</a>();</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="comment">// read a light chunk </span></div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#ab8815e3de849f13d21fbe3614355d334">ReadLight</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;parent);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="comment">// read a trimesh chunk</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#af3c80ddd52f43330ce928f21834e276e">ReadMesh</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;parent);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="comment">// reads the face list, face materials, smoothing groups... and fill rthe information into the mesh</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a0d223328015dd133e7a888a4db066f2a">ReadFaceList</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk, <a class="code" href="class_l_mesh.html">LMesh</a> &amp;mesh);</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="comment">// reads the material</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a24f42d8bc4ca7da6b67e537b1028531e">ReadMaterial</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;parent);</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="comment">// reads the map info and fills the given map with this information</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a3bae1e78bc33f00e2088ccdffea56843">ReadMap</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;chunk, <a class="code" href="struct_texture_map.html">TextureMap</a>&amp; map);</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="comment">// reads keyframer data of the OBJECT_NODE_TAG chunk</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_l3_d_s.html#a0f99fea7e0c1e84c46eaa978dcab51bb">ReadKeyframeData</a>(<span class="keyword">const</span> <a class="code" href="struct_l_chunk.html">LChunk</a> &amp;parent);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="comment">// reads the keyheader structure from the current offset and returns the frame number</span></div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordtype">long</span> <a class="code" href="class_l3_d_s.html#a0e80a2fc77f722f3fa4b8acc22b4996b">ReadKeyheader</a>();</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;};</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;<span class="comment">//---------------------------------------------------------</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_443b34fb483e2112d6c31a6ad3da1196.html">Magic2</a></li><li class="navelem"><a class="el" href="_m3_d_s_8h.html">M3DS.h</a></li>
    <li class="footer">Generated on Thu May 31 2012 16:30:48 for Starshatter_Open by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li>
  </ul>
</div>
</body>
</html>