<!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: cstool/gentrtex.h Source File (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 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><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>cstool/gentrtex.h</h1><a href="gentrtex_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> Copyright (C) 2001 by W.C.A. Wijngaards</span> <a name="l00003"></a>00003 <span class="comment"></span> <a name="l00004"></a>00004 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00005"></a>00005 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00006"></a>00006 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00007"></a>00007 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00010"></a>00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00011"></a>00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00012"></a>00012 <span class="comment"> Library General Public License for more details.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment"> You should have received a copy of the GNU Library General Public</span> <a name="l00015"></a>00015 <span class="comment"> License along with this library; if not, write to the Free</span> <a name="l00016"></a>00016 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00017"></a>00017 <span class="comment">*/</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CS_GENTERTEX_H__</span> <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_GENTERTEX_H__</span> <a name="l00021"></a>00021 <span class="preprocessor"></span> <a name="l00026"></a>00026 <span class="preprocessor">#include "csextern.h"</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="vector2_8h.html" title="2D vector.">csgeom/vector2.h</a>"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="cscolor_8h.html" title="Floating-point color.">csutil/cscolor.h</a>"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="ref_8h.html" title="Smart Pointers.">csutil/ref.h</a>"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="scf__interface_8h.html" title="Crystal Space Shared Class Facility (SCF) - interface creation support.">csutil/scf_interface.h</a>"</span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="keyword">struct </span><a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a>; <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">struct </span><a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>; <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="msvc__deprecated__warn__off_8h.html" title="Disable MSVC deprecated warnings.">csutil/win32/msvc_deprecated_warn_off.h</a>"</span> <a name="l00038"></a>00038 <a name="l00044"></a><a class="code" href="classcsGenerateImageValue.html">00044</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a> <a name="l00045"></a>00045 { <a name="l00046"></a>00046 <span class="keyword">public</span>: <a name="l00048"></a><a class="code" href="classcsGenerateImageValue.html#5bdd797765c068278e4fed71f4013c1f">00048</a> <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a>() {} <a name="l00050"></a>00050 <span class="keyword">virtual</span> <span class="keywordtype">float</span> GetValue (<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y) = 0; <a name="l00051"></a>00051 }; <a name="l00052"></a>00052 <a name="l00058"></a><a class="code" href="classcsGenerateImageTexture.html">00058</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> <a name="l00059"></a>00059 { <a name="l00060"></a>00060 <span class="keyword">public</span>: <a name="l00062"></a><a class="code" href="classcsGenerateImageTexture.html#f8bd4bec335dbe5f86226f83759794f7">00062</a> <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a>() {} <a name="l00064"></a>00064 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetColor(<a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a>& col, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y) = 0; <a name="l00065"></a>00065 }; <a name="l00066"></a>00066 <a name="l00067"></a>00067 <a name="l00079"></a><a class="code" href="classcsGenerateImage.html">00079</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImage.html" title="This class will compute a texture for a terrain.">csGenerateImage</a> <a name="l00080"></a>00080 { <a name="l00081"></a>00081 <span class="keyword">private</span>: <a name="l00083"></a>00083 <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> *tex; <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keyword">public</span>: <a name="l00087"></a>00087 <a class="code" href="classcsGenerateImage.html" title="This class will compute a texture for a terrain.">csGenerateImage</a>(); <a name="l00089"></a>00089 ~<a class="code" href="classcsGenerateImage.html" title="This class will compute a texture for a terrain.">csGenerateImage</a>(); <a name="l00090"></a>00090 <a name="l00095"></a><a class="code" href="classcsGenerateImage.html#936901df0a0b04f423d5fe7bbf48020b">00095</a> <span class="keywordtype">void</span> SetTexture(<a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> *t) {tex = t;} <a name="l00096"></a>00096 <a name="l00104"></a>00104 <a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a> *Generate(<span class="keywordtype">int</span> totalw, <span class="keywordtype">int</span> totalh, <span class="keywordtype">int</span> startx, <span class="keywordtype">int</span> starty, <a name="l00105"></a>00105 <span class="keywordtype">int</span> partw, <span class="keywordtype">int</span> parth); <a name="l00106"></a>00106 }; <a name="l00107"></a>00107 <a name="l00113"></a><a class="code" href="classcsGenerateImageLayer.html">00113</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageLayer.html" title="This class is used to store the layers of textures per value.">csGenerateImageLayer</a> <a name="l00114"></a>00114 { <a name="l00115"></a>00115 <span class="keyword">public</span>: <a name="l00117"></a><a class="code" href="classcsGenerateImageLayer.html#92e9fe5452081424df09f16759562595">00117</a> <span class="keywordtype">float</span> value; <a name="l00119"></a><a class="code" href="classcsGenerateImageLayer.html#9860402af33454ec2a7d37ff52b8ed3f">00119</a> <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> *tex; <a name="l00121"></a><a class="code" href="classcsGenerateImageLayer.html#1d846908ec6cf0c61e514a1a56853409">00121</a> <a class="code" href="classcsGenerateImageLayer.html" title="This class is used to store the layers of textures per value.">csGenerateImageLayer</a> *next; <a name="l00122"></a>00122 }; <a name="l00123"></a>00123 <a name="l00128"></a><a class="code" href="classcsGenerateImageTextureSolid.html">00128</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageTextureSolid.html" title="A class for a solid coloured texture.">csGenerateImageTextureSolid</a> : <a name="l00129"></a>00129 <span class="keyword">public</span> <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> <a name="l00130"></a>00130 { <a name="l00131"></a>00131 <span class="keyword">public</span>: <a name="l00133"></a><a class="code" href="classcsGenerateImageTextureSolid.html#23cdc87cb468ce8b1ad4a9ca9710e875">00133</a> <a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a> color; <a name="l00135"></a><a class="code" href="classcsGenerateImageTextureSolid.html#0658961c41a282e3af8cbf1798eb5fa7">00135</a> <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageTextureSolid.html" title="A class for a solid coloured texture.">csGenerateImageTextureSolid</a>() {} <a name="l00137"></a><a class="code" href="classcsGenerateImageTextureSolid.html#3edbd94626a528c79abbacd553a5d507">00137</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsGenerateImageTexture.html#f1f1b5a8e27e3c8cf44402260b41de63" title="get color (0..1) for location">GetColor</a>(<a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a>& col, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>) {col = color;} <a name="l00138"></a>00138 }; <a name="l00139"></a>00139 <a name="l00144"></a><a class="code" href="classcsGenerateImageTextureSingle.html">00144</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageTextureSingle.html" title="A class for a single texture.">csGenerateImageTextureSingle</a> : <a name="l00145"></a>00145 <span class="keyword">public</span> <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> <a name="l00146"></a>00146 { <a name="l00147"></a>00147 <span class="keyword">public</span>: <a name="l00149"></a><a class="code" href="classcsGenerateImageTextureSingle.html#3bd1ec0c20aaf109077153d1c91878d4">00149</a> <a class="code" href="classcsRef.html" title="A smart pointer.">csRef<iImage></a> image; <a name="l00151"></a><a class="code" href="classcsGenerateImageTextureSingle.html#2c3619516fac06579ee7ffa3dcc07ff2">00151</a> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a> scale; <a name="l00153"></a><a class="code" href="classcsGenerateImageTextureSingle.html#e28391c6b077a2a20ce109eddf918007">00153</a> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a> offset; <a name="l00154"></a>00154 <a name="l00156"></a>00156 <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageTextureSingle.html" title="A class for a single texture.">csGenerateImageTextureSingle</a>(); <a name="l00158"></a>00158 <span class="keywordtype">void</span> SetImage(<a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a> *im); <a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsGenerateImageTexture.html#f1f1b5a8e27e3c8cf44402260b41de63" title="get color (0..1) for location">GetColor</a>(<a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a>& col, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00162"></a>00162 <span class="keywordtype">void</span> GetImagePixel(<a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a> *image, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>& res); <a name="l00164"></a>00164 <span class="keywordtype">void</span> ComputeLayerColor(<span class="keyword">const</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a>& pos, <a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a>& col); <a name="l00165"></a>00165 }; <a name="l00166"></a>00166 <a name="l00172"></a><a class="code" href="classcsGenerateImageTextureBlend.html">00172</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageTextureBlend.html" title="a class for a texture that is made by blending together other textures based on a...">csGenerateImageTextureBlend</a> : <a name="l00173"></a>00173 <span class="keyword">public</span> <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> <a name="l00174"></a>00174 { <a name="l00175"></a>00175 <span class="keyword">public</span>: <a name="l00177"></a><a class="code" href="classcsGenerateImageTextureBlend.html#ef83b05466fb7b9cfbd73706a1f9b9ba">00177</a> <a class="code" href="classcsGenerateImageLayer.html" title="This class is used to store the layers of textures per value.">csGenerateImageLayer</a> *layers; <a name="l00179"></a><a class="code" href="classcsGenerateImageTextureBlend.html#35d694df56b63baa93b8eee0cc7f16e8">00179</a> <a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a> *valuefunc; <a name="l00181"></a>00181 <a class="code" href="classcsGenerateImageTextureBlend.html" title="a class for a texture that is made by blending together other textures based on a...">csGenerateImageTextureBlend</a>(); <a name="l00183"></a>00183 <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageTextureBlend.html" title="a class for a texture that is made by blending together other textures based on a...">csGenerateImageTextureBlend</a>(); <a name="l00185"></a>00185 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsGenerateImageTexture.html#f1f1b5a8e27e3c8cf44402260b41de63" title="get color (0..1) for location">GetColor</a>(<a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a>& col, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00187"></a>00187 <span class="keywordtype">void</span> AddLayer(<span class="keywordtype">float</span> value, <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> *tex); <a name="l00188"></a>00188 }; <a name="l00189"></a>00189 <a name="l00195"></a><a class="code" href="structiGenerateImageFunction.html">00195</a> <span class="keyword">struct </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> <a class="code" href="structiGenerateImageFunction.html" title="This class represents a function for csGenerateImageValueFunc.">iGenerateImageFunction</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a> <a name="l00196"></a>00196 { <a name="l00197"></a>00197 <a class="code" href="group__scf.html#g711056cbf220f268640935926c404ba5" title="SCF_INTERFACE can be used to define an interface&#39;s version number; you should...">SCF_INTERFACE</a> (<a class="code" href="structiGenerateImageFunction.html" title="This class represents a function for csGenerateImageValueFunc.">iGenerateImageFunction</a>, 2, 0, 0); <a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">float</span> GetValue (<span class="keywordtype">float</span> dx, <span class="keywordtype">float</span> dy) = 0; <a name="l00200"></a>00200 }; <a name="l00201"></a>00201 <a name="l00202"></a>00202 <a name="l00208"></a><a class="code" href="classcsGenerateImageValueFunc.html">00208</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageValueFunc.html" title="This class will generate a value using a given function.">csGenerateImageValueFunc</a> <a name="l00209"></a>00209 : <span class="keyword">public</span> <a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a> <a name="l00210"></a>00210 { <a name="l00211"></a>00211 <span class="keyword">private</span>: <a name="l00213"></a>00213 <a class="code" href="classcsRef.html" title="A smart pointer.">csRef<iGenerateImageFunction></a> heightfunc; <a name="l00214"></a>00214 <a name="l00215"></a>00215 <span class="keyword">public</span>: <a name="l00216"></a><a class="code" href="classcsGenerateImageValueFunc.html#4ed78561a554e677abdca67d9a5035ae">00216</a> <a class="code" href="classcsGenerateImageValueFunc.html" title="This class will generate a value using a given function.">csGenerateImageValueFunc</a> () { } <a name="l00217"></a><a class="code" href="classcsGenerateImageValueFunc.html#8334e0602493e161489342364bf95fb5">00217</a> <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageValueFunc.html" title="This class will generate a value using a given function.">csGenerateImageValueFunc</a> () <a name="l00218"></a>00218 { <a name="l00219"></a>00219 } <a name="l00220"></a>00220 <a name="l00222"></a><a class="code" href="classcsGenerateImageValueFunc.html#cf86867e21af406bf696b10f2d640532">00222</a> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classcsGenerateImageValue.html#549362695b331d26b4c71e0961b442f9" title="get the value for location">GetValue</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y) <a name="l00223"></a>00223 { <a name="l00224"></a>00224 <span class="keywordflow">return</span> heightfunc->GetValue (x, y); <a name="l00225"></a>00225 } <a name="l00227"></a><a class="code" href="classcsGenerateImageValueFunc.html#2a24393cec0bc465c83c640180b8a2e8">00227</a> <span class="keywordtype">void</span> SetFunction (<a class="code" href="structiGenerateImageFunction.html" title="This class represents a function for csGenerateImageValueFunc.">iGenerateImageFunction</a>* func) <a name="l00228"></a>00228 { <a name="l00229"></a>00229 heightfunc = func; <a name="l00230"></a>00230 } <a name="l00231"></a>00231 }; <a name="l00232"></a>00232 <a name="l00237"></a><a class="code" href="classcsGenerateImageValueFuncConst.html">00237</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageValueFuncConst.html" title="This class will generate a constant value.">csGenerateImageValueFuncConst</a> : <a name="l00238"></a>00238 <span class="keyword">public</span> <a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a> <a name="l00239"></a>00239 { <a name="l00240"></a>00240 <span class="keyword">public</span>: <a name="l00242"></a><a class="code" href="classcsGenerateImageValueFuncConst.html#48666e12f9fd158ff9cc23be384de777">00242</a> <span class="keywordtype">float</span> constant; <a name="l00244"></a><a class="code" href="classcsGenerateImageValueFuncConst.html#fa8d64b186357eae3b91785685f58a9e">00244</a> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classcsGenerateImageValue.html#549362695b331d26b4c71e0961b442f9" title="get the value for location">GetValue</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>){<span class="keywordflow">return</span> constant;} <a name="l00245"></a>00245 }; <a name="l00246"></a>00246 <a name="l00252"></a><a class="code" href="classcsGenerateImageValueFuncTex.html">00252</a> <span class="keyword">class </span><a class="code" href="cssysdef_8h.html#cb08eeedad04ba9cc9c2a5919bab119f" title="Use the CS_DEPRECATED_TYPE macro after type declarations to indicate that they are...">CS_DEPRECATED_TYPE</a> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsGenerateImageValueFuncTex.html" title="This class will generate a value using a texture.">csGenerateImageValueFuncTex</a> : <a name="l00253"></a>00253 <span class="keyword">public</span> <a class="code" href="classcsGenerateImageValue.html" title="A base class which represents a value that can be computed for blending purposes...">csGenerateImageValue</a> <a name="l00254"></a>00254 { <a name="l00255"></a>00255 <span class="keyword">public</span>: <a name="l00257"></a><a class="code" href="classcsGenerateImageValueFuncTex.html#5916e68c42cf6b6c0edc7a01390e3b25">00257</a> <a class="code" href="classcsGenerateImageTexture.html" title="A base class which represents a texture that can be displayed on the terrain.">csGenerateImageTexture</a> *tex; <a name="l00259"></a>00259 <span class="keyword">virtual</span> ~<a class="code" href="classcsGenerateImageValueFuncTex.html" title="This class will generate a value using a texture.">csGenerateImageValueFuncTex</a>(); <a name="l00261"></a>00261 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classcsGenerateImageValue.html#549362695b331d26b4c71e0961b442f9" title="get the value for location">GetValue</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00262"></a>00262 }; <a name="l00263"></a>00263 <a name="l00264"></a>00264 <span class="preprocessor">#include "<a class="code" href="msvc__deprecated__warn__on_8h.html" title="Re-enable MSVC deprecated warnings.">csutil/win32/msvc_deprecated_warn_on.h</a>"</span> <a name="l00265"></a>00265 <a name="l00266"></a>00266 <span class="preprocessor">#endif // __CS_GENTERTEX_H__</span> <a name="l00267"></a>00267 <span class="preprocessor"></span> </pre></div><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>