<!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: iParticleBuiltinEffectorLinColor Struct 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 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 Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>iParticleBuiltinEffectorLinColor Struct Reference<br> <small> [<a class="el" href="group__meshplugins.html">Mesh plugins</a>]</small> </h1><!-- doxytag: class="iParticleBuiltinEffectorLinColor" --><!-- doxytag: inherits="iParticleEffector" -->Simple linear interpolation of particle color based on particle lifetime. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="particles_8h-source.html">imesh/particles.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for iParticleBuiltinEffectorLinColor:</div> <div class="dynsection"> <p><center><img src="structiParticleBuiltinEffectorLinColor__inherit__graph.png" border="0" usemap="#iParticleBuiltinEffectorLinColor__inherit__map" alt="Inheritance graph"></center> <map name="iParticleBuiltinEffectorLinColor__inherit__map"> <area shape="rect" href="structiParticleEffector.html" title="Base interface for particle effector." alt="" coords="51,84,176,111"><area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="85,7,141,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="structiParticleBuiltinEffectorLinColor-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">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structiParticleBuiltinEffectorLinColor.html#d1443a21fedd12d85c7f11e1c965ba39">AddColor</a> (const <a class="el" href="classcsColor4.html">csColor4</a> &color, float endTTL)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add color to list of colors to interpolate between. <a href="#d1443a21fedd12d85c7f11e1c965ba39"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="structiParticleBuiltinEffectorLinColor.html#65ef58026508f6962e852f03f4ab3c31">GetColor</a> (size_t index, <a class="el" href="classcsColor4.html">csColor4</a> &color, float &endTTL) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get color and time. <a href="#65ef58026508f6962e852f03f4ab3c31"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structiParticleBuiltinEffectorLinColor.html#1f356b3e25832b177c6f19cd49a88242">GetColorCount</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get number of color entries. <a href="#1f356b3e25832b177c6f19cd49a88242"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="structiParticleBuiltinEffectorLinColor.html#6e4ea9c7cd4bb7e73f6b51797536be63">SetColor</a> (size_t index, const <a class="el" href="classcsColor4.html">csColor4</a> &color)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the color of an already existing entry. <a href="#6e4ea9c7cd4bb7e73f6b51797536be63"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Simple linear interpolation of particle color based on particle lifetime. <p> The age of particle P is defined as max(0, maxAge - P.TTL)<p> The first color value is regarded as having time 0, independently of what it is set to have <p>Definition at line <a class="el" href="particles_8h-source.html#l00696">696</a> of file <a class="el" href="particles_8h-source.html">particles.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="d1443a21fedd12d85c7f11e1c965ba39"></a><!-- doxytag: member="iParticleBuiltinEffectorLinColor::AddColor" ref="d1443a21fedd12d85c7f11e1c965ba39" args="(const csColor4 &color, float endTTL)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual size_t iParticleBuiltinEffectorLinColor::AddColor </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcsColor4.html">csColor4</a> & </td> <td class="paramname"> <em>color</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"> <em>endTTL</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Add color to list of colors to interpolate between. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Index of new color </dd></dl> </div> </div><p> <a class="anchor" name="65ef58026508f6962e852f03f4ab3c31"></a><!-- doxytag: member="iParticleBuiltinEffectorLinColor::GetColor" ref="65ef58026508f6962e852f03f4ab3c31" args="(size_t index, csColor4 &color, float &endTTL) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void iParticleBuiltinEffectorLinColor::GetColor </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classcsColor4.html">csColor4</a> & </td> <td class="paramname"> <em>color</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float & </td> <td class="paramname"> <em>endTTL</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get color and time. <p> </div> </div><p> <a class="anchor" name="1f356b3e25832b177c6f19cd49a88242"></a><!-- doxytag: member="iParticleBuiltinEffectorLinColor::GetColorCount" ref="1f356b3e25832b177c6f19cd49a88242" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual size_t iParticleBuiltinEffectorLinColor::GetColorCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get number of color entries. <p> </div> </div><p> <a class="anchor" name="6e4ea9c7cd4bb7e73f6b51797536be63"></a><!-- doxytag: member="iParticleBuiltinEffectorLinColor::SetColor" ref="6e4ea9c7cd4bb7e73f6b51797536be63" args="(size_t index, const csColor4 &color)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void iParticleBuiltinEffectorLinColor::SetColor </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classcsColor4.html">csColor4</a> & </td> <td class="paramname"> <em>color</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the color of an already existing entry. <p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>imesh/<a class="el" href="particles_8h-source.html">particles.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>