Sophie

Sophie

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

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::SDLImageLoader 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_1SDLImageLoader.html">SDLImageLoader</a></div>
<h1>gcn::SDLImageLoader Class Reference</h1><!-- doxytag: class="gcn::SDLImageLoader" --><!-- doxytag: inherits="gcn::ImageLoader" --><code>#include &lt;<a class="el" href="sdlimageloader_8hpp-source.html">sdlimageloader.hpp</a>&gt;</code>
<p>
<p>Inheritance diagram for gcn::SDLImageLoader:
<p><center><img src="classgcn_1_1SDLImageLoader.png" usemap="#gcn::SDLImageLoader_map" border="0" alt=""></center>
<map name="gcn::SDLImageLoader_map">
<area href="classgcn_1_1ImageLoader.html" alt="gcn::ImageLoader" shape="rect" coords="0,0,183,24">
<area href="classgcn_1_1OpenGLSDLImageLoader.html" alt="gcn::OpenGLSDLImageLoader" shape="rect" coords="0,112,183,136">
</map>
<a href="classgcn_1_1SDLImageLoader-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
SDL implementation of <a class="el" href="classgcn_1_1ImageLoader.html">ImageLoader</a>. 
<p>

<p>
Definition at line <a class="el" href="sdlimageloader_8hpp-source.html#l00072">72</a> of file <a class="el" href="sdlimageloader_8hpp-source.html">sdlimageloader.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">virtual <a class="el" href="classgcn_1_1Image.html">Image</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLImageLoader.html#b22c9ab6175e52d0c76a11cae64bdd1f">load</a> (const std::string &amp;filename, bool convertToDisplayFormat=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads an image by calling the image's <a class="el" href="classgcn_1_1ImageLoader.html">ImageLoader</a>.  <a href="#b22c9ab6175e52d0c76a11cae64bdd1f"></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"><a class="anchor" name="10c58e7f8cb47aac2e55be7fc5843d42"></a><!-- doxytag: member="gcn::SDLImageLoader::loadSDLSurface" ref="10c58e7f8cb47aac2e55be7fc5843d42" args="(const std::string &amp;filename)" -->
virtual SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLImageLoader.html#10c58e7f8cb47aac2e55be7fc5843d42">loadSDLSurface</a> (const std::string &amp;filename)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e98cc6140ae939d4d6563f1fb9ec37a1"></a><!-- doxytag: member="gcn::SDLImageLoader::convertToStandardFormat" ref="e98cc6140ae939d4d6563f1fb9ec37a1" args="(SDL_Surface *surface)" -->
virtual SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1SDLImageLoader.html#e98cc6140ae939d4d6563f1fb9ec37a1">convertToStandardFormat</a> (SDL_Surface *surface)</td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b22c9ab6175e52d0c76a11cae64bdd1f"></a><!-- doxytag: member="gcn::SDLImageLoader::load" ref="b22c9ab6175e52d0c76a11cae64bdd1f" args="(const std::string &amp;filename, bool convertToDisplayFormat=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcn_1_1Image.html">Image</a> * gcn::SDLImageLoader::load           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</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%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Loads an image by calling the image's <a class="el" href="classgcn_1_1ImageLoader.html">ImageLoader</a>. 
<p>
NOTE: The functions getPixel and putPixel in <a class="el" href="classgcn_1_1Image.html">Image</a> 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>filename</em>&nbsp;</td><td>the file to load. </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>
Implements <a class="el" href="classgcn_1_1ImageLoader.html#bd4eab9b35af93047de5da28ba1b66bf">gcn::ImageLoader</a>.
<p>
Reimplemented in <a class="el" href="classgcn_1_1OpenGLSDLImageLoader.html#3ee1cd01621f93752de27311a376043a">gcn::OpenGLSDLImageLoader</a>.
<p>
Definition at line <a class="el" href="sdlimageloader_8cpp-source.html#l00070">70</a> of file <a class="el" href="sdlimageloader_8cpp-source.html">sdlimageloader.cpp</a>.
<p>
References <a class="el" href="classgcn_1_1Image.html#3e59862b9a8fdb2bd3cffd9ba39969af">gcn::Image::convertToDisplayFormat()</a>, <a class="el" href="sdlimageloader_8cpp-source.html#l00105">convertToStandardFormat()</a>, and <a class="el" href="sdlimageloader_8cpp-source.html#l00100">loadSDLSurface()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="sdlimageloader_8hpp-source.html">sdlimageloader.hpp</a><li><a class="el" href="sdlimageloader_8cpp-source.html">sdlimageloader.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>