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 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
|
<!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::OpenGLTexture 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_1OpenGLTexture.html">OpenGLTexture</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::OpenGLTexture Class Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::OpenGLTexture" --><!-- doxytag: inherits="CEGUI::Texture" -->
<p><a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> implementation for the <a class="el" href="classCEGUI_1_1OpenGLRenderer.html" title="Renderer class to interface with OpenGL.">OpenGLRenderer</a>.
<a href="classCEGUI_1_1OpenGLTexture.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::OpenGLTexture:</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_1OpenGLTexture__inherit__graph.gif" border="0" usemap="#CEGUI_1_1OpenGLTexture_inherit__map" alt="Inheritance graph"/></div>
<map name="CEGUI_1_1OpenGLTexture_inherit__map" id="CEGUI_1_1OpenGLTexture_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="29,5,147,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::OpenGLTexture:</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_1OpenGLTexture__coll__graph.gif" border="0" usemap="#CEGUI_1_1OpenGLTexture_coll__map" alt="Collaboration graph"/></div>
<map name="CEGUI_1_1OpenGLTexture_coll__map" id="CEGUI_1_1OpenGLTexture_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,104,123,133"/><area shape="rect" id="node4" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something." alt="" coords="176,5,275,35"/><area shape="rect" id="node6" href="classCEGUI_1_1OpenGLRenderer.html" title="Renderer class to interface with OpenGL." alt="" coords="260,104,433,133"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classCEGUI_1_1OpenGLTexture-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="ab9dad01ba3745cbbaf2ffe8ae1e772e1"></a><!-- doxytag: member="CEGUI::OpenGLTexture::setOpenGLTexture" ref="ab9dad01ba3745cbbaf2ffe8ae1e772e1" args="(GLuint tex, const Size &size)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#ab9dad01ba3745cbbaf2ffe8ae1e772e1">setOpenGLTexture</a> (GLuint tex, const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set the openGL texture that this <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> is based on to the specified texture, with the specified size. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLuint </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#ac381786b999d877d16691f2191198244">getOpenGLTexture</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the internal OpenGL texture id used by this <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> object. <a href="#ac381786b999d877d16691f2191198244"></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_1OpenGLTexture.html#ae7465945cf05cb3b29710181a4b00b21">setTextureSize</a> (const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &sz)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set the size of the internal texture. <a href="#ae7465945cf05cb3b29710181a4b00b21"></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_1OpenGLTexture.html#a1a91faad2eea97689c164634156ce44a">grabTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Grab the texture to a local buffer. <a href="#a1a91faad2eea97689c164634156ce44a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae988679e3477c781285b177f45d6cff5"></a><!-- doxytag: member="CEGUI::OpenGLTexture::restoreTexture" ref="ae988679e3477c781285b177f45d6cff5" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#ae988679e3477c781285b177f45d6cff5">restoreTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Restore the texture from the locally buffered copy previously create by a call to grabTexture. <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_1OpenGLTexture.html#a15c130382430151075ebbdd5edc0d7e2">getSize</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current pixel size of the texture. <a href="#a15c130382430151075ebbdd5edc0d7e2"></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_1OpenGLTexture.html#a3eb6251be58218921c1d9832e1b9f537">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="#a3eb6251be58218921c1d9832e1b9f537"></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_1OpenGLTexture.html#afa2e23043b20cdc552868898316612f5">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="#afa2e23043b20cdc552868898316612f5"></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_1OpenGLTexture.html#a59ef0dad6986679fa0a4ad27e2835b9a">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="#a59ef0dad6986679fa0a4ad27e2835b9a"></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_1OpenGLTexture.html#a70fc6856c52c051296deb26cc81ae1f8">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="#a70fc6856c52c051296deb26cc81ae1f8"></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_1OpenGLTexture.html#a7578b8643ccbfa24f88d408dcf4aa279">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="#a7578b8643ccbfa24f88d408dcf4aa279"></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="afc94eca51750f2daa4484c62d77702f4"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLTexture" ref="afc94eca51750f2daa4484c62d77702f4" args="(OpenGLRenderer &owner)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#afc94eca51750f2daa4484c62d77702f4">OpenGLTexture</a> (<a class="el" href="classCEGUI_1_1OpenGLRenderer.html">OpenGLRenderer</a> &owner)</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="a1e0267fd1f63ea7d4fa9e051b08a6d8d"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLTexture" ref="a1e0267fd1f63ea7d4fa9e051b08a6d8d" args="(OpenGLRenderer &owner, const String &filename, const String &resourceGroup)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a1e0267fd1f63ea7d4fa9e051b08a6d8d">OpenGLTexture</a> (<a class="el" href="classCEGUI_1_1OpenGLRenderer.html">OpenGLRenderer</a> &owner, 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">Constructor that creates a <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> from an image file. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af77ca4f7a3428c6dc3cdc23d00a6686a"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLTexture" ref="af77ca4f7a3428c6dc3cdc23d00a6686a" args="(OpenGLRenderer &owner, const Size &size)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#af77ca4f7a3428c6dc3cdc23d00a6686a">OpenGLTexture</a> (<a class="el" href="classCEGUI_1_1OpenGLRenderer.html">OpenGLRenderer</a> &owner, const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor that creates a <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> with a given size. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3fb9ded2123263f4033417393d792f5"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLTexture" ref="af3fb9ded2123263f4033417393d792f5" args="(OpenGLRenderer &owner, GLuint tex, const Size &size)" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#af3fb9ded2123263f4033417393d792f5">OpenGLTexture</a> (<a class="el" href="classCEGUI_1_1OpenGLRenderer.html">OpenGLRenderer</a> &owner, GLuint tex, const <a class="el" href="classCEGUI_1_1Size.html">Size</a> &size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor that wraps an existing GL texture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac526b435a5d72cb10ad0a1e5c459f227"></a><!-- doxytag: member="CEGUI::OpenGLTexture::~OpenGLTexture" ref="ac526b435a5d72cb10ad0a1e5c459f227" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#ac526b435a5d72cb10ad0a1e5c459f227">~OpenGLTexture</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="ab2389e8941c5d38a0ddad8f3dd09bc6d"></a><!-- doxytag: member="CEGUI::OpenGLTexture::generateOpenGLTexture" ref="ab2389e8941c5d38a0ddad8f3dd09bc6d" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#ab2389e8941c5d38a0ddad8f3dd09bc6d">generateOpenGLTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">generate the OpenGL texture and set some initial options. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a792898d7e766780e29d6352857f24e"></a><!-- doxytag: member="CEGUI::OpenGLTexture::updateCachedScaleValues" ref="a0a792898d7e766780e29d6352857f24e" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a0a792898d7e766780e29d6352857f24e">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 class="memItemLeft" align="right" valign="top"><a class="anchor" id="a719641185dfb668cf725d81a52c4f533"></a><!-- doxytag: member="CEGUI::OpenGLTexture::cleanupOpenGLTexture" ref="a719641185dfb668cf725d81a52c4f533" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a719641185dfb668cf725d81a52c4f533">cleanupOpenGLTexture</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">clean up the GL texture, or the grab buffer if it had been grabbed <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="a40985213377f308dc0d502d98d023fa5"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_ogltexture" ref="a40985213377f308dc0d502d98d023fa5" args="" -->
GLuint </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a40985213377f308dc0d502d98d023fa5">d_ogltexture</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The OpenGL texture we're wrapping. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8de675226a6176bb0cd49e74fbaec8e9"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_size" ref="a8de675226a6176bb0cd49e74fbaec8e9" args="" -->
<a class="el" href="classCEGUI_1_1Size.html">Size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a8de675226a6176bb0cd49e74fbaec8e9">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="aca5b1ace05044d6414610ed81d5545eb"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_grabBuffer" ref="aca5b1ace05044d6414610ed81d5545eb" args="" -->
uint8 * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#aca5b1ace05044d6414610ed81d5545eb">d_grabBuffer</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">cached image data for restoring the texture. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e59d10b98ec9ca53152204b49c6cf76"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_dataSize" ref="a4e59d10b98ec9ca53152204b49c6cf76" args="" -->
<a class="el" href="classCEGUI_1_1Size.html">Size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a4e59d10b98ec9ca53152204b49c6cf76">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="a1e5cae65a67e7563d00e6388c962a4db"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_texelScaling" ref="a1e5cae65a67e7563d00e6388c962a4db" args="" -->
<a class="el" href="classCEGUI_1_1Vector2.html">Vector2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a1e5cae65a67e7563d00e6388c962a4db">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 class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91b2724b18eb56f30978fd964f6eb02a"></a><!-- doxytag: member="CEGUI::OpenGLTexture::d_owner" ref="a91b2724b18eb56f30978fd964f6eb02a" args="" -->
<a class="el" href="classCEGUI_1_1OpenGLRenderer.html">OpenGLRenderer</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1OpenGLTexture.html#a91b2724b18eb56f30978fd964f6eb02a">d_owner</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classCEGUI_1_1OpenGLRenderer.html" title="Renderer class to interface with OpenGL.">OpenGLRenderer</a> that created and owns this <a class="el" href="classCEGUI_1_1OpenGLTexture.html" title="Texture implementation for the OpenGLRenderer.">OpenGLTexture</a>. <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="a856435f1b6e64e92798b0b3a128b87e7"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLRenderer::createTexture" ref="a856435f1b6e64e92798b0b3a128b87e7" args="(void)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>OpenGLRenderer::createTexture</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9d2dc4c718ec812a31df37be64c0cc7"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLRenderer::createTexture" ref="af9d2dc4c718ec812a31df37be64c0cc7" args="(const String &, const String &)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>OpenGLRenderer::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="a3984f84dfb272d458382d4a0de859124"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLRenderer::createTexture" ref="a3984f84dfb272d458382d4a0de859124" args="(const Size &)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>OpenGLRenderer::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="a4515f5aaf8270c9558fb74e25c1284e7"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLRenderer::createTexture" ref="a4515f5aaf8270c9558fb74e25c1284e7" args="(GLuint, const Size &)" -->
<a class="el" href="classCEGUI_1_1Texture.html">Texture</a> & </td><td class="memItemRight" valign="bottom"><b>OpenGLRenderer::createTexture</b> (GLuint, 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="ae48c54c3bd0d3ac12bf8842e7ce37ae1"></a><!-- doxytag: member="CEGUI::OpenGLTexture::OpenGLRenderer::destroyTexture" ref="ae48c54c3bd0d3ac12bf8842e7ce37ae1" args="(Texture &)" -->
void </td><td class="memItemRight" valign="bottom"><b>OpenGLRenderer::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><a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> implementation for the <a class="el" href="classCEGUI_1_1OpenGLRenderer.html" title="Renderer class to interface with OpenGL.">OpenGLRenderer</a>. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac381786b999d877d16691f2191198244"></a><!-- doxytag: member="CEGUI::OpenGLTexture::getOpenGLTexture" ref="ac381786b999d877d16691f2191198244" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GLuint CEGUI::OpenGLTexture::getOpenGLTexture </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the internal OpenGL texture id used by this <a class="el" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>id of the OpenGL texture that this object is using. </dd></dl>
</div>
</div>
<a class="anchor" id="a3eb6251be58218921c1d9832e1b9f537"></a><!-- doxytag: member="CEGUI::OpenGLTexture::getOriginalDataSize" ref="a3eb6251be58218921c1d9832e1b9f537" 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::OpenGLTexture::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="a15c130382430151075ebbdd5edc0d7e2"></a><!-- doxytag: member="CEGUI::OpenGLTexture::getSize" ref="a15c130382430151075ebbdd5edc0d7e2" 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::OpenGLTexture::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="afa2e23043b20cdc552868898316612f5"></a><!-- doxytag: member="CEGUI::OpenGLTexture::getTexelScaling" ref="afa2e23043b20cdc552868898316612f5" 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::OpenGLTexture::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="a1a91faad2eea97689c164634156ce44a"></a><!-- doxytag: member="CEGUI::OpenGLTexture::grabTexture" ref="a1a91faad2eea97689c164634156ce44a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::OpenGLTexture::grabTexture </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Grab the texture to a local buffer. </p>
<p>This will destroy the OpenGL texture, and restoreTexture must be called before using it again. </p>
</div>
</div>
<a class="anchor" id="a59ef0dad6986679fa0a4ad27e2835b9a"></a><!-- doxytag: member="CEGUI::OpenGLTexture::loadFromFile" ref="a59ef0dad6986679fa0a4ad27e2835b9a" args="(const String &filename, const String &resourceGroup)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::OpenGLTexture::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="a70fc6856c52c051296deb26cc81ae1f8"></a><!-- doxytag: member="CEGUI::OpenGLTexture::loadFromMemory" ref="a70fc6856c52c051296deb26cc81ae1f8" 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::OpenGLTexture::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="a7578b8643ccbfa24f88d408dcf4aa279"></a><!-- doxytag: member="CEGUI::OpenGLTexture::saveToMemory" ref="a7578b8643ccbfa24f88d408dcf4aa279" args="(void *buffer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::OpenGLTexture::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>
<a class="anchor" id="ae7465945cf05cb3b29710181a4b00b21"></a><!-- doxytag: member="CEGUI::OpenGLTexture::setTextureSize" ref="ae7465945cf05cb3b29710181a4b00b21" args="(const Size &sz)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CEGUI::OpenGLTexture::setTextureSize </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCEGUI_1_1Size.html">Size</a> & </td>
<td class="paramname"><em>sz</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>set the size of the internal texture. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">sz</td><td>size for the internal texture, in pixels.</td></tr>
</table>
</dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Depending upon the hardware capabilities, the actual final size of the texture may be larger than what is specified when calling this function. The texture will never be smaller than what you request here. To discover the actual size, call getSize.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classCEGUI_1_1RendererException.html" title="Exception class used for problems in the rendering subsystem classes.">RendererException</a></td><td>thrown if the hardware is unable to support a texture large enough to fulfill the requested size.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>
</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>
|