Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 5389723cfaa070fa83dde30f5cb260be > files > 181

compat-guichan05-devel-0.5.0-11.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Guichan: gcn::OpenGLImage Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="namespacegcn.html">gcn</a>::<a class="el" href="classgcn_1_1OpenGLImage.html">OpenGLImage</a></div>
<h1>gcn::OpenGLImage Class Reference</h1><!-- doxytag: class="gcn::OpenGLImage" --><!-- doxytag: inherits="gcn::Image" --><code>#include &lt;<a class="el" href="openglimage_8hpp-source.html">openglimage.hpp</a>&gt;</code>
<p>
<p>Inheritance diagram for gcn::OpenGLImage:
<p><center><img src="classgcn_1_1OpenGLImage.png" usemap="#gcn::OpenGLImage_map" border="0" alt=""></center>
<map name="gcn::OpenGLImage_map">
<area href="classgcn_1_1Image.html" alt="gcn::Image" shape="rect" coords="0,0,119,24">
</map>
<a href="classgcn_1_1OpenGLImage-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
OpenGL implementation of <a class="el" href="classgcn_1_1Image.html">Image</a>. 
<p>

<p>
Definition at line <a class="el" href="openglimage_8hpp-source.html#l00082">82</a> of file <a class="el" href="openglimage_8hpp-source.html">openglimage.hpp</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#5ebbcbf53c4c5590b3a7a3228b19f8b9">OpenGLImage</a> (unsigned int *pixels, int width, int height, bool convertToDisplayFormat=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#5ebbcbf53c4c5590b3a7a3228b19f8b9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#186ea6cb7dfa9f33affdab4427bbff62">OpenGLImage</a> (GLuint textureHandle, int width, int height, bool autoFree)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#186ea6cb7dfa9f33affdab4427bbff62"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c7ada253a255b5d489886bb9690119e"></a><!-- doxytag: member="gcn::OpenGLImage::~OpenGLImage" ref="0c7ada253a255b5d489886bb9690119e" args="()" -->
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#0c7ada253a255b5d489886bb9690119e">~OpenGLImage</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual GLuint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#eaba17efd232e7474df819d1a5ebd583">getTextureHandle</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the OpenGL texture handle for the image.  <a href="#eaba17efd232e7474df819d1a5ebd583"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#1cd3019b4e7b49d45053ea7abfea98a6">getTextureWidth</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the width of texture.  <a href="#1cd3019b4e7b49d45053ea7abfea98a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#24e7905f5c9887549158ffac5e53d9de">getTextureHeight</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the height of the texture.  <a href="#24e7905f5c9887549158ffac5e53d9de"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ca72fa90e8f913bbfa37dd067e2c56a"></a><!-- doxytag: member="gcn::OpenGLImage::free" ref="5ca72fa90e8f913bbfa37dd067e2c56a" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#5ca72fa90e8f913bbfa37dd067e2c56a">free</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees an image. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#d4c50cb4ecbee9dab3e2894dd650a31c">getWidth</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the width of the <a class="el" href="classgcn_1_1Image.html">Image</a>.  <a href="#d4c50cb4ecbee9dab3e2894dd650a31c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#88ecce91748e69434abf055404f5b306">getHeight</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the height of the <a class="el" href="classgcn_1_1Image.html">Image</a>.  <a href="#88ecce91748e69434abf055404f5b306"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classgcn_1_1Color.html">Color</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#68af180d0683001cdf1b49fd36d15cfc">getPixel</a> (int x, int y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the color of a pixel at coordinate (x, y) in the image.  <a href="#68af180d0683001cdf1b49fd36d15cfc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#8dde453536853dbfc3ea62b21744655b">putPixel</a> (int x, int y, const <a class="el" href="classgcn_1_1Color.html">Color</a> &amp;color)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Puts a pixel with a certain color at coordinate (x, y).  <a href="#8dde453536853dbfc3ea62b21744655b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#1f1f25745fb9a89a06db56b3e6b2748e">convertToDisplayFormat</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts the image, if possible, to display format.  <a href="#1f1f25745fb9a89a06db56b3e6b2748e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6bbf43a336fd3637225ccb16a6590f1"></a><!-- doxytag: member="gcn::OpenGLImage::mTextureHandle" ref="b6bbf43a336fd3637225ccb16a6590f1" args="" -->
GLuint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#b6bbf43a336fd3637225ccb16a6590f1">mTextureHandle</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9556fb357d35fb1263f5c890fa678bdf"></a><!-- doxytag: member="gcn::OpenGLImage::mPixels" ref="9556fb357d35fb1263f5c890fa678bdf" args="" -->
unsigned int *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#9556fb357d35fb1263f5c890fa678bdf">mPixels</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b8505b0f5f7621dbd5a0cf1ae4782bb7"></a><!-- doxytag: member="gcn::OpenGLImage::mAutoFree" ref="b8505b0f5f7621dbd5a0cf1ae4782bb7" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#b8505b0f5f7621dbd5a0cf1ae4782bb7">mAutoFree</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="975f80c913f48cb445a24e7fd831c998"></a><!-- doxytag: member="gcn::OpenGLImage::mWidth" ref="975f80c913f48cb445a24e7fd831c998" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#975f80c913f48cb445a24e7fd831c998">mWidth</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3e2204b80f8b9aad34582c837f67f83"></a><!-- doxytag: member="gcn::OpenGLImage::mHeight" ref="b3e2204b80f8b9aad34582c837f67f83" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#b3e2204b80f8b9aad34582c837f67f83">mHeight</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c60ab59f46dee4c5fd0b8b9b48f6c210"></a><!-- doxytag: member="gcn::OpenGLImage::mTextureWidth" ref="c60ab59f46dee4c5fd0b8b9b48f6c210" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#c60ab59f46dee4c5fd0b8b9b48f6c210">mTextureWidth</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b8af012033ef0f8afe75f71c90dd70c"></a><!-- doxytag: member="gcn::OpenGLImage::mTextureHeight" ref="5b8af012033ef0f8afe75f71c90dd70c" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1OpenGLImage.html#5b8af012033ef0f8afe75f71c90dd70c">mTextureHeight</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="5ebbcbf53c4c5590b3a7a3228b19f8b9"></a><!-- doxytag: member="gcn::OpenGLImage::OpenGLImage" ref="5ebbcbf53c4c5590b3a7a3228b19f8b9" args="(unsigned int *pixels, int width, int height, bool convertToDisplayFormat=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcn::OpenGLImage::OpenGLImage           </td>
          <td>(</td>
          <td class="paramtype">unsigned int *&nbsp;</td>
          <td class="paramname"> <em>pixels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>convertToDisplayFormat</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
Loads an image from an array of pixels. The pixel array is is copied in the constructor and should thus be freed after the constructor has been called.<p>
NOTE: The functions getPixel and putPixel are only guaranteed to work before an image has been converted to display format.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pixels</em>&nbsp;</td><td>to load from. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the width of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>the height of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>convertToDisplayFormat</em>&nbsp;</td><td>true if the image should be converted to display, false otherwise. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00067">67</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8cpp-source.html#l00241">convertToDisplayFormat()</a>, <a class="el" href="openglimage_8hpp-source.html#l00159">mAutoFree</a>, <a class="el" href="openglimage_8hpp-source.html#l00161">mHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00158">mPixels</a>, <a class="el" href="openglimage_8hpp-source.html#l00163">mTextureHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>, and <a class="el" href="openglimage_8hpp-source.html#l00160">mWidth</a>.
</div>
</div><p>
<a class="anchor" name="186ea6cb7dfa9f33affdab4427bbff62"></a><!-- doxytag: member="gcn::OpenGLImage::OpenGLImage" ref="186ea6cb7dfa9f33affdab4427bbff62" args="(GLuint textureHandle, int width, int height, bool autoFree)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcn::OpenGLImage::OpenGLImage           </td>
          <td>(</td>
          <td class="paramtype">GLuint&nbsp;</td>
          <td class="paramname"> <em>textureHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>autoFree</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
Load an image from an OpenGL texture handle. The width and height specifies the size of the "interesting" part of the texture, the real width and height of the texture are assumed to be the closest higher power of two.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>textureHandle</em>&nbsp;</td><td>the texture handle from which to load. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the width of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>the height of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>autoFree</em>&nbsp;</td><td>true if the surface should automatically be deleted. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00124">124</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00159">mAutoFree</a>, <a class="el" href="openglimage_8hpp-source.html#l00161">mHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00158">mPixels</a>, <a class="el" href="openglimage_8hpp-source.html#l00157">mTextureHandle</a>, <a class="el" href="openglimage_8hpp-source.html#l00163">mTextureHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>, and <a class="el" href="openglimage_8hpp-source.html#l00160">mWidth</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1f1f25745fb9a89a06db56b3e6b2748e"></a><!-- doxytag: member="gcn::OpenGLImage::convertToDisplayFormat" ref="1f1f25745fb9a89a06db56b3e6b2748e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::OpenGLImage::convertToDisplayFormat           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Converts the image, if possible, to display format. 
<p>
IMPORTANT: Only guaranteed to work before the image has been converted to display format. 
<p>
Implements <a class="el" href="classgcn_1_1Image.html#3e59862b9a8fdb2bd3cffd9ba39969af">gcn::Image</a>.
<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00241">241</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00158">mPixels</a>, <a class="el" href="openglimage_8hpp-source.html#l00157">mTextureHandle</a>, <a class="el" href="openglimage_8hpp-source.html#l00163">mTextureHeight</a>, and <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>.
<p>
Referenced by <a class="el" href="openglimage_8cpp-source.html#l00067">OpenGLImage()</a>.
</div>
</div><p>
<a class="anchor" name="88ecce91748e69434abf055404f5b306"></a><!-- doxytag: member="gcn::OpenGLImage::getHeight" ref="88ecce91748e69434abf055404f5b306" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gcn::OpenGLImage::getHeight           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the height of the <a class="el" href="classgcn_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the image height </dd></dl>

<p>
Implements <a class="el" href="classgcn_1_1Image.html#09df6a36dc5a76a75a0dd5720f40ee0d">gcn::Image</a>.
<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00186">186</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00161">mHeight</a>.
</div>
</div><p>
<a class="anchor" name="68af180d0683001cdf1b49fd36d15cfc"></a><!-- doxytag: member="gcn::OpenGLImage::getPixel" ref="68af180d0683001cdf1b49fd36d15cfc" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcn_1_1Color.html">Color</a> gcn::OpenGLImage::getPixel           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the color of a pixel at coordinate (x, y) in the image. 
<p>
IMPORTANT: Only guaranteed to work before the image has been converted to display format.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y coordinate. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the color of the pixel. </dd></dl>

<p>
Implements <a class="el" href="classgcn_1_1Image.html#38e79120cc9f81bb36727e2859e04a09">gcn::Image</a>.
<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00191">191</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00161">mHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00158">mPixels</a>, <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>, and <a class="el" href="openglimage_8hpp-source.html#l00160">mWidth</a>.
</div>
</div><p>
<a class="anchor" name="eaba17efd232e7474df819d1a5ebd583"></a><!-- doxytag: member="gcn::OpenGLImage::getTextureHandle" ref="eaba17efd232e7474df819d1a5ebd583" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLuint gcn::OpenGLImage::getTextureHandle           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the OpenGL texture handle for the image. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the OpenGL texture handle for the image. </dd></dl>

<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00153">153</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00157">mTextureHandle</a>.
<p>
Referenced by <a class="el" href="openglgraphics_8cpp-source.html#l00201">gcn::OpenGLGraphics::drawImage()</a>.
</div>
</div><p>
<a class="anchor" name="24e7905f5c9887549158ffac5e53d9de"></a><!-- doxytag: member="gcn::OpenGLImage::getTextureHeight" ref="24e7905f5c9887549158ffac5e53d9de" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gcn::OpenGLImage::getTextureHeight           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the height of the texture. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the height of the texture. </dd></dl>

<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00163">163</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00163">mTextureHeight</a>.
<p>
Referenced by <a class="el" href="openglgraphics_8cpp-source.html#l00201">gcn::OpenGLGraphics::drawImage()</a>.
</div>
</div><p>
<a class="anchor" name="1cd3019b4e7b49d45053ea7abfea98a6"></a><!-- doxytag: member="gcn::OpenGLImage::getTextureWidth" ref="1cd3019b4e7b49d45053ea7abfea98a6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gcn::OpenGLImage::getTextureWidth           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the width of texture. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the width of the texture. </dd></dl>

<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00158">158</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>.
<p>
Referenced by <a class="el" href="openglgraphics_8cpp-source.html#l00201">gcn::OpenGLGraphics::drawImage()</a>.
</div>
</div><p>
<a class="anchor" name="d4c50cb4ecbee9dab3e2894dd650a31c"></a><!-- doxytag: member="gcn::OpenGLImage::getWidth" ref="d4c50cb4ecbee9dab3e2894dd650a31c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gcn::OpenGLImage::getWidth           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the width of the <a class="el" href="classgcn_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the image width </dd></dl>

<p>
Implements <a class="el" href="classgcn_1_1Image.html#a367cc8121c1f01a541e615b0a27497c">gcn::Image</a>.
<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00181">181</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="openglimage_8hpp-source.html#l00160">mWidth</a>.
</div>
</div><p>
<a class="anchor" name="8dde453536853dbfc3ea62b21744655b"></a><!-- doxytag: member="gcn::OpenGLImage::putPixel" ref="8dde453536853dbfc3ea62b21744655b" args="(int x, int y, const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::OpenGLImage::putPixel           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgcn_1_1Color.html">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Puts a pixel with a certain color at coordinate (x, y). 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>the color of the pixel to put. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Image.html#4a023341cacd32ca4448ceec4b79be4a">gcn::Image</a>.
<p>
Definition at line <a class="el" href="openglimage_8cpp-source.html#l00220">220</a> of file <a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a>.
<p>
References <a class="el" href="color_8hpp-source.html#l00161">gcn::Color::a</a>, <a class="el" href="color_8hpp-source.html#l00155">gcn::Color::b</a>, <a class="el" href="color_8hpp-source.html#l00150">gcn::Color::g</a>, <a class="el" href="openglimage_8hpp-source.html#l00161">mHeight</a>, <a class="el" href="openglimage_8hpp-source.html#l00158">mPixels</a>, <a class="el" href="openglimage_8hpp-source.html#l00162">mTextureWidth</a>, <a class="el" href="openglimage_8hpp-source.html#l00160">mWidth</a>, and <a class="el" href="color_8hpp-source.html#l00145">gcn::Color::r</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="openglimage_8hpp-source.html">openglimage.hpp</a><li><a class="el" href="openglimage_8cpp-source.html">openglimage.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Jul 29 19:38:49 2006 for Guichan by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>