aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html309
1 files changed, 309 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html b/src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html
new file mode 100644
index 0000000..6304095
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/_s_material_layer_8h_source.html
@@ -0,0 +1,309 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>Irrlicht 3D Engine: SMaterialLayer.h Source File</title>
6
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="doxygen.css" rel="stylesheet" type="text/css" />
9<link href="navtree.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="resize.js"></script>
12<script type="text/javascript" src="navtree.js"></script>
13<script type="text/javascript">
14 $(document).ready(initResizable);
15</script>
16<link href="search/search.css" rel="stylesheet" type="text/css"/>
17<script type="text/javascript" src="search/search.js"></script>
18<script type="text/javascript">
19 $(document).ready(function() { searchBox.OnSelectItem(0); });
20</script>
21
22</head>
23<body>
24<div id="top"><!-- do not remove this div! -->
25
26
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31
32 <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
33
34
35 <td style="padding-left: 0.5em;">
36 <div id="projectname">Irrlicht 3D Engine
37
38 </div>
39
40 </td>
41
42
43
44
45 <td> <div id="MSearchBox" class="MSearchBoxInactive">
46 <span class="left">
47 <img id="MSearchSelect" src="search/mag_sel.png"
48 onmouseover="return searchBox.OnSearchSelectShow()"
49 onmouseout="return searchBox.OnSearchSelectHide()"
50 alt=""/>
51 <input type="text" id="MSearchField" value="Search" accesskey="S"
52 onfocus="searchBox.OnSearchFieldFocus(true)"
53 onblur="searchBox.OnSearchFieldFocus(false)"
54 onkeyup="searchBox.OnSearchFieldChange(event)"/>
55 </span><span class="right">
56 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
57 </span>
58 </div>
59</td>
60
61
62 </tr>
63 </tbody>
64</table>
65</div>
66
67<!-- Generated by Doxygen 1.7.5.1 -->
68<script type="text/javascript">
69var searchBox = new SearchBox("searchBox", "search",false,'Search');
70</script>
71<script type="text/javascript" src="dynsections.js"></script>
72</div>
73<div id="side-nav" class="ui-resizable side-nav-resizable">
74 <div id="nav-tree">
75 <div id="nav-tree-contents">
76 </div>
77 </div>
78 <div id="splitbar" style="-moz-user-select:none;"
79 class="ui-resizable-handle">
80 </div>
81</div>
82<script type="text/javascript">
83 initNavTree('_s_material_layer_8h.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="headertitle">
88<div class="title">SMaterialLayer.h</div> </div>
89</div>
90<div class="contents">
91<a href="_s_material_layer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2012 Nikolaus Gebhardt</span>
92<a name="l00002"></a>00002 <span class="comment">// This file is part of the &quot;Irrlicht Engine&quot;.</span>
93<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
94<a name="l00004"></a>00004
95<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __S_MATERIAL_LAYER_H_INCLUDED__</span>
96<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __S_MATERIAL_LAYER_H_INCLUDED__</span>
97<a name="l00007"></a>00007 <span class="preprocessor"></span>
98<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="matrix4_8h.html">matrix4.h</a>&quot;</span>
99<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="irr_allocator_8h.html">irrAllocator.h</a>&quot;</span>
100<a name="l00010"></a>00010
101<a name="l00011"></a>00011 <span class="keyword">namespace </span>irr
102<a name="l00012"></a>00012 {
103<a name="l00013"></a>00013 <span class="keyword">namespace </span>video
104<a name="l00014"></a>00014 {
105<a name="l00015"></a>00015 <span class="keyword">class </span>ITexture;
106<a name="l00016"></a>00016
107<a name="l00018"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811f">00018</a> <span class="keyword">enum</span> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811f" title="Texture coord clamp mode outside [0.0, 1.0].">E_TEXTURE_CLAMP</a>
108<a name="l00019"></a>00019 {
109<a name="l00021"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa2e2a1ec3f8045fd2653c4cd6171ac12b">00021</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa2e2a1ec3f8045fd2653c4cd6171ac12b" title="Texture repeats.">ETC_REPEAT</a> = 0,
110<a name="l00023"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa36f63a356ae97db58914ef8920cae488">00023</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa36f63a356ae97db58914ef8920cae488" title="Texture is clamped to the last pixel.">ETC_CLAMP</a>,
111<a name="l00025"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fac35b809116d29a3c77bab79b6a31eda3">00025</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fac35b809116d29a3c77bab79b6a31eda3" title="Texture is clamped to the edge pixel.">ETC_CLAMP_TO_EDGE</a>,
112<a name="l00027"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa3c8beb993f3bb31a76a3811eb460882a">00027</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa3c8beb993f3bb31a76a3811eb460882a" title="Texture is clamped to the border pixel (if exists)">ETC_CLAMP_TO_BORDER</a>,
113<a name="l00029"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa6c86659cd8f985e5e7701220660d6d76">00029</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa6c86659cd8f985e5e7701220660d6d76" title="Texture is alternatingly mirrored (0..1..0..1..0..)">ETC_MIRROR</a>,
114<a name="l00031"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811faba0505a920aa4cc0a2ebbd97385a9957">00031</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811faba0505a920aa4cc0a2ebbd97385a9957" title="Texture is mirrored once and then clamped (0..1..0)">ETC_MIRROR_CLAMP</a>,
115<a name="l00033"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811faa4629bd5f10231c7e8b765ed6884e7c8">00033</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811faa4629bd5f10231c7e8b765ed6884e7c8" title="Texture is mirrored once and then clamped to edge.">ETC_MIRROR_CLAMP_TO_EDGE</a>,
116<a name="l00035"></a><a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa43169cc95e7157afe93429324a3ba371">00035</a> <a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa43169cc95e7157afe93429324a3ba371" title="Texture is mirrored once and then clamped to border.">ETC_MIRROR_CLAMP_TO_BORDER</a>
117<a name="l00036"></a>00036 };
118<a name="l00037"></a>00037 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> aTextureClampNames[] = {
119<a name="l00038"></a>00038 <span class="stringliteral">&quot;texture_clamp_repeat&quot;</span>,
120<a name="l00039"></a>00039 <span class="stringliteral">&quot;texture_clamp_clamp&quot;</span>,
121<a name="l00040"></a>00040 <span class="stringliteral">&quot;texture_clamp_clamp_to_edge&quot;</span>,
122<a name="l00041"></a>00041 <span class="stringliteral">&quot;texture_clamp_clamp_to_border&quot;</span>,
123<a name="l00042"></a>00042 <span class="stringliteral">&quot;texture_clamp_mirror&quot;</span>,
124<a name="l00043"></a>00043 <span class="stringliteral">&quot;texture_clamp_mirror_clamp&quot;</span>,
125<a name="l00044"></a>00044 <span class="stringliteral">&quot;texture_clamp_mirror_clamp_to_edge&quot;</span>,
126<a name="l00045"></a>00045 <span class="stringliteral">&quot;texture_clamp_mirror_clamp_to_border&quot;</span>, 0};
127<a name="l00046"></a>00046
128<a name="l00048"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html">00048</a> <span class="keyword">class </span><a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>
129<a name="l00049"></a>00049 {
130<a name="l00050"></a>00050 <span class="keyword">public</span>:
131<a name="l00052"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa33412579ecf68093eec0926cfddfcda">00052</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa33412579ecf68093eec0926cfddfcda" title="Default constructor.">SMaterialLayer</a>()
132<a name="l00053"></a>00053 : <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a>(0),
133<a name="l00054"></a>00054 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a>(<a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa2e2a1ec3f8045fd2653c4cd6171ac12b" title="Texture repeats.">ETC_REPEAT</a>),
134<a name="l00055"></a>00055 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a>(<a class="code" href="namespaceirr_1_1video.html#a5d9933edc5ed7704a7a084f84b39811fa2e2a1ec3f8045fd2653c4cd6171ac12b" title="Texture repeats.">ETC_REPEAT</a>),
135<a name="l00056"></a>00056 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a>(true),
136<a name="l00057"></a>00057 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a>(false),
137<a name="l00058"></a>00058 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a>(0),
138<a name="l00059"></a>00059 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a>(0),
139<a name="l00060"></a>00060 TextureMatrix(0)
140<a name="l00061"></a>00061 {}
141<a name="l00062"></a>00062
142<a name="l00064"></a>00064
143<a name="l00065"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8b8d94178e389f8afa1e6190a35f9d">00065</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa33412579ecf68093eec0926cfddfcda" title="Default constructor.">SMaterialLayer</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>&amp; other)
144<a name="l00066"></a>00066 {
145<a name="l00067"></a>00067 <span class="comment">// This pointer is checked during assignment</span>
146<a name="l00068"></a>00068 TextureMatrix = 0;
147<a name="l00069"></a>00069 *<span class="keyword">this</span> = other;
148<a name="l00070"></a>00070 }
149<a name="l00071"></a>00071
150<a name="l00073"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a3a95dd1993dcc1f2d4bf873602b49b4e">00073</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a3a95dd1993dcc1f2d4bf873602b49b4e" title="Destructor.">~SMaterialLayer</a>()
151<a name="l00074"></a>00074 {
152<a name="l00075"></a>00075 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a59e37e05219bd2ef3e57e66db4b994eb" title="Destruct an element.">destruct</a>(TextureMatrix);
153<a name="l00076"></a>00076 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a7670f5dc0be9162c669eb6ac5eae00a8" title="Deallocate memory for an array of objects.">deallocate</a>(TextureMatrix);
154<a name="l00077"></a>00077 }
155<a name="l00078"></a>00078
156<a name="l00080"></a>00080
157<a name="l00082"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a94f5f3af3cd4ded545779e1942c63734">00082</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>&amp; <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a94f5f3af3cd4ded545779e1942c63734" title="Assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>&amp; other)
158<a name="l00083"></a>00083 {
159<a name="l00084"></a>00084 <span class="comment">// Check for self-assignment!</span>
160<a name="l00085"></a>00085 <span class="keywordflow">if</span> (<span class="keyword">this</span> == &amp;other)
161<a name="l00086"></a>00086 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
162<a name="l00087"></a>00087
163<a name="l00088"></a>00088 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a>;
164<a name="l00089"></a>00089 <span class="keywordflow">if</span> (TextureMatrix)
165<a name="l00090"></a>00090 {
166<a name="l00091"></a>00091 <span class="keywordflow">if</span> (other.TextureMatrix)
167<a name="l00092"></a>00092 *TextureMatrix = *other.TextureMatrix;
168<a name="l00093"></a>00093 <span class="keywordflow">else</span>
169<a name="l00094"></a>00094 {
170<a name="l00095"></a>00095 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a59e37e05219bd2ef3e57e66db4b994eb" title="Destruct an element.">destruct</a>(TextureMatrix);
171<a name="l00096"></a>00096 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a7670f5dc0be9162c669eb6ac5eae00a8" title="Deallocate memory for an array of objects.">deallocate</a>(TextureMatrix);
172<a name="l00097"></a>00097 TextureMatrix = 0;
173<a name="l00098"></a>00098 }
174<a name="l00099"></a>00099 }
175<a name="l00100"></a>00100 <span class="keywordflow">else</span>
176<a name="l00101"></a>00101 {
177<a name="l00102"></a>00102 <span class="keywordflow">if</span> (other.TextureMatrix)
178<a name="l00103"></a>00103 {
179<a name="l00104"></a>00104 TextureMatrix = MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1" title="Allocate memory for an array of objects.">allocate</a>(1);
180<a name="l00105"></a>00105 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b" title="Construct an element.">construct</a>(TextureMatrix,*other.TextureMatrix);
181<a name="l00106"></a>00106 }
182<a name="l00107"></a>00107 <span class="keywordflow">else</span>
183<a name="l00108"></a>00108 TextureMatrix = 0;
184<a name="l00109"></a>00109 }
185<a name="l00110"></a>00110 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a>;
186<a name="l00111"></a>00111 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a>;
187<a name="l00112"></a>00112 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a>;
188<a name="l00113"></a>00113 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a>;
189<a name="l00114"></a>00114 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a>;
190<a name="l00115"></a>00115 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a> = other.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a>;
191<a name="l00116"></a>00116
192<a name="l00117"></a>00117 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
193<a name="l00118"></a>00118 }
194<a name="l00119"></a>00119
195<a name="l00121"></a>00121
196<a name="l00122"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa8d7c025f5bb282537b8886c340dbe63">00122</a> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa8d7c025f5bb282537b8886c340dbe63" title="Gets the texture transformation matrix.">getTextureMatrix</a>()
197<a name="l00123"></a>00123 {
198<a name="l00124"></a>00124 <span class="keywordflow">if</span> (!TextureMatrix)
199<a name="l00125"></a>00125 {
200<a name="l00126"></a>00126 TextureMatrix = MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1" title="Allocate memory for an array of objects.">allocate</a>(1);
201<a name="l00127"></a>00127 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b" title="Construct an element.">construct</a>(TextureMatrix,<a class="code" href="namespaceirr_1_1core.html#ac4561f3920d3fbfbfff74c9bed1f2713" title="global const identity matrix">core::IdentityMatrix</a>);
202<a name="l00128"></a>00128 }
203<a name="l00129"></a>00129 <span class="keywordflow">return</span> *TextureMatrix;
204<a name="l00130"></a>00130 }
205<a name="l00131"></a>00131
206<a name="l00133"></a>00133
207<a name="l00134"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb93485db1af2c83486e55826be59049">00134</a> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aa8d7c025f5bb282537b8886c340dbe63" title="Gets the texture transformation matrix.">getTextureMatrix</a>()<span class="keyword"> const</span>
208<a name="l00135"></a>00135 <span class="keyword"> </span>{
209<a name="l00136"></a>00136 <span class="keywordflow">if</span> (TextureMatrix)
210<a name="l00137"></a>00137 <span class="keywordflow">return</span> *TextureMatrix;
211<a name="l00138"></a>00138 <span class="keywordflow">else</span>
212<a name="l00139"></a>00139 <span class="keywordflow">return</span> <a class="code" href="namespaceirr_1_1core.html#ac4561f3920d3fbfbfff74c9bed1f2713" title="global const identity matrix">core::IdentityMatrix</a>;
213<a name="l00140"></a>00140 }
214<a name="l00141"></a>00141
215<a name="l00143"></a>00143
216<a name="l00144"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a0f84f47351a17b2a6041688a425fda1a">00144</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a0f84f47351a17b2a6041688a425fda1a" title="Sets the texture transformation matrix to mat.">setTextureMatrix</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat)
217<a name="l00145"></a>00145 {
218<a name="l00146"></a>00146 <span class="keywordflow">if</span> (!TextureMatrix)
219<a name="l00147"></a>00147 {
220<a name="l00148"></a>00148 TextureMatrix = MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1" title="Allocate memory for an array of objects.">allocate</a>(1);
221<a name="l00149"></a>00149 MatrixAllocator.<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b" title="Construct an element.">construct</a>(TextureMatrix,mat);
222<a name="l00150"></a>00150 }
223<a name="l00151"></a>00151 <span class="keywordflow">else</span>
224<a name="l00152"></a>00152 *TextureMatrix = mat;
225<a name="l00153"></a>00153 }
226<a name="l00154"></a>00154
227<a name="l00156"></a>00156
228<a name="l00158"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a400cc9efd2910b66dcdc57cbb244ce92">00158</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a400cc9efd2910b66dcdc57cbb244ce92" title="Inequality operator.">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>&amp; b)<span class="keyword"> const</span>
229<a name="l00159"></a>00159 <span class="keyword"> </span>{
230<a name="l00160"></a>00160 <span class="keywordtype">bool</span> different =
231<a name="l00161"></a>00161 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a> ||
232<a name="l00162"></a>00162 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a> ||
233<a name="l00163"></a>00163 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a> ||
234<a name="l00164"></a>00164 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a> ||
235<a name="l00165"></a>00165 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a> ||
236<a name="l00166"></a>00166 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a> ||
237<a name="l00167"></a>00167 <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a> != b.<a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a>;
238<a name="l00168"></a>00168 <span class="keywordflow">if</span> (different)
239<a name="l00169"></a>00169 <span class="keywordflow">return</span> <span class="keyword">true</span>;
240<a name="l00170"></a>00170 <span class="keywordflow">else</span>
241<a name="l00171"></a>00171 different |= (TextureMatrix != b.TextureMatrix) &amp;&amp;
242<a name="l00172"></a>00172 TextureMatrix &amp;&amp; b.TextureMatrix &amp;&amp;
243<a name="l00173"></a>00173 (*TextureMatrix != *(b.TextureMatrix));
244<a name="l00174"></a>00174 <span class="keywordflow">return</span> different;
245<a name="l00175"></a>00175 }
246<a name="l00176"></a>00176
247<a name="l00178"></a>00178
248<a name="l00180"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ac35ecbecf111244de7b91626d935494d">00180</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ac35ecbecf111244de7b91626d935494d" title="Equality operator.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html" title="Struct for holding material parameters which exist per texture layer.">SMaterialLayer</a>&amp; b)<span class="keyword"> const</span>
249<a name="l00181"></a>00181 <span class="keyword"> </span>{ <span class="keywordflow">return</span> !(b!=*<span class="keyword">this</span>); }
250<a name="l00182"></a>00182
251<a name="l00184"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450">00184</a> <a class="code" href="classirr_1_1video_1_1_i_texture.html" title="Interface of a Video Driver dependent Texture.">ITexture</a>* <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aee7162444c5ed350375c7a46e1bbe450" title="Texture.">Texture</a>;
252<a name="l00185"></a>00185
253<a name="l00187"></a>00187
254<a name="l00188"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb">00188</a> <a class="code" href="namespaceirr.html#a646874f69af8ff87fc10201b0254a761" title="8 bit unsigned variable.">u8</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#afb8408075afd8e84c8ff7c46f7a899bb" title="Texture Clamp Mode.">TextureWrapU</a>:4;
255<a name="l00189"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">00189</a> <a class="code" href="namespaceirr.html#a646874f69af8ff87fc10201b0254a761" title="8 bit unsigned variable.">u8</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ab53382f9a43cea8255d0ed48cd5676d1">TextureWrapV</a>:4;
256<a name="l00190"></a>00190
257<a name="l00192"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac">00192</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a72b122a636971204922d399ec6c0e8ac" title="Is bilinear filtering enabled? Default: true.">BilinearFilter</a>:1;
258<a name="l00193"></a>00193
259<a name="l00195"></a>00195
260<a name="l00197"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67">00197</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#ad1b093b1a8e26cb10156a02ac78bdf67" title="Is trilinear filtering enabled? Default: false.">TrilinearFilter</a>:1;
261<a name="l00198"></a>00198
262<a name="l00200"></a>00200
263<a name="l00206"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb">00206</a> <a class="code" href="namespaceirr.html#a646874f69af8ff87fc10201b0254a761" title="8 bit unsigned variable.">u8</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#aed142b316a920ec8fc5e0df09d3de3eb" title="Is anisotropic filtering enabled? Default: 0, disabled.">AnisotropicFilter</a>;
264<a name="l00207"></a>00207
265<a name="l00209"></a>00209
266<a name="l00213"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53">00213</a> <a class="code" href="namespaceirr.html#adc3ec66d7537550be0fea1c9eeadd63d" title="8 bit signed variable.">s8</a> <a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a5d1ac213ab5b7bcab23464eefd102b53" title="Bias for the mipmap choosing decision.">LODBias</a>;
267<a name="l00214"></a>00214
268<a name="l00215"></a>00215 <span class="keyword">private</span>:
269<a name="l00216"></a><a class="code" href="classirr_1_1video_1_1_s_material_layer.html#a178a261c0a0cf47aa84fb7e9345f6d6f">00216</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classirr_1_1video_1_1_s_material.html" title="Struct for holding parameters for a material renderer.">SMaterial</a>;
270<a name="l00217"></a>00217 <a class="code" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator&lt;irr::core::matrix4&gt;</a> MatrixAllocator;
271<a name="l00218"></a>00218
272<a name="l00220"></a>00220
273<a name="l00222"></a>00222 <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>* TextureMatrix;
274<a name="l00223"></a>00223 };
275<a name="l00224"></a>00224
276<a name="l00225"></a>00225 } <span class="comment">// end namespace video</span>
277<a name="l00226"></a>00226 } <span class="comment">// end namespace irr</span>
278<a name="l00227"></a>00227
279<a name="l00228"></a>00228 <span class="preprocessor">#endif // __S_MATERIAL_LAYER_H_INCLUDED__</span>
280</pre></div></div>
281</div>
282 <div id="nav-path" class="navpath">
283 <ul>
284 <li class="navelem"><a class="el" href="_s_material_layer_8h.html">SMaterialLayer.h</a> </li>
285<!-- window showing the filter options -->
286<div id="MSearchSelectWindow"
287 onmouseover="return searchBox.OnSearchSelectShow()"
288 onmouseout="return searchBox.OnSearchSelectHide()"
289 onkeydown="return searchBox.OnSearchSelectKey(event)">
290<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>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>
291
292<!-- iframe showing the search results (closed by default) -->
293<div id="MSearchResultsWindow">
294<iframe src="javascript:void(0)" frameborder="0"
295 name="MSearchResults" id="MSearchResults">
296</iframe>
297</div>
298
299
300 <li class="footer">
301<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
302Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:40 for Irrlicht 3D Engine by
303<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
304 </ul>
305 </div>
306
307
308</body>
309</html>