aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html516
1 files changed, 516 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html
new file mode 100644
index 0000000..5934dbd
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1video_1_1_i_texture.html
@@ -0,0 +1,516 @@
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: irr::video::ITexture Class Reference</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('classirr_1_1video_1_1_i_texture.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="summary">
88<a href="#pub-methods">Public Member Functions</a> &#124;
89<a href="#pro-methods">Protected Member Functions</a> &#124;
90<a href="#pro-attribs">Protected Attributes</a> </div>
91 <div class="headertitle">
92<div class="title">irr::video::ITexture Class Reference</div> </div>
93</div>
94<div class="contents">
95<!-- doxytag: class="irr::video::ITexture" --><!-- doxytag: inherits="irr::IReferenceCounted" -->
96<p>Interface of a Video Driver dependent Texture.
97 <a href="classirr_1_1video_1_1_i_texture.html#details">More...</a></p>
98
99<p><code>#include &lt;<a class="el" href="_i_texture_8h_source.html">ITexture.h</a>&gt;</code></p>
100<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
101 <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::video::ITexture:</div>
102<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
103</div>
104<div id="dynsection-0-content" class="dyncontent" style="display:none;">
105 <div class="center">
106 <img src="classirr_1_1video_1_1_i_texture.png" usemap="#irr::video::ITexture_map" alt=""/>
107 <map id="irr::video::ITexture_map" name="irr::video::ITexture_map">
108<area href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine." alt="irr::IReferenceCounted" shape="rect" coords="0,0,140,24"/>
109</map>
110 </div></div>
111
112<p><a href="classirr_1_1video_1_1_i_texture-members.html">List of all members.</a></p>
113<h2><a name="pub-methods"></a>
114Public Member Functions</h2>
115<ul>
116<li><a class="el" href="classirr_1_1video_1_1_i_texture.html#a32dbd62fef8a65f11e5b440706346c90">ITexture</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;name)
117<dl class="el"><dd class="mdescRight">constructor <a href="#a32dbd62fef8a65f11e5b440706346c90"></a><br/></dl><li>virtual <a class="el" href="namespaceirr_1_1video.html#a1d5e487888c32b1674a8f75116d829ed">ECOLOR_FORMAT</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#a48bbc0208c046724fc3264406f774132">getColorFormat</a> () const =0
118<dl class="el"><dd class="mdescRight">Get the color format of texture. <a href="#a48bbc0208c046724fc3264406f774132"></a><br/></dl><li>virtual <a class="el" href="namespaceirr_1_1video.html#ae35a6de6d436c76107ad157fe42356d0">E_DRIVER_TYPE</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#a4c6abdc0c789e6022e4e1b8a06cfab71">getDriverType</a> () const =0
119<dl class="el"><dd class="mdescRight">Get driver type of texture. <a href="#a4c6abdc0c789e6022e4e1b8a06cfab71"></a><br/></dl><li>const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a> &amp; <a class="el" href="classirr_1_1video_1_1_i_texture.html#acad4f8a4e9b8de5683eebbd7451e2009">getName</a> () const
120<dl class="el"><dd class="mdescRight">Get name of texture (in most cases this is the filename) <a href="#acad4f8a4e9b8de5683eebbd7451e2009"></a><br/></dl><li>virtual const <br class="typebreak"/>
121<a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>&lt; <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> &gt; &amp; <a class="el" href="classirr_1_1video_1_1_i_texture.html#adbb05bcee8ec7fa11bb4ccfdb725cda8">getOriginalSize</a> () const =0
122<dl class="el"><dd class="mdescRight">Get original size of the texture. <a href="#adbb05bcee8ec7fa11bb4ccfdb725cda8"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#a14fd1eba217a0dd86b40c4d792ab14ea">getPitch</a> () const =0
123<dl class="el"><dd class="mdescRight">Get pitch of the main texture (in bytes). <a href="#a14fd1eba217a0dd86b40c4d792ab14ea"></a><br/></dl><li>virtual const <br class="typebreak"/>
124<a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>&lt; <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> &gt; &amp; <a class="el" href="classirr_1_1video_1_1_i_texture.html#adfcf9558c0f1ae543782c03f7903c48e">getSize</a> () const =0
125<dl class="el"><dd class="mdescRight">Get dimension (=size) of the texture. <a href="#adfcf9558c0f1ae543782c03f7903c48e"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1video_1_1_i_texture.html#a38b90ca5d956bd9772f2aa8032b38cd5">hasAlpha</a> () const
126<dl class="el"><dd class="mdescRight">Returns if the texture has an alpha channel. <a href="#a38b90ca5d956bd9772f2aa8032b38cd5"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1video_1_1_i_texture.html#a37444068f2f292c43c2ffd516a32a764">hasMipMaps</a> () const
127<dl class="el"><dd class="mdescRight">Check whether the texture has MipMaps. <a href="#a37444068f2f292c43c2ffd516a32a764"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1video_1_1_i_texture.html#ab085e1f1a76a55ab4c5fcdfdeedfb45c">isRenderTarget</a> () const
128<dl class="el"><dd class="mdescRight">Check whether the texture is a render target. <a href="#ab085e1f1a76a55ab4c5fcdfdeedfb45c"></a><br/></dl><li>virtual void * <a class="el" href="classirr_1_1video_1_1_i_texture.html#aa09ee89973a645ebdd2bd61ed859df38">lock</a> (<a class="el" href="namespaceirr_1_1video.html#a3916d259e8fe0d0d02e8ee0adc8af5bc">E_TEXTURE_LOCK_MODE</a> mode=ETLM_READ_WRITE, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> mipmapLevel=0)=0
129<dl class="el"><dd class="mdescRight">Lock function. <a href="#aa09ee89973a645ebdd2bd61ed859df38"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1video_1_1_i_texture.html#a9517c37f071479d0698cdf597f8fea45">regenerateMipMapLevels</a> (void *mipmapData=0)=0
130<dl class="el"><dd class="mdescRight">Regenerates the mip map levels of the texture. <a href="#a9517c37f071479d0698cdf597f8fea45"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1video_1_1_i_texture.html#a15b9a25aa18528ade37a492bd7b20a10">unlock</a> ()=0
131<dl class="el"><dd class="mdescRight">Unlock function. Must be called after a <a class="el" href="classirr_1_1video_1_1_i_texture.html#aa09ee89973a645ebdd2bd61ed859df38" title="Lock function.">lock()</a> to the texture. <a href="#a15b9a25aa18528ade37a492bd7b20a10"></a><br/></dl></ul>
132<h2><a name="pro-methods"></a>
133Protected Member Functions</h2>
134<ul>
135<li><a class="el" href="namespaceirr_1_1video.html#acaf6f7414534f7d62bff18c5bf11876f">E_TEXTURE_CREATION_FLAG</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#afff3160f6aa5f749365ae4f776a440f3">getTextureFormatFromFlags</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> flags)
136<dl class="el"><dd class="mdescRight">Helper function, helps to get the desired texture creation format from the flags. <a href="#afff3160f6aa5f749365ae4f776a440f3"></a><br/></dl></ul>
137<h2><a name="pro-attribs"></a>
138Protected Attributes</h2>
139<ul>
140<li><a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#ad1ab74da43861e50f0ec6a2e9a813fb4">NamedPath</a>
141</ul>
142<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
143<div class="textblock"><p>Interface of a Video Driver dependent Texture. </p>
144<p>An <a class="el" href="classirr_1_1video_1_1_i_texture.html" title="Interface of a Video Driver dependent Texture.">ITexture</a> is created by an <a class="el" href="classirr_1_1video_1_1_i_video_driver.html" title="Interface to driver which is able to perform 2d and 3d graphics functions.">IVideoDriver</a> by using <a class="el" href="classirr_1_1video_1_1_i_video_driver.html#a8c02ee280bb738cdf38b77e7a798244e" title="Creates an empty texture of specified size.">IVideoDriver::addTexture</a> or <a class="el" href="classirr_1_1video_1_1_i_video_driver.html#af4055165190e4adf221c6dc6f2434ea0" title="Get access to a named texture.">IVideoDriver::getTexture</a>. After that, the texture may only be used by this VideoDriver. As you can imagine, textures of the DirectX and the OpenGL device will, e.g., not be compatible. An exception is the Software device and the NULL device, their textures are compatible. If you try to use a texture created by one device with an other device, the device will refuse to do that and write a warning or an error message to the output buffer. </p>
145
146<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00098">98</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
147</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
148<a class="anchor" id="a32dbd62fef8a65f11e5b440706346c90"></a><!-- doxytag: member="irr::video::ITexture::ITexture" ref="a32dbd62fef8a65f11e5b440706346c90" args="(const io::path &amp;name)" -->
149<div class="memitem">
150<div class="memproto">
151 <table class="memname">
152 <tr>
153 <td class="memname">irr::video::ITexture::ITexture </td>
154 <td>(</td>
155 <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
156 <td class="paramname"><em>name</em></td><td>)</td>
157 <td><code> [inline]</code></td>
158 </tr>
159 </table>
160</div>
161<div class="memdoc">
162
163<p>constructor </p>
164
165<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00103">103</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
166
167</div>
168</div>
169<hr/><h2>Member Function Documentation</h2>
170<a class="anchor" id="a48bbc0208c046724fc3264406f774132"></a><!-- doxytag: member="irr::video::ITexture::getColorFormat" ref="a48bbc0208c046724fc3264406f774132" args="() const =0" -->
171<div class="memitem">
172<div class="memproto">
173 <table class="memname">
174 <tr>
175 <td class="memname">virtual <a class="el" href="namespaceirr_1_1video.html#a1d5e487888c32b1674a8f75116d829ed">ECOLOR_FORMAT</a> irr::video::ITexture::getColorFormat </td>
176 <td>(</td>
177 <td class="paramname"></td><td>)</td>
178 <td> const<code> [pure virtual]</code></td>
179 </tr>
180 </table>
181</div>
182<div class="memdoc">
183
184<p>Get the color format of texture. </p>
185<dl class="return"><dt><b>Returns:</b></dt><dd>The color format of texture. </dd></dl>
186
187<p>Referenced by <a class="el" href="_i_texture_8h_source.html#l00170">hasAlpha()</a>.</p>
188
189</div>
190</div>
191<a class="anchor" id="a4c6abdc0c789e6022e4e1b8a06cfab71"></a><!-- doxytag: member="irr::video::ITexture::getDriverType" ref="a4c6abdc0c789e6022e4e1b8a06cfab71" args="() const =0" -->
192<div class="memitem">
193<div class="memproto">
194 <table class="memname">
195 <tr>
196 <td class="memname">virtual <a class="el" href="namespaceirr_1_1video.html#ae35a6de6d436c76107ad157fe42356d0">E_DRIVER_TYPE</a> irr::video::ITexture::getDriverType </td>
197 <td>(</td>
198 <td class="paramname"></td><td>)</td>
199 <td> const<code> [pure virtual]</code></td>
200 </tr>
201 </table>
202</div>
203<div class="memdoc">
204
205<p>Get driver type of texture. </p>
206<p>This is the driver, which created the texture. This method is used internally by the video devices, to check, if they may use a texture because textures may be incompatible between different devices. </p>
207<dl class="return"><dt><b>Returns:</b></dt><dd>Driver type of texture. </dd></dl>
208
209</div>
210</div>
211<a class="anchor" id="acad4f8a4e9b8de5683eebbd7451e2009"></a><!-- doxytag: member="irr::video::ITexture::getName" ref="acad4f8a4e9b8de5683eebbd7451e2009" args="() const " -->
212<div class="memitem">
213<div class="memproto">
214 <table class="memname">
215 <tr>
216 <td class="memname">const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a>&amp; irr::video::ITexture::getName </td>
217 <td>(</td>
218 <td class="paramname"></td><td>)</td>
219 <td> const<code> [inline]</code></td>
220 </tr>
221 </table>
222</div>
223<div class="memdoc">
224
225<p>Get name of texture (in most cases this is the filename) </p>
226
227<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00191">191</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
228
229<p>References <a class="el" href="_i_texture_8h_source.html#l00211">NamedPath</a>.</p>
230
231</div>
232</div>
233<a class="anchor" id="adbb05bcee8ec7fa11bb4ccfdb725cda8"></a><!-- doxytag: member="irr::video::ITexture::getOriginalSize" ref="adbb05bcee8ec7fa11bb4ccfdb725cda8" args="() const =0" -->
234<div class="memitem">
235<div class="memproto">
236 <table class="memname">
237 <tr>
238 <td class="memname">virtual const <a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>&lt;<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&gt;&amp; irr::video::ITexture::getOriginalSize </td>
239 <td>(</td>
240 <td class="paramname"></td><td>)</td>
241 <td> const<code> [pure virtual]</code></td>
242 </tr>
243 </table>
244</div>
245<div class="memdoc">
246
247<p>Get original size of the texture. </p>
248<p>The texture is usually scaled, if it was created with an unoptimal size. For example if the size was not a power of two. This method returns the size of the texture it had before it was scaled. Can be useful when drawing 2d images on the screen, which should have the exact size of the original texture. Use <a class="el" href="classirr_1_1video_1_1_i_texture.html#adfcf9558c0f1ae543782c03f7903c48e" title="Get dimension (=size) of the texture.">ITexture::getSize()</a> if you want to know the real size it has now stored in the system. </p>
249<dl class="return"><dt><b>Returns:</b></dt><dd>The original size of the texture. </dd></dl>
250
251</div>
252</div>
253<a class="anchor" id="a14fd1eba217a0dd86b40c4d792ab14ea"></a><!-- doxytag: member="irr::video::ITexture::getPitch" ref="a14fd1eba217a0dd86b40c4d792ab14ea" args="() const =0" -->
254<div class="memitem">
255<div class="memproto">
256 <table class="memname">
257 <tr>
258 <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::video::ITexture::getPitch </td>
259 <td>(</td>
260 <td class="paramname"></td><td>)</td>
261 <td> const<code> [pure virtual]</code></td>
262 </tr>
263 </table>
264</div>
265<div class="memdoc">
266
267<p>Get pitch of the main texture (in bytes). </p>
268<p>The pitch is the amount of bytes used for a row of pixels in a texture. </p>
269<dl class="return"><dt><b>Returns:</b></dt><dd>Pitch of texture in bytes. </dd></dl>
270
271</div>
272</div>
273<a class="anchor" id="adfcf9558c0f1ae543782c03f7903c48e"></a><!-- doxytag: member="irr::video::ITexture::getSize" ref="adfcf9558c0f1ae543782c03f7903c48e" args="() const =0" -->
274<div class="memitem">
275<div class="memproto">
276 <table class="memname">
277 <tr>
278 <td class="memname">virtual const <a class="el" href="classirr_1_1core_1_1dimension2d.html">core::dimension2d</a>&lt;<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&gt;&amp; irr::video::ITexture::getSize </td>
279 <td>(</td>
280 <td class="paramname"></td><td>)</td>
281 <td> const<code> [pure virtual]</code></td>
282 </tr>
283 </table>
284</div>
285<div class="memdoc">
286
287<p>Get dimension (=size) of the texture. </p>
288<dl class="return"><dt><b>Returns:</b></dt><dd>The size of the texture. </dd></dl>
289
290</div>
291</div>
292<a class="anchor" id="afff3160f6aa5f749365ae4f776a440f3"></a><!-- doxytag: member="irr::video::ITexture::getTextureFormatFromFlags" ref="afff3160f6aa5f749365ae4f776a440f3" args="(u32 flags)" -->
293<div class="memitem">
294<div class="memproto">
295 <table class="memname">
296 <tr>
297 <td class="memname"><a class="el" href="namespaceirr_1_1video.html#acaf6f7414534f7d62bff18c5bf11876f">E_TEXTURE_CREATION_FLAG</a> irr::video::ITexture::getTextureFormatFromFlags </td>
298 <td>(</td>
299 <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
300 <td class="paramname"><em>flags</em></td><td>)</td>
301 <td><code> [inline, protected]</code></td>
302 </tr>
303 </table>
304</div>
305<div class="memdoc">
306
307<p>Helper function, helps to get the desired texture creation format from the flags. </p>
308<dl class="return"><dt><b>Returns:</b></dt><dd>Either ETCF_ALWAYS_32_BIT, ETCF_ALWAYS_16_BIT, ETCF_OPTIMIZED_FOR_QUALITY, or ETCF_OPTIMIZED_FOR_SPEED. </dd></dl>
309
310<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00198">198</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
311
312<p>References <a class="el" href="_i_texture_8h_source.html#l00032">irr::video::ETCF_ALWAYS_16_BIT</a>, <a class="el" href="_i_texture_8h_source.html#l00041">irr::video::ETCF_ALWAYS_32_BIT</a>, <a class="el" href="_i_texture_8h_source.html#l00049">irr::video::ETCF_OPTIMIZED_FOR_QUALITY</a>, and <a class="el" href="_i_texture_8h_source.html#l00056">irr::video::ETCF_OPTIMIZED_FOR_SPEED</a>.</p>
313
314</div>
315</div>
316<a class="anchor" id="a38b90ca5d956bd9772f2aa8032b38cd5"></a><!-- doxytag: member="irr::video::ITexture::hasAlpha" ref="a38b90ca5d956bd9772f2aa8032b38cd5" args="() const " -->
317<div class="memitem">
318<div class="memproto">
319 <table class="memname">
320 <tr>
321 <td class="memname">virtual bool irr::video::ITexture::hasAlpha </td>
322 <td>(</td>
323 <td class="paramname"></td><td>)</td>
324 <td> const<code> [inline, virtual]</code></td>
325 </tr>
326 </table>
327</div>
328<div class="memdoc">
329
330<p>Returns if the texture has an alpha channel. </p>
331
332<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00170">170</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
333
334<p>References <a class="el" href="_s_color_8h_source.html#l00023">irr::video::ECF_A1R5G5B5</a>, <a class="el" href="_s_color_8h_source.html#l00032">irr::video::ECF_A8R8G8B8</a>, and <a class="el" href="classirr_1_1video_1_1_i_texture.html#a48bbc0208c046724fc3264406f774132">getColorFormat()</a>.</p>
335
336</div>
337</div>
338<a class="anchor" id="a37444068f2f292c43c2ffd516a32a764"></a><!-- doxytag: member="irr::video::ITexture::hasMipMaps" ref="a37444068f2f292c43c2ffd516a32a764" args="() const " -->
339<div class="memitem">
340<div class="memproto">
341 <table class="memname">
342 <tr>
343 <td class="memname">virtual bool irr::video::ITexture::hasMipMaps </td>
344 <td>(</td>
345 <td class="paramname"></td><td>)</td>
346 <td> const<code> [inline, virtual]</code></td>
347 </tr>
348 </table>
349</div>
350<div class="memdoc">
351
352<p>Check whether the texture has MipMaps. </p>
353<dl class="return"><dt><b>Returns:</b></dt><dd>True if texture has MipMaps, else false. </dd></dl>
354
355<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00167">167</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
356
357</div>
358</div>
359<a class="anchor" id="ab085e1f1a76a55ab4c5fcdfdeedfb45c"></a><!-- doxytag: member="irr::video::ITexture::isRenderTarget" ref="ab085e1f1a76a55ab4c5fcdfdeedfb45c" args="() const " -->
360<div class="memitem">
361<div class="memproto">
362 <table class="memname">
363 <tr>
364 <td class="memname">virtual bool irr::video::ITexture::isRenderTarget </td>
365 <td>(</td>
366 <td class="paramname"></td><td>)</td>
367 <td> const<code> [inline, virtual]</code></td>
368 </tr>
369 </table>
370</div>
371<div class="memdoc">
372
373<p>Check whether the texture is a render target. </p>
374<p>Render targets can be set as such in the video driver, in order to render a scene into the texture. Once unbound as render target, they can be used just as usual textures again. </p>
375<dl class="return"><dt><b>Returns:</b></dt><dd>True if this is a render target, otherwise false. </dd></dl>
376
377<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00188">188</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
378
379</div>
380</div>
381<a class="anchor" id="aa09ee89973a645ebdd2bd61ed859df38"></a><!-- doxytag: member="irr::video::ITexture::lock" ref="aa09ee89973a645ebdd2bd61ed859df38" args="(E_TEXTURE_LOCK_MODE mode=ETLM_READ_WRITE, u32 mipmapLevel=0)=0" -->
382<div class="memitem">
383<div class="memproto">
384 <table class="memname">
385 <tr>
386 <td class="memname">virtual void* irr::video::ITexture::lock </td>
387 <td>(</td>
388 <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a3916d259e8fe0d0d02e8ee0adc8af5bc">E_TEXTURE_LOCK_MODE</a>&#160;</td>
389 <td class="paramname"><em>mode</em> = <code>ETLM_READ_WRITE</code>, </td>
390 </tr>
391 <tr>
392 <td class="paramkey"></td>
393 <td></td>
394 <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
395 <td class="paramname"><em>mipmapLevel</em> = <code>0</code>&#160;</td>
396 </tr>
397 <tr>
398 <td></td>
399 <td>)</td>
400 <td></td><td><code> [pure virtual]</code></td>
401 </tr>
402 </table>
403</div>
404<div class="memdoc">
405
406<p>Lock function. </p>
407<p>Locks the Texture and returns a pointer to access the pixels. After <a class="el" href="classirr_1_1video_1_1_i_texture.html#aa09ee89973a645ebdd2bd61ed859df38" title="Lock function.">lock()</a> has been called and all operations on the pixels are done, you must call <a class="el" href="classirr_1_1video_1_1_i_texture.html#a15b9a25aa18528ade37a492bd7b20a10" title="Unlock function. Must be called after a lock() to the texture.">unlock()</a>. Locks are not accumulating, hence one unlock will do for an arbitrary number of previous locks. You should avoid locking different levels without unlocking inbetween, though, because only the last level locked will be unlocked. The size of the i-th mipmap level is defined as max(<a class="el" href="classirr_1_1video_1_1_i_texture.html#adfcf9558c0f1ae543782c03f7903c48e" title="Get dimension (=size) of the texture.">getSize()</a>.Width&gt;&gt;i,1) and max(<a class="el" href="classirr_1_1video_1_1_i_texture.html#adfcf9558c0f1ae543782c03f7903c48e" title="Get dimension (=size) of the texture.">getSize()</a>.Height&gt;&gt;i,1) </p>
408<dl><dt><b>Parameters:</b></dt><dd>
409 <table class="params">
410 <tr><td class="paramname">mode</td><td>Specifies what kind of changes to the locked texture are allowed. Unspecified behavior will arise if texture is written in read only mode or read from in write only mode. Support for this feature depends on the driver, so don't rely on the texture being write-protected when locking with read-only, etc. </td></tr>
411 <tr><td class="paramname">mipmapLevel</td><td>Number of the mipmapLevel to lock. 0 is main texture. Non-existing levels will silently fail and return 0. </td></tr>
412 </table>
413 </dd>
414</dl>
415<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a pointer to the pixel data. The format of the pixel can be determined by using <a class="el" href="classirr_1_1video_1_1_i_texture.html#a48bbc0208c046724fc3264406f774132" title="Get the color format of texture.">getColorFormat()</a>. 0 is returned, if the texture cannot be locked. </dd></dl>
416
417</div>
418</div>
419<a class="anchor" id="a9517c37f071479d0698cdf597f8fea45"></a><!-- doxytag: member="irr::video::ITexture::regenerateMipMapLevels" ref="a9517c37f071479d0698cdf597f8fea45" args="(void *mipmapData=0)=0" -->
420<div class="memitem">
421<div class="memproto">
422 <table class="memname">
423 <tr>
424 <td class="memname">virtual void irr::video::ITexture::regenerateMipMapLevels </td>
425 <td>(</td>
426 <td class="paramtype">void *&#160;</td>
427 <td class="paramname"><em>mipmapData</em> = <code>0</code></td><td>)</td>
428 <td><code> [pure virtual]</code></td>
429 </tr>
430 </table>
431</div>
432<div class="memdoc">
433
434<p>Regenerates the mip map levels of the texture. </p>
435<p>Required after modifying the texture, usually after calling <a class="el" href="classirr_1_1video_1_1_i_texture.html#a15b9a25aa18528ade37a492bd7b20a10" title="Unlock function. Must be called after a lock() to the texture.">unlock()</a>. </p>
436<dl><dt><b>Parameters:</b></dt><dd>
437 <table class="params">
438 <tr><td class="paramname">mipmapData</td><td>Optional parameter to pass in image data which will be used instead of the previously stored or automatically generated mipmap data. The data has to be a continuous pixel data for all mipmaps until 1x1 pixel. Each mipmap has to be half the width and height of the previous level. At least one pixel will be always kept. </td></tr>
439 </table>
440 </dd>
441</dl>
442
443</div>
444</div>
445<a class="anchor" id="a15b9a25aa18528ade37a492bd7b20a10"></a><!-- doxytag: member="irr::video::ITexture::unlock" ref="a15b9a25aa18528ade37a492bd7b20a10" args="()=0" -->
446<div class="memitem">
447<div class="memproto">
448 <table class="memname">
449 <tr>
450 <td class="memname">virtual void irr::video::ITexture::unlock </td>
451 <td>(</td>
452 <td class="paramname"></td><td>)</td>
453 <td><code> [pure virtual]</code></td>
454 </tr>
455 </table>
456</div>
457<div class="memdoc">
458
459<p>Unlock function. Must be called after a <a class="el" href="classirr_1_1video_1_1_i_texture.html#aa09ee89973a645ebdd2bd61ed859df38" title="Lock function.">lock()</a> to the texture. </p>
460<p>One should avoid to call unlock more than once before another lock. The last locked mip level will be unlocked. </p>
461
462</div>
463</div>
464<hr/><h2>Member Data Documentation</h2>
465<a class="anchor" id="ad1ab74da43861e50f0ec6a2e9a813fb4"></a><!-- doxytag: member="irr::video::ITexture::NamedPath" ref="ad1ab74da43861e50f0ec6a2e9a813fb4" args="" -->
466<div class="memitem">
467<div class="memproto">
468 <table class="memname">
469 <tr>
470 <td class="memname"><a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a> <a class="el" href="classirr_1_1video_1_1_i_texture.html#ad1ab74da43861e50f0ec6a2e9a813fb4">irr::video::ITexture::NamedPath</a><code> [protected]</code></td>
471 </tr>
472 </table>
473</div>
474<div class="memdoc">
475
476<p>Definition at line <a class="el" href="_i_texture_8h_source.html#l00211">211</a> of file <a class="el" href="_i_texture_8h_source.html">ITexture.h</a>.</p>
477
478<p>Referenced by <a class="el" href="_i_texture_8h_source.html#l00191">getName()</a>.</p>
479
480</div>
481</div>
482<hr/>The documentation for this class was generated from the following file:<ul>
483<li><a class="el" href="_i_texture_8h_source.html">ITexture.h</a></li>
484</ul>
485</div>
486</div>
487 <div id="nav-path" class="navpath">
488 <ul>
489 <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li>
490 <li class="navelem"><a class="el" href="namespaceirr_1_1video.html">video</a> </li>
491 <li class="navelem"><a class="el" href="classirr_1_1video_1_1_i_texture.html">ITexture</a> </li>
492<!-- window showing the filter options -->
493<div id="MSearchSelectWindow"
494 onmouseover="return searchBox.OnSearchSelectShow()"
495 onmouseout="return searchBox.OnSearchSelectHide()"
496 onkeydown="return searchBox.OnSearchSelectKey(event)">
497<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>
498
499<!-- iframe showing the search results (closed by default) -->
500<div id="MSearchResultsWindow">
501<iframe src="javascript:void(0)" frameborder="0"
502 name="MSearchResults" id="MSearchResults">
503</iframe>
504</div>
505
506
507 <li class="footer">
508<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
509Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:48 for Irrlicht 3D Engine by
510<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
511 </ul>
512 </div>
513
514
515</body>
516</html>