1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
|
<!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::DirectFBTexture 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_1DirectFBTexture.html">DirectFBTexture</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="#friends">Friends</a> </div>
<div class="headertitle">
<div class="title">CEGUI::DirectFBTexture Class Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::DirectFBTexture" --><!-- doxytag: inherits="CEGUI::Texture" -->
<p>Implementation of <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">CEGUI::Texture</a> interface using DirectFB.
<a href="classCEGUI_1_1DirectFBTexture.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for CEGUI::DirectFBTexture:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1DirectFBTexture__inherit__graph.gif" border="0" usemap="#CEGUI_1_1DirectFBTexture_inherit__map" alt="Inheritance graph"/></div>
<map name="CEGUI_1_1DirectFBTexture_inherit__map" id="CEGUI_1_1DirectFBTexture_inherit__map">
<area shape="rect" id="node2" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects." alt="" coords="31,5,148,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-1-trigger" src="closed.png"/> Collaboration diagram for CEGUI::DirectFBTexture:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1DirectFBTexture__coll__graph.gif" border="0" usemap="#CEGUI_1_1DirectFBTexture_coll__map" alt="Collaboration graph"/></div>
<map name="CEGUI_1_1DirectFBTexture_coll__map" id="CEGUI_1_1DirectFBTexture_coll__map">
<area shape="rect" id="node2" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects." alt="" coords="5,5,123,35"/><area shape="rect" id="node4" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something." alt="" coords="147,5,245,35"/><area shape="rect" id="node6" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)" alt="" coords="269,5,387,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classCEGUI_1_1DirectFBTexture-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa5da0a2f36085e615521c9f7ac7eab2"></a><!-- doxytag: member="CEGUI::DirectFBTexture::getDirectFBSurface" ref="afa5da0a2f36085e615521c9f7ac7eab2" args="() const " -->
IDirectFBSurface * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#afa5da0a2f36085e615521c9f7ac7eab2">getDirectFBSurface</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer to the IDirectFBSurface this texture represents. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a8133e43511cb9ce26adae732f9dd8746">getSize</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current pixel size of the texture. <a href="#a8133e43511cb9ce26adae732f9dd8746"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a9b37596788e629a49026b0bf93dddbb1">getOriginalDataSize</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the original pixel size of the data loaded into the texture. <a href="#a9b37596788e629a49026b0bf93dddbb1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#ab120a0659643d6cea9fed9458990ff58">getTexelScaling</a> () const </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="#ab120a0659643d6cea9fed9458990ff58"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a12aa4990f34efd9730ca8cd967b72cdb">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)</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="#a12aa4990f34efd9730ca8cd967b72cdb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a4eca176a669642300aff15687e54ea46">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)</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="#a4eca176a669642300aff15687e54ea46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a1eb5373ae9cc62c92592b4a2dfd56af5">saveToMemory</a> (void *buffer)</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="#a1eb5373ae9cc62c92592b4a2dfd56af5"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0d8055e287e15b32660415ed3ea2497"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBTexture" ref="aa0d8055e287e15b32660415ed3ea2497" args="(IDirectFB &directfb)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#aa0d8055e287e15b32660415ed3ea2497">DirectFBTexture</a> (IDirectFB &directfb)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Basic constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f149718dd4c83b17651d0ea7e64b098"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBTexture" ref="a4f149718dd4c83b17651d0ea7e64b098" args="(IDirectFB &directfb, const String &filename, const String &resourceGroup)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a4f149718dd4c83b17651d0ea7e64b098">DirectFBTexture</a> (IDirectFB &directfb, const <a class="el" href="classCEGUI_1_1String.html">String</a> &filename, const <a class="el" href="classCEGUI_1_1String.html">String</a> &resourceGroup)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct texture from file. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac7bd904c435be52b9aef427e74fe605d"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBTexture" ref="ac7bd904c435be52b9aef427e74fe605d" args="(IDirectFB &directfb, const Size &size)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#ac7bd904c435be52b9aef427e74fe605d">DirectFBTexture</a> (IDirectFB &directfb, const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct texture with given size. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99a3a4c4dec7191239d14575b452b319"></a><!-- doxytag: member="CEGUI::DirectFBTexture::~DirectFBTexture" ref="a99a3a4c4dec7191239d14575b452b319" args="()" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a99a3a4c4dec7191239d14575b452b319">~DirectFBTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc5643a166b342957fd67d0a25a3bec6"></a><!-- doxytag: member="CEGUI::DirectFBTexture::cleanupDirectFBTexture" ref="abc5643a166b342957fd67d0a25a3bec6" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#abc5643a166b342957fd67d0a25a3bec6">cleanupDirectFBTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">clean up the internal texture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a87a1ee976e7e151a6799b86fec91994c"></a><!-- doxytag: member="CEGUI::DirectFBTexture::updateCachedScaleValues" ref="a87a1ee976e7e151a6799b86fec91994c" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a87a1ee976e7e151a6799b86fec91994c">updateCachedScaleValues</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">updates cached scale value used to map pixels to texture co-ords. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13f4d4b70fba55611f36c253d9882500"></a><!-- doxytag: member="CEGUI::DirectFBTexture::d_directfb" ref="a13f4d4b70fba55611f36c253d9882500" args="" -->
IDirectFB & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a13f4d4b70fba55611f36c253d9882500">d_directfb</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">DirectFB interface we were given when constructed. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0968dd453f1b9ee6bf379de3064605f"></a><!-- doxytag: member="CEGUI::DirectFBTexture::d_texture" ref="ac0968dd453f1b9ee6bf379de3064605f" args="" -->
IDirectFBSurface * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#ac0968dd453f1b9ee6bf379de3064605f">d_texture</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">surface representing the texture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac46907997acbf98e32fc23c7fa11a2bf"></a><!-- doxytag: member="CEGUI::DirectFBTexture::d_size" ref="ac46907997acbf98e32fc23c7fa11a2bf" args="" -->
<a class="el" href="classCEGUI_1_1Size.html">Size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#ac46907997acbf98e32fc23c7fa11a2bf">d_size</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> of the texture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0bc6ac4b6f502a92b037d4084cb38e6"></a><!-- doxytag: member="CEGUI::DirectFBTexture::d_dataSize" ref="aa0bc6ac4b6f502a92b037d4084cb38e6" args="" -->
<a class="el" href="classCEGUI_1_1Size.html">Size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#aa0bc6ac4b6f502a92b037d4084cb38e6">d_dataSize</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">original pixel of size data loaded into texture <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a872d9822760ad1e3fbb768cd0142f52d"></a><!-- doxytag: member="CEGUI::DirectFBTexture::d_texelScaling" ref="a872d9822760ad1e3fbb768cd0142f52d" args="" -->
<a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1DirectFBTexture.html#a872d9822760ad1e3fbb768cd0142f52d">d_texelScaling</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">cached pixel to texel mapping scale values. <br/></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba38adf10c85f79ed5a8b313c5be3ffe"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBRenderer::createTexture" ref="aba38adf10c85f79ed5a8b313c5be3ffe" args="()" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>DirectFBRenderer::createTexture</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2bd83209e4e8812357b09e244407e68"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBRenderer::createTexture" ref="ac2bd83209e4e8812357b09e244407e68" args="(const String &, const String &)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>DirectFBRenderer::createTexture</b> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &, const <a class="el" href="classCEGUI_1_1String.html">String</a> &)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7b6ead340cb3bf149d3b6b73fef7bbd"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBRenderer::createTexture" ref="ae7b6ead340cb3bf149d3b6b73fef7bbd" args="(const Size &)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>DirectFBRenderer::createTexture</b> (const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabd35bd45307ca5664574fb1de58c0d7"></a><!-- doxytag: member="CEGUI::DirectFBTexture::DirectFBRenderer::destroyTexture" ref="aabd35bd45307ca5664574fb1de58c0d7" args="(Texture &)" -->
void </td><td class="memItemRight" valign="bottom"><b>DirectFBRenderer::destroyTexture</b> (<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> &)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implementation of <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">CEGUI::Texture</a> interface using DirectFB. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9b37596788e629a49026b0bf93dddbb1"></a><!-- doxytag: member="CEGUI::DirectFBTexture::getOriginalDataSize" ref="a9b37596788e629a49026b0bf93dddbb1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classCEGUI_1_1Size.html">Size</a>& CEGUI::DirectFBTexture::getOriginalDataSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#aae220cf1d9dc112ef5f00a54628c36ce">CEGUI::Texture</a>.</p>
</div>
</div>
<a class="anchor" id="a8133e43511cb9ce26adae732f9dd8746"></a><!-- doxytag: member="CEGUI::DirectFBTexture::getSize" ref="a8133e43511cb9ce26adae732f9dd8746" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classCEGUI_1_1Size.html">Size</a>& CEGUI::DirectFBTexture::getSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#a362b2b8c4a77f2380a1dd10f609c86ae">CEGUI::Texture</a>.</p>
</div>
</div>
<a class="anchor" id="ab120a0659643d6cea9fed9458990ff58"></a><!-- doxytag: member="CEGUI::DirectFBTexture::getTexelScaling" ref="ab120a0659643d6cea9fed9458990ff58" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a>& CEGUI::DirectFBTexture::getTexelScaling </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#a3b71ae3940f4e76673af663aa475b199">CEGUI::Texture</a>.</p>
</div>
</div>
<a class="anchor" id="a12aa4990f34efd9730ca8cd967b72cdb"></a><!-- doxytag: member="CEGUI::DirectFBTexture::loadFromFile" ref="a12aa4990f34efd9730ca8cd967b72cdb" args="(const String &filename, const String &resourceGroup)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::DirectFBTexture::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> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#a76b2d285c2af474739bf2b608d857d0b">CEGUI::Texture</a>.</p>
</div>
</div>
<a class="anchor" id="a4eca176a669642300aff15687e54ea46"></a><!-- doxytag: member="CEGUI::DirectFBTexture::loadFromMemory" ref="a4eca176a669642300aff15687e54ea46" args="(const void *buffer, const Size &buffer_size, PixelFormat pixel_format)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::DirectFBTexture::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> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#ab4ec02a12731a72069f59ef475c20da2">CEGUI::Texture</a>.</p>
</div>
</div>
<a class="anchor" id="a1eb5373ae9cc62c92592b4a2dfd56af5"></a><!-- doxytag: member="CEGUI::DirectFBTexture::saveToMemory" ref="a1eb5373ae9cc62c92592b4a2dfd56af5" args="(void *buffer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::DirectFBTexture::saveToMemory </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td><code> [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>Implements <a class="el" href="classCEGUI_1_1Texture.html#a6a927c3292f409f03f31c18ab9a6e957">CEGUI::Texture</a>.</p>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:42 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>
|