1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Crazy Eddies GUI System: CEGUI::Texture Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceCEGUI.html">CEGUI</a> </li>
<li class="navelem"><a class="el" href="classCEGUI_1_1Texture.html">Texture</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">CEGUI::Texture Class Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::Texture" -->
<p>Abstract base class specifying the required interface for <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> objects.
<a href="classCEGUI_1_1Texture.html#details">More...</a></p>
<p>Inherited by <a class="el" href="classCEGUI_1_1Direct3D10Texture.html">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html">CEGUI::OpenGLTexture</a>.</p>
<p><a href="classCEGUI_1_1Texture-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45">PixelFormat</a> { <a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45a7290ad07d656079e340f0c45fa161fe5">PF_RGB</a>,
<a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45a94d9368fdf68939339b9de0ffa80a422">PF_RGBA</a>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumerated type containing the supported pixel formats that can be passed to loadFromMemory. <a href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#a362b2b8c4a77f2380a1dd10f609c86ae">getSize</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current pixel size of the texture. <a href="#a362b2b8c4a77f2380a1dd10f609c86ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#aae220cf1d9dc112ef5f00a54628c36ce">getOriginalDataSize</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the original pixel size of the data loaded into the texture. <a href="#aae220cf1d9dc112ef5f00a54628c36ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#a3b71ae3940f4e76673af663aa475b199">getTexelScaling</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns pixel to texel scale values that should be used for converting pixel values to texture co-ords. <a href="#a3b71ae3940f4e76673af663aa475b199"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#a76b2d285c2af474739bf2b608d857d0b">loadFromFile</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &filename, const <a class="el" href="classCEGUI_1_1String.html">String</a> &resourceGroup)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Loads the specified image file into the texture. The texture is resized as required to hold the image. <a href="#a76b2d285c2af474739bf2b608d857d0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#ab4ec02a12731a72069f59ef475c20da2">loadFromMemory</a> (const void *buffer, const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &buffer_size, <a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45">PixelFormat</a> pixel_format)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. <a href="#ab4ec02a12731a72069f59ef475c20da2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#a6a927c3292f409f03f31c18ab9a6e957">saveToMemory</a> (void *buffer)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Save / dump the content of the texture to a memory buffer. The dumped pixel format is always RGBA (4 bytes per pixel). <a href="#a6a927c3292f409f03f31c18ab9a6e957"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb33f2fc437333f609e756ac13353ec7"></a><!-- doxytag: member="CEGUI::Texture::~Texture" ref="afb33f2fc437333f609e756ac13353ec7" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1Texture.html#afb33f2fc437333f609e756ac13353ec7">~Texture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> base class. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Abstract base class specifying the required interface for <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> objects. </p>
<p><a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> objects are created via the <a class="el" href="classCEGUI_1_1Renderer.html" title="Abstract class defining the basic required interface for Renderer objects.">Renderer</a>. The actual inner workings of any <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> object are dependant upon the <a class="el" href="classCEGUI_1_1Renderer.html" title="Abstract class defining the basic required interface for Renderer objects.">Renderer</a> (and underlying API) in use. This base class defines the minimal set of functions that is required for the rest of the system to work. <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> objects are only created through the <a class="el" href="classCEGUI_1_1Renderer.html" title="Abstract class defining the basic required interface for Renderer objects.">Renderer</a> object's texture creation functions. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a2156af785c41d517b3d8c6668ac08e45"></a><!-- doxytag: member="CEGUI::Texture::PixelFormat" ref="a2156af785c41d517b3d8c6668ac08e45" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45">CEGUI::Texture::PixelFormat</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Enumerated type containing the supported pixel formats that can be passed to loadFromMemory. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a2156af785c41d517b3d8c6668ac08e45a7290ad07d656079e340f0c45fa161fe5"></a><!-- doxytag: member="PF_RGB" ref="a2156af785c41d517b3d8c6668ac08e45a7290ad07d656079e340f0c45fa161fe5" args="" -->PF_RGB</em> </td><td>
<p>Each pixel is 3 bytes. RGB in that order. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2156af785c41d517b3d8c6668ac08e45a94d9368fdf68939339b9de0ffa80a422"></a><!-- doxytag: member="PF_RGBA" ref="a2156af785c41d517b3d8c6668ac08e45a94d9368fdf68939339b9de0ffa80a422" args="" -->PF_RGBA</em> </td><td>
<p>Each pixel is 4 bytes. RGBA in that order. </p>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aae220cf1d9dc112ef5f00a54628c36ce"></a><!-- doxytag: member="CEGUI::Texture::getOriginalDataSize" ref="aae220cf1d9dc112ef5f00a54628c36ce" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classCEGUI_1_1Size.html">Size</a>& CEGUI::Texture::getOriginalDataSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the original pixel size of the data loaded into the texture. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>reference to a <a class="el" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> object that describes the original size, in pixels, of the data loaded into the texture. </dd></dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#a9899f371dffe62b3f5a70a1c648359c6">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#aa69893bf294d228d34e1d70e984e2801">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#ae66b27ccd0ef55e63e3c417f9b0be1f6">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#a9b37596788e629a49026b0bf93dddbb1">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#ac4d8eae8d647584abfaaed089414a1b1">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#ac3481cdb02b7a584939e456475d7736f">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#a68d4c1065904af8627f89de198221370">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#a3eb6251be58218921c1d9832e1b9f537">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
<a class="anchor" id="a362b2b8c4a77f2380a1dd10f609c86ae"></a><!-- doxytag: member="CEGUI::Texture::getSize" ref="a362b2b8c4a77f2380a1dd10f609c86ae" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classCEGUI_1_1Size.html">Size</a>& CEGUI::Texture::getSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the current pixel size of the texture. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to a <a class="el" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> object that describes the size of the texture in pixels. </dd></dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#a345d954677d21924e8d2f8bf85bd9f49">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#a770ce06deec16e12c77d627b4355c8c4">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#aae85d5a6d6d80ad4349fe4b74c02f326">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#a8133e43511cb9ce26adae732f9dd8746">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#a244be2f980c0d3cc87868b63bdbd87d8">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#a15fd89f80ecb62c4be17b81214865943">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#af9bb9cda329e8756f78be5e3adadb769">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#a15c130382430151075ebbdd5edc0d7e2">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
<a class="anchor" id="a3b71ae3940f4e76673af663aa475b199"></a><!-- doxytag: member="CEGUI::Texture::getTexelScaling" ref="a3b71ae3940f4e76673af663aa475b199" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a>& CEGUI::Texture::getTexelScaling </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns pixel to texel scale values that should be used for converting pixel values to texture co-ords. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to a <a class="el" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Vector2</a> object that describes the scaling values required to accurately map pixel positions to texture co-ordinates. </dd></dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#ada1bf41e0fdf605fb2e67789cbae2299">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#af4e544464de5785dbea2cf77a9909b17">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#acdfe65ef1bf91b3354a281b229b22e30">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#ab120a0659643d6cea9fed9458990ff58">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#a0d41e7c6048a017c8d64074f90b8e91d">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#a34389ebfc8b6c1e96a97a435a2a9f677">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#ae0cbb7ef541a1bda9d7e73d00327d4ef">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#afa2e23043b20cdc552868898316612f5">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
<a class="anchor" id="a76b2d285c2af474739bf2b608d857d0b"></a><!-- doxytag: member="CEGUI::Texture::loadFromFile" ref="a76b2d285c2af474739bf2b608d857d0b" args="(const String &filename, const String &resourceGroup)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void CEGUI::Texture::loadFromFile </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> & </td>
<td class="paramname"><em>resourceGroup</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Loads the specified image file into the texture. The texture is resized as required to hold the image. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The filename of the image file that is to be loaded into the texture</td></tr>
<tr><td class="paramname">resourceGroup</td><td>Resource group identifier to be passed to the resource provider when loading the image file.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#a9f7a2b51c6797295c75da9a41f617e84">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#a23f6013540c3bacc4683a2e6e0838dcf">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#a0bd0faf6bd11b84f5f9bd824bb5774f8">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#a12aa4990f34efd9730ca8cd967b72cdb">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#ab83c690af5137d6dbb07bdba285cc5b6">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#ab665277a7e4ccf28017bd7a0c9b74bb0">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#ae92f3e945339efaa9e848e02ab9a133b">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#a59ef0dad6986679fa0a4ad27e2835b9a">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
<a class="anchor" id="ab4ec02a12731a72069f59ef475c20da2"></a><!-- doxytag: member="CEGUI::Texture::loadFromMemory" ref="ab4ec02a12731a72069f59ef475c20da2" args="(const void *buffer, const Size &buffer_size, PixelFormat pixel_format)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void CEGUI::Texture::loadFromMemory </td>
<td>(</td>
<td class="paramtype">const void * </td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td>
<td class="paramname"><em>buffer_size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCEGUI_1_1Texture.html#a2156af785c41d517b3d8c6668ac08e45">PixelFormat</a> </td>
<td class="paramname"><em>pixel_format</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>Pointer to the buffer containing the image data.</td></tr>
<tr><td class="paramname">buffer_size</td><td><a class="el" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> of the buffer (in pixels as specified by <em>pixelFormat</em>)</td></tr>
<tr><td class="paramname">pixel_format</td><td>PixelFormat value describing the format contained in <em>buffPtr</em>.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#a2fd7d50d0fd143cbd9df36daa8ca2993">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#a3057202cb3a7482e70b4543079fbc54d">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#a9821a5873e0ea29cddd3d1590f18b11f">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#a4eca176a669642300aff15687e54ea46">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#a51e571e48f0d1dd78acb615990aa3af0">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#af7bebdb5d7372dc2842ecc4eb0b088db">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#abf900afe2f71ba0d6bb4001368869cc9">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#a70fc6856c52c051296deb26cc81ae1f8">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
<a class="anchor" id="a6a927c3292f409f03f31c18ab9a6e957"></a><!-- doxytag: member="CEGUI::Texture::saveToMemory" ref="a6a927c3292f409f03f31c18ab9a6e957" args="(void *buffer)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void CEGUI::Texture::saveToMemory </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Save / dump the content of the texture to a memory buffer. The dumped pixel format is always RGBA (4 bytes per pixel). </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>Pointer to the buffer that is to receive the image data. You must make sure that this buffer is large enough to hold the dumped texture data, the required pixel dimensions can be established by calling getSize. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classCEGUI_1_1Direct3D10Texture.html#aa033525cc573136b9c6b92eb2898a1c2">CEGUI::Direct3D10Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D11Texture.html#a09c79a0cbf44a0ea738b1e1d2815dfee">CEGUI::Direct3D11Texture</a>, <a class="el" href="classCEGUI_1_1Direct3D9Texture.html#ad5f70f51120b88a9fdb9067ed5601e52">CEGUI::Direct3D9Texture</a>, <a class="el" href="classCEGUI_1_1DirectFBTexture.html#a1eb5373ae9cc62c92592b4a2dfd56af5">CEGUI::DirectFBTexture</a>, <a class="el" href="classCEGUI_1_1IrrlichtTexture.html#a7b0349ca501259d5db3d68d34caf6bc6">CEGUI::IrrlichtTexture</a>, <a class="el" href="classCEGUI_1_1NullTexture.html#ade37931ed8eed78ccc8f49b016c78f26">CEGUI::NullTexture</a>, <a class="el" href="classCEGUI_1_1OgreTexture.html#a8bcb3d64d837c631346558764c9ac830">CEGUI::OgreTexture</a>, and <a class="el" href="classCEGUI_1_1OpenGLTexture.html#a7578b8643ccbfa24f88d408dcf4aa279">CEGUI::OpenGLTexture</a>.</p>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:41 for Crazy Eddies GUI System by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|