Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 550

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: csGenerateImage Class Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <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>
<h1>csGenerateImage Class Reference</h1><!-- doxytag: class="csGenerateImage" -->This class will compute a texture for a terrain.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="gentrtex_8h-source.html">cstool/gentrtex.h</a>&gt;</code>
<p>

<p>
<a href="classcsGenerateImage-members.html">List of all members.</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="classcsGenerateImage.html#511c8ebe6bc4832b7bb30e99c31ed361">csGenerateImage</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">create empty  <a href="#511c8ebe6bc4832b7bb30e99c31ed361"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structiImage.html">iImage</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGenerateImage.html#dbb220135d29ec757adc149508957795">Generate</a> (int totalw, int totalh, int startx, int starty, int partw, int parth)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate part of a terrain image.  <a href="#dbb220135d29ec757adc149508957795"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGenerateImage.html#936901df0a0b04f423d5fe7bbf48020b">SetTexture</a> (<a class="el" href="classcsGenerateImageTexture.html">csGenerateImageTexture</a> *t)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the texture to show, You can easily construct one yourself, using the classes below.  <a href="#936901df0a0b04f423d5fe7bbf48020b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGenerateImage.html#8df7d1bb87ffd9db9a60279fe3df3bda">~csGenerateImage</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">destroy  <a href="#8df7d1bb87ffd9db9a60279fe3df3bda"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class will compute a texture for a terrain. 
<p>
The texture is based on the heightmap for the terrain. It is like the povray MaterialMap, but then indexed with the height of the terrain. This means, that given some base textures that should display at certain heights, the whole texture is computed. At each pixel the base textures are blended together, based on the height. <dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000014">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="gentrtex_8h-source.html#l00079">79</a> of file <a class="el" href="gentrtex_8h-source.html">gentrtex.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="511c8ebe6bc4832b7bb30e99c31ed361"></a><!-- doxytag: member="csGenerateImage::csGenerateImage" ref="511c8ebe6bc4832b7bb30e99c31ed361" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">csGenerateImage::csGenerateImage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
create empty 
<p>

</div>
</div><p>
<a class="anchor" name="8df7d1bb87ffd9db9a60279fe3df3bda"></a><!-- doxytag: member="csGenerateImage::~csGenerateImage" ref="8df7d1bb87ffd9db9a60279fe3df3bda" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">csGenerateImage::~csGenerateImage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
destroy 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="dbb220135d29ec757adc149508957795"></a><!-- doxytag: member="csGenerateImage::Generate" ref="dbb220135d29ec757adc149508957795" args="(int totalw, int totalh, int startx, int starty, int partw, int parth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structiImage.html">iImage</a>* csGenerateImage::Generate           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>totalw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>totalh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>startx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>starty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>partw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>parth</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>
Generate part of a terrain image. 
<p>
Give total terrain image size, give the startx,y texel in the total image, and the size of the part you want generated creates a new <a class="el" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a>. 
</div>
</div><p>
<a class="anchor" name="936901df0a0b04f423d5fe7bbf48020b"></a><!-- doxytag: member="csGenerateImage::SetTexture" ref="936901df0a0b04f423d5fe7bbf48020b" args="(csGenerateImageTexture *t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void csGenerateImage::SetTexture           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcsGenerateImageTexture.html">csGenerateImageTexture</a> *&nbsp;</td>
          <td class="paramname"> <em>t</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the texture to show, You can easily construct one yourself, using the classes below. 
<p>

<p>Definition at line <a class="el" href="gentrtex_8h-source.html#l00095">95</a> of file <a class="el" href="gentrtex_8h-source.html">gentrtex.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>cstool/<a class="el" href="gentrtex_8h-source.html">gentrtex.h</a></ul>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>