Sophie

Sophie

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

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::SDLGraphics 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_1SDLGraphics.html">SDLGraphics</a></div>
<h1>gcn::SDLGraphics Class Reference</h1><!-- doxytag: class="gcn::SDLGraphics" --><!-- doxytag: inherits="gcn::Graphics" --><code>#include &lt;<a class="el" href="sdlgraphics_8hpp-source.html">sdlgraphics.hpp</a>&gt;</code>
<p>
<p>Inheritance diagram for gcn::SDLGraphics:
<p><center><img src="classgcn_1_1SDLGraphics.png" usemap="#gcn::SDLGraphics_map" border="0" alt=""></center>
<map name="gcn::SDLGraphics_map">
<area href="classgcn_1_1Graphics.html" alt="gcn::Graphics" shape="rect" coords="0,0,114,24">
</map>
<a href="classgcn_1_1SDLGraphics-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
SDL implementation of the <a class="el" href="classgcn_1_1Graphics.html">Graphics</a>. 
<p>

<p>
Definition at line <a class="el" href="sdlgraphics_8hpp-source.html#l00074">74</a> of file <a class="el" href="sdlgraphics_8hpp-source.html">sdlgraphics.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"><a class="anchor" name="20ad9e8fcb2fe68894ade3f48f2e6853"></a><!-- doxytag: member="gcn::SDLGraphics::SDLGraphics" ref="20ad9e8fcb2fe68894ade3f48f2e6853" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#20ad9e8fcb2fe68894ade3f48f2e6853">SDLGraphics</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <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_1SDLGraphics.html#087add21b88b101096cbfd052f4b4a8f">setTarget</a> (SDL_Surface *target)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the target SDL_Surface to draw to.  <a href="#087add21b88b101096cbfd052f4b4a8f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#1e5d70320dcf5c96b3aee922ad6b5c66">getTarget</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the target SDL_Surface.  <a href="#1e5d70320dcf5c96b3aee922ad6b5c66"></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_1SDLGraphics.html#38369ee1d6be599abecdaa7cf17aaba4">drawSDLSurface</a> (SDL_Surface *surface, SDL_Rect source, SDL_Rect destination)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an SDL_Surface on the target surface.  <a href="#38369ee1d6be599abecdaa7cf17aaba4"></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_1SDLGraphics.html#8a551d5159bb79dd7d77cd081f5d9c78">_beginDraw</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initializes drawing.  <a href="#8a551d5159bb79dd7d77cd081f5d9c78"></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_1SDLGraphics.html#1ec61016736b34271f60e3a88d65c1b7">_endDraw</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deinitializes drawing.  <a href="#1ec61016736b34271f60e3a88d65c1b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#1fbd23bf7540f15bb9e07ee378d60e25">pushClipArea</a> (<a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> area)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pushes a clip area onto the stack.  <a href="#1fbd23bf7540f15bb9e07ee378d60e25"></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_1SDLGraphics.html#6876d1027cb3feb4a413e3e854812a4b">popClipArea</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes the topmost clip area from the stack.  <a href="#6876d1027cb3feb4a413e3e854812a4b"></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_1SDLGraphics.html#daaf65022086f36b9aa4d9190fd092f0">drawImage</a> (const <a class="el" href="classgcn_1_1Image.html">Image</a> *image, int srcX, int srcY, int dstX, int dstY, int width, int height)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a part of an <a class="el" href="classgcn_1_1Image.html">Image</a>.  <a href="#daaf65022086f36b9aa4d9190fd092f0"></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_1SDLGraphics.html#5f670d60ecbf4b716f005db098363915">drawPoint</a> (int x, int y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a single point/pixel.  <a href="#5f670d60ecbf4b716f005db098363915"></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_1SDLGraphics.html#dcb7d5d91da928a92c82ad1fc5fba273">drawLine</a> (int x1, int y1, int x2, int y2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ddraws a line.  <a href="#dcb7d5d91da928a92c82ad1fc5fba273"></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_1SDLGraphics.html#17607f95e7af8fc9c55d112753ef9873">drawRectangle</a> (const <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> &amp;rectangle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a simple, non-filled, <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> with one pixel width.  <a href="#17607f95e7af8fc9c55d112753ef9873"></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_1SDLGraphics.html#8d3fba4fa40d9d5ef436b836dfd25804">fillRectangle</a> (const <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> &amp;rectangle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a filled <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a>.  <a href="#8d3fba4fa40d9d5ef436b836dfd25804"></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_1SDLGraphics.html#26298c36c21fc6e16b02a932627adae6">setColor</a> (const <a class="el" href="classgcn_1_1Color.html">Color</a> &amp;color)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classgcn_1_1Color.html">Color</a> to use when drawing.  <a href="#26298c36c21fc6e16b02a932627adae6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classgcn_1_1Color.html">Color</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#64363f22dce7278007350cfab8569d58">getColor</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the <a class="el" href="classgcn_1_1Color.html">Color</a> to use when drawing.  <a href="#64363f22dce7278007350cfab8569d58"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></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_1SDLGraphics.html#de0cc714be37c6a845a0e80737f848a0">drawHLine</a> (int x1, int y, int x2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a horizontal line.  <a href="#de0cc714be37c6a845a0e80737f848a0"></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_1SDLGraphics.html#425d9b80490169dddfaf37ba3d6724cf">drawVLine</a> (int x, int y1, int y2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a vertical line.  <a href="#425d9b80490169dddfaf37ba3d6724cf"></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="f3f955105466dd80c1577abf8126089c"></a><!-- doxytag: member="gcn::SDLGraphics::mTarget" ref="f3f955105466dd80c1577abf8126089c" args="" -->
SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#f3f955105466dd80c1577abf8126089c">mTarget</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2801f09228c3d44c104172a2a94c5249"></a><!-- doxytag: member="gcn::SDLGraphics::mColor" ref="2801f09228c3d44c104172a2a94c5249" args="" -->
<a class="el" href="classgcn_1_1Color.html">Color</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLGraphics.html#2801f09228c3d44c104172a2a94c5249">mColor</a></td></tr>

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

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="8a551d5159bb79dd7d77cd081f5d9c78"></a><!-- doxytag: member="gcn::SDLGraphics::_beginDraw" ref="8a551d5159bb79dd7d77cd081f5d9c78" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::_beginDraw           </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>
Initializes drawing. 
<p>
Called by the <a class="el" href="classgcn_1_1Gui.html">Gui</a> when <a class="el" href="classgcn_1_1Gui.html#d231f982fb8182b16ecf11075054f4ac">Gui::draw()</a> is called. It is needed by some implementations of <a class="el" href="classgcn_1_1Graphics.html">Graphics</a> to perform preparations before drawing. An example of such an implementation would be <a class="el" href="classgcn_1_1OpenGLGraphics.html">OpenGLGraphics</a>.<p>
NOTE: You will never need to call this function yourself. <a class="el" href="classgcn_1_1Gui.html">Gui</a> will do it for you.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classgcn_1_1SDLGraphics.html#1ec61016736b34271f60e3a88d65c1b7">_endDraw</a>, <a class="el" href="classgcn_1_1Gui.html#d231f982fb8182b16ecf11075054f4ac">Gui::draw</a> </dd></dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1Graphics.html#85e8107504f70fa460b844fb2259c653">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00083">83</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="sdlgraphics_8cpp-source.html#l00103">pushClipArea()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, and <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>.
</div>
</div><p>
<a class="anchor" name="1ec61016736b34271f60e3a88d65c1b7"></a><!-- doxytag: member="gcn::SDLGraphics::_endDraw" ref="1ec61016736b34271f60e3a88d65c1b7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::_endDraw           </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>
Deinitializes drawing. 
<p>
Called by the <a class="el" href="classgcn_1_1Gui.html">Gui</a> when a <a class="el" href="classgcn_1_1Gui.html#d231f982fb8182b16ecf11075054f4ac">Gui::draw()</a> is done. done. It should reset any state changes made by <a class="el" href="classgcn_1_1SDLGraphics.html#8a551d5159bb79dd7d77cd081f5d9c78">_beginDraw()</a>.<p>
NOTE: You will never need to call this function yourself. <a class="el" href="classgcn_1_1Gui.html">Gui</a> will do it for you.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classgcn_1_1SDLGraphics.html#8a551d5159bb79dd7d77cd081f5d9c78">_beginDraw</a>, <a class="el" href="classgcn_1_1Gui.html#d231f982fb8182b16ecf11075054f4ac">Gui::draw</a> </dd></dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1Graphics.html#f6b9381e34ec34f10e9bbf77b7b00c78">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00093">93</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8cpp-source.html#l00119">popClipArea()</a>.
</div>
</div><p>
<a class="anchor" name="de0cc714be37c6a845a0e80737f848a0"></a><!-- doxytag: member="gcn::SDLGraphics::drawHLine" ref="de0cc714be37c6a845a0e80737f848a0" args="(int x1, int y, int x2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawHLine           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x1</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">int&nbsp;</td>
          <td class="paramname"> <em>x2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a horizontal line. 
<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>x1</em>&nbsp;</td><td>the start coordinate of the line. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y coordinate of the line. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>the end coordinate of the line. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00231">231</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.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="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="color_8hpp-source.html#l00145">gcn::Color::r</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00176">gcn::SDLAlpha32()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
<p>
Referenced by <a class="el" href="sdlgraphics_8cpp-source.html#l00456">drawLine()</a>, and <a class="el" href="sdlgraphics_8cpp-source.html#l00442">drawRectangle()</a>.
</div>
</div><p>
<a class="anchor" name="daaf65022086f36b9aa4d9190fd092f0"></a><!-- doxytag: member="gcn::SDLGraphics::drawImage" ref="daaf65022086f36b9aa4d9190fd092f0" args="(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawImage           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgcn_1_1Image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>srcX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>srcY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dstX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dstY</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><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>
Draws a part of an <a class="el" href="classgcn_1_1Image.html">Image</a>. 
<p>
NOTE: Width and height arguments will not scale the <a class="el" href="classgcn_1_1Image.html">Image</a> but specifies the size of the part to be drawn. If you want to draw the whole <a class="el" href="classgcn_1_1Image.html">Image</a> there is a simplified version of this function.<p>
EXAMPLE:<div class="fragment"><pre class="fragment"> <a class="code" href="classgcn_1_1SDLGraphics.html#daaf65022086f36b9aa4d9190fd092f0">drawImage</a>(myImage, 10, 10, 20, 20, 40, 40); 
</pre></div> Will draw a rectangular piece of myImage starting at coordinate (10, 10) in myImage, with width and height 40. The piece will be drawn with it's top left corner at coordinate (20, 20).<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>image</em>&nbsp;</td><td>the <a class="el" href="classgcn_1_1Image.html">Image</a> to draw. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcX</em>&nbsp;</td><td>source <a class="el" href="classgcn_1_1Image.html">Image</a> x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>srcY</em>&nbsp;</td><td>source <a class="el" href="classgcn_1_1Image.html">Image</a> y coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstX</em>&nbsp;</td><td>destination x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstY</em>&nbsp;</td><td>destination y coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the width of the piece. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>the height of the piece. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#eb284b30f59d5cfa4c4e25130f4c164e">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00143">143</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlimage_8cpp-source.html#l00082">gcn::SDLImage::getSurface()</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
</div>
</div><p>
<a class="anchor" name="dcb7d5d91da928a92c82ad1fc5fba273"></a><!-- doxytag: member="gcn::SDLGraphics::drawLine" ref="dcb7d5d91da928a92c82ad1fc5fba273" args="(int x1, int y1, int x2, int y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawLine           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y2</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>
Ddraws a line. 
<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>x1</em>&nbsp;</td><td>the first x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y1</em>&nbsp;</td><td>the first y coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>the second x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y2</em>&nbsp;</td><td>the second y coordinate. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#92af7e5f5ed6ebf692803bc1bd1d5db5">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00456">456</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8cpp-source.html#l00231">drawHLine()</a>, <a class="el" href="sdlgraphics_8cpp-source.html#l00337">drawVLine()</a>, <a class="el" href="rectangle_8cpp-source.html#l00130">gcn::Rectangle::isPointInRect()</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00126">gcn::SDLputPixel()</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00221">gcn::SDLputPixelAlpha()</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
</div>
</div><p>
<a class="anchor" name="5f670d60ecbf4b716f005db098363915"></a><!-- doxytag: member="gcn::SDLGraphics::drawPoint" ref="5f670d60ecbf4b716f005db098363915" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawPoint           </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>
Draws a single point/pixel. 
<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>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#dfd989a2a8c6771c6368b25f3977ecf4">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00212">212</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="rectangle_8cpp-source.html#l00130">gcn::Rectangle::isPointInRect()</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00126">gcn::SDLputPixel()</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00221">gcn::SDLputPixelAlpha()</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
</div>
</div><p>
<a class="anchor" name="17607f95e7af8fc9c55d112753ef9873"></a><!-- doxytag: member="gcn::SDLGraphics::drawRectangle" ref="17607f95e7af8fc9c55d112753ef9873" args="(const Rectangle &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawRectangle           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rectangle</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a simple, non-filled, <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> with one pixel width. 
<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>rectangle</em>&nbsp;</td><td>the <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> to draw. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#8ffb254f53931ce3809a6f10307fcbf2">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00442">442</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8cpp-source.html#l00231">drawHLine()</a>, <a class="el" href="sdlgraphics_8cpp-source.html#l00337">drawVLine()</a>, <a class="el" href="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, and <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>.
</div>
</div><p>
<a class="anchor" name="38369ee1d6be599abecdaa7cf17aaba4"></a><!-- doxytag: member="gcn::SDLGraphics::drawSDLSurface" ref="38369ee1d6be599abecdaa7cf17aaba4" args="(SDL_Surface *surface, SDL_Rect source, SDL_Rect destination)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawSDLSurface           </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>surface</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect&nbsp;</td>
          <td class="paramname"> <em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect&nbsp;</td>
          <td class="paramname"> <em>destination</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>
Draws an SDL_Surface on the target surface. 
<p>
Normaly you'll use drawImage, but if you want to write SDL specific code this function might come in handy.<p>
NOTE: The clip areas will be taken into account. 
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00638">638</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
</div>
</div><p>
<a class="anchor" name="425d9b80490169dddfaf37ba3d6724cf"></a><!-- doxytag: member="gcn::SDLGraphics::drawVLine" ref="425d9b80490169dddfaf37ba3d6724cf" args="(int x, int y1, int y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::drawVLine           </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>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a vertical line. 
<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 of the line. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y1</em>&nbsp;</td><td>the start coordinate of the line. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y2</em>&nbsp;</td><td>the end coordinate of the line. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00337">337</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.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="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="color_8hpp-source.html#l00145">gcn::Color::r</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00176">gcn::SDLAlpha32()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
<p>
Referenced by <a class="el" href="sdlgraphics_8cpp-source.html#l00456">drawLine()</a>, and <a class="el" href="sdlgraphics_8cpp-source.html#l00442">drawRectangle()</a>.
</div>
</div><p>
<a class="anchor" name="8d3fba4fa40d9d5ef436b836dfd25804"></a><!-- doxytag: member="gcn::SDLGraphics::fillRectangle" ref="8d3fba4fa40d9d5ef436b836dfd25804" args="(const Rectangle &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::fillRectangle           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rectangle</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a filled <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a>. 
<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>rectangle</em>&nbsp;</td><td>the filled <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> to draw. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#5caac226a94ecf8fdfee1da7cd14f0df">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00167">167</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.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="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="rectangle_8cpp-source.html#l00089">gcn::Rectangle::intersect()</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="color_8hpp-source.html#l00145">gcn::Color::r</a>, <a class="el" href="sdlpixel_8hpp-source.html#l00221">gcn::SDLputPixelAlpha()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, <a class="el" href="cliprectangle_8hpp-source.html#l00102">gcn::ClipRectangle::xOffset</a>, <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>, and <a class="el" href="cliprectangle_8hpp-source.html#l00107">gcn::ClipRectangle::yOffset</a>.
</div>
</div><p>
<a class="anchor" name="64363f22dce7278007350cfab8569d58"></a><!-- doxytag: member="gcn::SDLGraphics::getColor" ref="64363f22dce7278007350cfab8569d58" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgcn_1_1Color.html">Color</a> &amp; gcn::SDLGraphics::getColor           </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>
Gets the <a class="el" href="classgcn_1_1Color.html">Color</a> to use when drawing. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the <a class="el" href="classgcn_1_1Color.html">Color</a> used when drawing. </dd></dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#509769aaeb7356cd0f595f3ddb962e49">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00633">633</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>.
</div>
</div><p>
<a class="anchor" name="1e5d70320dcf5c96b3aee922ad6b5c66"></a><!-- doxytag: member="gcn::SDLGraphics::getTarget" ref="1e5d70320dcf5c96b3aee922ad6b5c66" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_Surface * gcn::SDLGraphics::getTarget           </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 target SDL_Surface. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the target SDL_Surface. </dd></dl>

<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00138">138</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>.
</div>
</div><p>
<a class="anchor" name="6876d1027cb3feb4a413e3e854812a4b"></a><!-- doxytag: member="gcn::SDLGraphics::popClipArea" ref="6876d1027cb3feb4a413e3e854812a4b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::popClipArea           </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>
Removes the topmost clip area from the stack. 
<p>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classgcn_1_1Exception.html">Exception</a></em>&nbsp;</td><td>if the stack is empty. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1Graphics.html#11a3be7969db7490df8a02cb4549b443">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00119">119</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="graphics_8cpp-source.html#l00103">gcn::Graphics::popClipArea()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, and <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>.
<p>
Referenced by <a class="el" href="sdlgraphics_8cpp-source.html#l00093">_endDraw()</a>.
</div>
</div><p>
<a class="anchor" name="1fbd23bf7540f15bb9e07ee378d60e25"></a><!-- doxytag: member="gcn::SDLGraphics::pushClipArea" ref="1fbd23bf7540f15bb9e07ee378d60e25" args="(Rectangle area)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcn::SDLGraphics::pushClipArea           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a>&nbsp;</td>
          <td class="paramname"> <em>area</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pushes a clip area onto the stack. 
<p>
The x and y coordinates in the <a class="el" href="classgcn_1_1Rectangle.html">Rectangle</a> will be relative to the last pushed clip area. If the new area falls outside the current clip area, it will be clipped as necessary.<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>area</em>&nbsp;</td><td>the clip area to be pushed onto the stack. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>false if the the new area lays totally outside the current clip area. Note that an empty clip area will be pused in this case. </dd></dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1Graphics.html#b8f8773da6aa70f5fb554c2a2815c496">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00103">103</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="graphics_8hpp-source.html#l00268">gcn::Graphics::mClipStack</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>, <a class="el" href="graphics_8cpp-source.html#l00075">gcn::Graphics::pushClipArea()</a>, <a class="el" href="rectangle_8hpp-source.html#l00113">gcn::Rectangle::width</a>, <a class="el" href="rectangle_8hpp-source.html#l00111">gcn::Rectangle::x</a>, and <a class="el" href="rectangle_8hpp-source.html#l00112">gcn::Rectangle::y</a>.
<p>
Referenced by <a class="el" href="sdlgraphics_8cpp-source.html#l00083">_beginDraw()</a>.
</div>
</div><p>
<a class="anchor" name="26298c36c21fc6e16b02a932627adae6"></a><!-- doxytag: member="gcn::SDLGraphics::setColor" ref="26298c36c21fc6e16b02a932627adae6" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::setColor           </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;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the <a class="el" href="classgcn_1_1Color.html">Color</a> to use when drawing. 
<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>color</em>&nbsp;</td><td>a <a class="el" href="classgcn_1_1Color.html">Color</a>. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Graphics.html#7f438ae2b4cc09c66d77a9b9cb591e7c">gcn::Graphics</a>.
<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00626">626</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="color_8hpp-source.html#l00161">gcn::Color::a</a>, <a class="el" href="sdlgraphics_8hpp-source.html#l00160">mAlpha</a>, and <a class="el" href="sdlgraphics_8hpp-source.html#l00159">mColor</a>.
</div>
</div><p>
<a class="anchor" name="087add21b88b101096cbfd052f4b4a8f"></a><!-- doxytag: member="gcn::SDLGraphics::setTarget" ref="087add21b88b101096cbfd052f4b4a8f" args="(SDL_Surface *target)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::SDLGraphics::setTarget           </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>target</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the target SDL_Surface to draw to. 
<p>
The target can be any SDL_Surface. This funtion also pushes a clip areas corresponding to the dimension of the target.<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>target</em>&nbsp;</td><td>the target to draw to. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="sdlgraphics_8cpp-source.html#l00098">98</a> of file <a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.cpp</a>.
<p>
References <a class="el" href="sdlgraphics_8hpp-source.html#l00158">mTarget</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="sdlgraphics_8hpp-source.html">sdlgraphics.hpp</a><li><a class="el" href="sdlgraphics_8cpp-source.html">sdlgraphics.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>