Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 58828b263d8f56d90ac336dea07a4586 > files > 154

irrlicht-doc-1.6.1-1mdv2010.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Irrlicht Engine: IImage.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table class="irrlicht" >
  <tr valign="middle"> 
    <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> 
      | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> 
      | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> 
      | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical 
      List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> 
      Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> 
      | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> 
      Namespace&nbsp;Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class 
      members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File 
      members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td>
  </tr>
</table>
<!-- Generated by Doxygen 1.5.6 -->
<h1>IImage.h</h1><a href="_i_image_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-2009 Nikolaus Gebhardt</span>
<a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine".</span>
<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __I_IMAGE_H_INCLUDED__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __I_IMAGE_H_INCLUDED__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="_i_reference_counted_8h.html">IReferenceCounted.h</a>"</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="position2d_8h.html">position2d.h</a>"</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="rect_8h.html">rect.h</a>"</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="_s_color_8h.html">SColor.h</a>"</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">namespace </span>irr
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015 <span class="keyword">namespace </span>video
<a name="l00016"></a>00016 {
<a name="l00017"></a>00017 
<a name="l00019"></a>00019 
<a name="l00020"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed">00020</a> <span class="keyword">enum</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed" title="An enum for the color format of textures used by the Irrlicht Engine.">ECOLOR_FORMAT</a>
<a name="l00021"></a>00021 {
<a name="l00023"></a>00023 
<a name="l00026"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed1207765b5eab1701111b5dc37b68b4bf">00026</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed1207765b5eab1701111b5dc37b68b4bf" title="16 bit color format used by the software driver.">ECF_A1R5G5B5</a> = 0,
<a name="l00027"></a>00027 
<a name="l00029"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed49b4fe9d0ba395456dcd7c76a1ae9775">00029</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed49b4fe9d0ba395456dcd7c76a1ae9775" title="Standard 16 bit color format.">ECF_R5G6B5</a>,
<a name="l00030"></a>00030 
<a name="l00032"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed3f0380aafb1e1fd59f5419a95d630a6d">00032</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed3f0380aafb1e1fd59f5419a95d630a6d" title="24 bit color, no alpha channel, but 8 bit for red, green and blue.">ECF_R8G8B8</a>,
<a name="l00033"></a>00033 
<a name="l00035"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed55c57d63efff39efe33ee733fe962df0">00035</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed55c57d63efff39efe33ee733fe962df0" title="Default 32 bit color format. 8 bits are used for every component: red, green, blue...">ECF_A8R8G8B8</a>,
<a name="l00036"></a>00036 
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edaa87f3817817a302753b8dbb26fc72ec">00040</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edaa87f3817817a302753b8dbb26fc72ec" title="16 bit floating point format using 16 bits for the red channel.">ECF_R16F</a>,
<a name="l00041"></a>00041 
<a name="l00043"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edfc5bcc8f47e78d073130300229c22113">00043</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edfc5bcc8f47e78d073130300229c22113" title="32 bit floating point format using 16 bits for the red channel and 16 bits for the...">ECF_G16R16F</a>,
<a name="l00044"></a>00044 
<a name="l00046"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed91a9f2eeac94b28d4e1421625b53ab5e">00046</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed91a9f2eeac94b28d4e1421625b53ab5e" title="64 bit floating point format 16 bits are used for the red, green, blue and alpha...">ECF_A16B16G16R16F</a>,
<a name="l00047"></a>00047 
<a name="l00049"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edd271018ac22c4ff6c76c8ebb870a6c96">00049</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edd271018ac22c4ff6c76c8ebb870a6c96" title="32 bit floating point format using 32 bits for the red channel.">ECF_R32F</a>,
<a name="l00050"></a>00050 
<a name="l00052"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed92ab57e6c0b93f96b08db4dc5656aea2">00052</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed92ab57e6c0b93f96b08db4dc5656aea2" title="64 bit floating point format using 32 bits for the red channel and 32 bits for the...">ECF_G32R32F</a>,
<a name="l00053"></a>00053 
<a name="l00055"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed22958f549a8322e81b5210edaa172157">00055</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed22958f549a8322e81b5210edaa172157" title="128 bit floating point format. 32 bits are used for the red, green, blue and alpha...">ECF_A32B32G32R32F</a>,
<a name="l00056"></a>00056 
<a name="l00058"></a><a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed209608685f06c86c6ae489896a246e77">00058</a>         <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed209608685f06c86c6ae489896a246e77" title="Unknown color format:.">ECF_UNKNOWN</a>
<a name="l00059"></a>00059 };
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00066"></a><a class="code" href="classirr_1_1video_1_1_i_image.html">00066</a> <span class="keyword">class </span><a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a>00069 
<a name="l00071"></a>00071 
<a name="l00076"></a>00076         <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="classirr_1_1video_1_1_i_image.html#5c4b0b5fa2a5f253f93c1b038e20d204" title="Lock function. Use this to get a pointer to the image data.">lock</a>() = 0;
<a name="l00077"></a>00077 
<a name="l00079"></a>00079 
<a name="l00081"></a>00081         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#d0f902d74a948ee66be2d70dc90ed38d" title="Unlock function.">unlock</a>() = 0;
<a name="l00082"></a>00082 
<a name="l00084"></a>00084         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">core::dimension2d&lt;u32&gt;</a>&amp; <a class="code" href="classirr_1_1video_1_1_i_image.html#3618c9793b7a1f3383a5c3944436a2be" title="Returns width and height of image data.">getDimension</a>() <span class="keyword">const</span> = 0;
<a name="l00085"></a>00085 
<a name="l00087"></a>00087         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#df842a506b2984f3f13d64b4967146e9" title="Returns bits per pixel.">getBitsPerPixel</a>() <span class="keyword">const</span> = 0;
<a name="l00088"></a>00088 
<a name="l00090"></a>00090         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#14509044ca5215b9714ab1091b0e86d0" title="Returns bytes per pixel.">getBytesPerPixel</a>() <span class="keyword">const</span> = 0;
<a name="l00091"></a>00091 
<a name="l00093"></a>00093         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#aec5039f63d29633a07f0717baeb409b" title="Returns image data size in bytes.">getImageDataSizeInBytes</a>() <span class="keyword">const</span> = 0;
<a name="l00094"></a>00094 
<a name="l00096"></a>00096         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#9134a214b0919ba875a130e43dbc92f1" title="Returns image data size in pixels.">getImageDataSizeInPixels</a>() <span class="keyword">const</span> = 0;
<a name="l00097"></a>00097 
<a name="l00099"></a>00099         <span class="keyword">virtual</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">SColor</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#0645adce59442e67261eca084565a9df" title="Returns a pixel.">getPixel</a>(<a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> x, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> y) <span class="keyword">const</span> = 0;
<a name="l00100"></a>00100 
<a name="l00102"></a>00102         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#89bf6020ce6ac1066e4d585ce46f79bd" title="Sets a pixel.">setPixel</a>(<a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> x, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> y, <span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">SColor</a> &amp;color, <span class="keywordtype">bool</span> blend = <span class="keyword">false</span> ) = 0;
<a name="l00103"></a>00103 
<a name="l00105"></a>00105         <span class="keyword">virtual</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed" title="An enum for the color format of textures used by the Irrlicht Engine.">ECOLOR_FORMAT</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#d045a8d172047411d03e167b201ae8a6" title="Returns the color format.">getColorFormat</a>() <span class="keyword">const</span> = 0;
<a name="l00106"></a>00106 
<a name="l00108"></a>00108         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#af3a93ad19466928da82f54d8f286990" title="Returns mask for red value of a pixel.">getRedMask</a>() <span class="keyword">const</span> = 0;
<a name="l00109"></a>00109 
<a name="l00111"></a>00111         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#1a12d75385fa9e0a063141c9ae0e4289" title="Returns mask for green value of a pixel.">getGreenMask</a>() <span class="keyword">const</span> = 0;
<a name="l00112"></a>00112 
<a name="l00114"></a>00114         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#3554ed18eb6e79213f6330d19006e9e8" title="Returns mask for blue value of a pixel.">getBlueMask</a>() <span class="keyword">const</span> = 0;
<a name="l00115"></a>00115 
<a name="l00117"></a>00117         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#36d4f895245543080f24f99dd89930fb" title="Returns mask for alpha value of a pixel.">getAlphaMask</a>() <span class="keyword">const</span> = 0;
<a name="l00118"></a>00118 
<a name="l00120"></a>00120         <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#ace497c2d12f217a795a546a735e2675" title="Returns pitch of image.">getPitch</a>() <span class="keyword">const</span> =0;
<a name="l00121"></a>00121 
<a name="l00123"></a>00123         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#6f57153218f5ecd4da9aeb5a37f92f59" title="Copies the image into the target, scaling the image to fit.">copyToScaling</a>(<span class="keywordtype">void</span>* target, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> width, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> height, <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed" title="An enum for the color format of textures used by the Irrlicht Engine.">ECOLOR_FORMAT</a> format=<a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed55c57d63efff39efe33ee733fe962df0" title="Default 32 bit color format. 8 bits are used for every component: red, green, blue...">ECF_A8R8G8B8</a>, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> pitch=0) =0;
<a name="l00124"></a>00124 
<a name="l00126"></a>00126         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#6f57153218f5ecd4da9aeb5a37f92f59" title="Copies the image into the target, scaling the image to fit.">copyToScaling</a>(<a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a>* target) =0;
<a name="l00127"></a>00127 
<a name="l00129"></a>00129         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#e4a8a2fc245f691224825aceffd53b8a" title="copies this surface into another">copyTo</a>(<a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a>* target, <span class="keyword">const</span> core::position2d&lt;s32&gt;&amp; pos=core::position2d&lt;s32&gt;(0,0)) =0;
<a name="l00130"></a>00130 
<a name="l00132"></a>00132         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#e4a8a2fc245f691224825aceffd53b8a" title="copies this surface into another">copyTo</a>(<a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a>* target, <span class="keyword">const</span> core::position2d&lt;s32&gt;&amp; pos, <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a>&amp; sourceRect, <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a>* clipRect=0) =0;
<a name="l00133"></a>00133 
<a name="l00135"></a>00135         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#7dd1e5dd19cb35be17c2fa00e38a193d" title="copies this surface into another, using the alpha mask, an cliprect and a color to...">copyToWithAlpha</a>(<a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a>* target, <span class="keyword">const</span> core::position2d&lt;s32&gt;&amp; pos,
<a name="l00136"></a>00136                         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a>&amp; sourceRect, <span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">SColor</a> &amp;color,
<a name="l00137"></a>00137                         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">core::rect&lt;s32&gt;</a>* clipRect = 0) =0;
<a name="l00138"></a>00138 
<a name="l00140"></a>00140         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#651c196f681a105fabfb5ff4f6b28682" title="copies this surface into another, scaling it to fit, appyling a box filter">copyToScalingBoxFilter</a>(<a class="code" href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data.">IImage</a>* target, <a class="code" href="namespaceirr.html#c66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> bias = 0, <span class="keywordtype">bool</span> blend = <span class="keyword">false</span>) = 0;
<a name="l00141"></a>00141 
<a name="l00143"></a>00143         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#04973e101790130f611c4c6790e5b352" title="fills the surface with black or white">fill</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_color.html" title="Class representing a 32 bit ARGB color.">SColor</a> &amp;color) =0;
<a name="l00144"></a>00144 
<a name="l00146"></a><a class="code" href="classirr_1_1video_1_1_i_image.html#70b50ef1bbb6f90ec4c43a91f521c2b6">00146</a>         <span class="keyword">static</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="classirr_1_1video_1_1_i_image.html#70b50ef1bbb6f90ec4c43a91f521c2b6" title="get the amount of Bits per Pixel of the given color format">getBitsPerPixelFromFormat</a>(<span class="keyword">const</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed" title="An enum for the color format of textures used by the Irrlicht Engine.">ECOLOR_FORMAT</a> format)
<a name="l00147"></a>00147         {
<a name="l00148"></a>00148                 <span class="keywordflow">switch</span>(format)
<a name="l00149"></a>00149                 {
<a name="l00150"></a>00150                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed1207765b5eab1701111b5dc37b68b4bf" title="16 bit color format used by the software driver.">ECF_A1R5G5B5</a>:
<a name="l00151"></a>00151                         <span class="keywordflow">return</span> 16;
<a name="l00152"></a>00152                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed49b4fe9d0ba395456dcd7c76a1ae9775" title="Standard 16 bit color format.">ECF_R5G6B5</a>:
<a name="l00153"></a>00153                         <span class="keywordflow">return</span> 16;
<a name="l00154"></a>00154                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed3f0380aafb1e1fd59f5419a95d630a6d" title="24 bit color, no alpha channel, but 8 bit for red, green and blue.">ECF_R8G8B8</a>:
<a name="l00155"></a>00155                         <span class="keywordflow">return</span> 24;
<a name="l00156"></a>00156                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed55c57d63efff39efe33ee733fe962df0" title="Default 32 bit color format. 8 bits are used for every component: red, green, blue...">ECF_A8R8G8B8</a>:
<a name="l00157"></a>00157                         <span class="keywordflow">return</span> 32;
<a name="l00158"></a>00158                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edaa87f3817817a302753b8dbb26fc72ec" title="16 bit floating point format using 16 bits for the red channel.">ECF_R16F</a>:
<a name="l00159"></a>00159                         <span class="keywordflow">return</span> 16;
<a name="l00160"></a>00160                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edfc5bcc8f47e78d073130300229c22113" title="32 bit floating point format using 16 bits for the red channel and 16 bits for the...">ECF_G16R16F</a>:
<a name="l00161"></a>00161                         <span class="keywordflow">return</span> 32;
<a name="l00162"></a>00162                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed91a9f2eeac94b28d4e1421625b53ab5e" title="64 bit floating point format 16 bits are used for the red, green, blue and alpha...">ECF_A16B16G16R16F</a>:
<a name="l00163"></a>00163                         <span class="keywordflow">return</span> 64;
<a name="l00164"></a>00164                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829edd271018ac22c4ff6c76c8ebb870a6c96" title="32 bit floating point format using 32 bits for the red channel.">ECF_R32F</a>:
<a name="l00165"></a>00165                         <span class="keywordflow">return</span> 32;
<a name="l00166"></a>00166                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed92ab57e6c0b93f96b08db4dc5656aea2" title="64 bit floating point format using 32 bits for the red channel and 32 bits for the...">ECF_G32R32F</a>:
<a name="l00167"></a>00167                         <span class="keywordflow">return</span> 64;
<a name="l00168"></a>00168                 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed22958f549a8322e81b5210edaa172157" title="128 bit floating point format. 32 bits are used for the red, green, blue and alpha...">ECF_A32B32G32R32F</a>:
<a name="l00169"></a>00169                         <span class="keywordflow">return</span> 128;
<a name="l00170"></a>00170                 <span class="keywordflow">default</span>:
<a name="l00171"></a>00171                         <span class="keywordflow">return</span> 0;
<a name="l00172"></a>00172                 }
<a name="l00173"></a>00173         }
<a name="l00174"></a>00174 
<a name="l00176"></a>00176 
<a name="l00179"></a><a class="code" href="classirr_1_1video_1_1_i_image.html#afbd373ef15670708010e0064ae3b946">00179</a>         <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1video_1_1_i_image.html#afbd373ef15670708010e0064ae3b946" title="test if the color format is only viable for RenderTarget textures">isRenderTargetOnlyFormat</a>(<span class="keyword">const</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed" title="An enum for the color format of textures used by the Irrlicht Engine.">ECOLOR_FORMAT</a> format)
<a name="l00180"></a>00180         {
<a name="l00181"></a>00181                 <span class="keywordflow">switch</span>(format)
<a name="l00182"></a>00182                 {
<a name="l00183"></a>00183                         <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed1207765b5eab1701111b5dc37b68b4bf" title="16 bit color format used by the software driver.">ECF_A1R5G5B5</a>:
<a name="l00184"></a>00184                         <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed49b4fe9d0ba395456dcd7c76a1ae9775" title="Standard 16 bit color format.">ECF_R5G6B5</a>:
<a name="l00185"></a>00185                         <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed3f0380aafb1e1fd59f5419a95d630a6d" title="24 bit color, no alpha channel, but 8 bit for red, green and blue.">ECF_R8G8B8</a>:
<a name="l00186"></a>00186                         <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#1d5e487888c32b1674a8f75116d829ed55c57d63efff39efe33ee733fe962df0" title="Default 32 bit color format. 8 bits are used for every component: red, green, blue...">ECF_A8R8G8B8</a>:
<a name="l00187"></a>00187                                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00188"></a>00188                         <span class="keywordflow">default</span>:
<a name="l00189"></a>00189                                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00190"></a>00190                 }
<a name="l00191"></a>00191         }
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 };
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 } <span class="comment">// end namespace video</span>
<a name="l00196"></a>00196 } <span class="comment">// end namespace irr</span>
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="preprocessor">#endif</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1">
<address style="align: right;">
<small> </small>
</address>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr> 
    <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td>
    <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
        Engine</a> Documentation &copy; 2003-2009 by Nikolaus Gebhardt. Generated 
        on Sun Jan 10 09:24:03 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> 
        (1.5.6)</font></em></small></div></td>
  </tr>
</table>
<address style="align: right;">
</address>
</body>
</html>