Sophie

Sophie

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

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: imesh/sprite2d.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&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><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&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>imesh/sprite2d.h</h1><a href="sprite2d_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) 2000 by Jorrit Tyberghein</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_IMESH_SPRITE2D_H__</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_IMESH_SPRITE2D_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="iutil_2array_8h.html" title="Templates for array interfaces.">iutil/array.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="scf_8h.html" title="Crystal Space Shared Class Facility (SCF).">csutil/scf.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="dirtyaccessarray_8h.html" title="Templated array class, allowing direct access to the internally stored array.">csutil/dirtyaccessarray.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="vector2_8h.html" title="2D vector.">csgeom/vector2.h</a>"</span>
<a name="l00031"></a>00031 
<a name="l00035"></a>00035 <span class="keyword">struct </span><a class="code" href="structiMaterialWrapper.html" title="A material wrapper is an engine-level object that wraps around an actual material...">iMaterialWrapper</a>;
<a name="l00036"></a>00036 
<a name="l00038"></a><a class="code" href="structcsSprite2DVertex.html">00038</a> <span class="keyword">struct </span><a class="code" href="structcsSprite2DVertex.html" title="A single 2D Sprite vertex.">csSprite2DVertex</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a><a class="code" href="structcsSprite2DVertex.html#c99c0df5c5c3aeb4cd75feeb66b0a1fa">00040</a>   <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a> <a class="code" href="structcsSprite2DVertex.html#c99c0df5c5c3aeb4cd75feeb66b0a1fa">pos</a>;
<a name="l00041"></a><a class="code" href="structcsSprite2DVertex.html#fa9b22365c81d77826d123a3fca3abc0">00041</a>   <a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a> <a class="code" href="structcsSprite2DVertex.html#fa9b22365c81d77826d123a3fca3abc0">color_init</a>;
<a name="l00042"></a><a class="code" href="structcsSprite2DVertex.html#8024a308185d525bb496acae807ce032">00042</a>   <a class="code" href="classcsColor.html" title="A class used to represent a color in RGB space.">csColor</a> <a class="code" href="structcsSprite2DVertex.html#8024a308185d525bb496acae807ce032">color</a>;
<a name="l00043"></a><a class="code" href="structcsSprite2DVertex.html#8dbd7cce0b7e8cd829859274cd358593">00043</a>   <span class="keywordtype">float</span> <a class="code" href="structcsSprite2DVertex.html#e1f6334b2ac934704041df91472c7085">u</a>, <a class="code" href="structcsSprite2DVertex.html#8dbd7cce0b7e8cd829859274cd358593">v</a>;
<a name="l00044"></a><a class="code" href="structcsSprite2DVertex.html#37477a9b1a0a6e13fb6cee67558e2664">00044</a>   <span class="keywordtype">bool</span> <a class="code" href="structcsSprite2DVertex.html#37477a9b1a0a6e13fb6cee67558e2664">operator== </a>(<span class="keyword">const</span> <a class="code" href="structcsSprite2DVertex.html" title="A single 2D Sprite vertex.">csSprite2DVertex</a>&amp; other)
<a name="l00045"></a>00045   { 
<a name="l00046"></a>00046     <span class="keywordflow">return</span> (<a class="code" href="structcsSprite2DVertex.html#c99c0df5c5c3aeb4cd75feeb66b0a1fa">pos</a> == other.<a class="code" href="structcsSprite2DVertex.html#c99c0df5c5c3aeb4cd75feeb66b0a1fa">pos</a>) &amp;&amp; (<a class="code" href="structcsSprite2DVertex.html#fa9b22365c81d77826d123a3fca3abc0">color_init</a> == other.<a class="code" href="structcsSprite2DVertex.html#fa9b22365c81d77826d123a3fca3abc0">color_init</a>)
<a name="l00047"></a>00047       &amp;&amp; (<a class="code" href="structcsSprite2DVertex.html#8024a308185d525bb496acae807ce032">color</a> == other.<a class="code" href="structcsSprite2DVertex.html#8024a308185d525bb496acae807ce032">color</a>) &amp;&amp; (<a class="code" href="structcsSprite2DVertex.html#e1f6334b2ac934704041df91472c7085">u</a> == other.<a class="code" href="structcsSprite2DVertex.html#e1f6334b2ac934704041df91472c7085">u</a>) &amp;&amp; (<a class="code" href="structcsSprite2DVertex.html#8dbd7cce0b7e8cd829859274cd358593">v</a> == other.<a class="code" href="structcsSprite2DVertex.html#8dbd7cce0b7e8cd829859274cd358593">v</a>);
<a name="l00048"></a>00048   }
<a name="l00049"></a>00049 };
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="structiColoredVertices.html">00051</a> <span class="keyword">struct </span><a class="code" href="structiColoredVertices.html">iColoredVertices</a> : <span class="keyword">public</span> <a class="code" href="structiArrayChangeAll.html" title="Array interface template, completely changeable.">iArrayChangeAll</a>&lt;csSprite2DVertex&gt;
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053   SCF_IARRAYCHANGEALL_INTERFACE(<a class="code" href="structiColoredVertices.html">iColoredVertices</a>);
<a name="l00054"></a>00054 };
<a name="l00055"></a>00055 
<a name="l00060"></a><a class="code" href="structiSprite2DUVAnimationFrame.html">00060</a> <span class="keyword">struct </span><a class="code" href="structiSprite2DUVAnimationFrame.html" title="This is a single frame in a UV animation.">iSprite2DUVAnimationFrame</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="l00061"></a>00061 {
<a name="l00062"></a>00062   SCF_INTERFACE (<a class="code" href="structiSprite2DUVAnimationFrame.html" title="This is a single frame in a UV animation.">iSprite2DUVAnimationFrame</a>, 1, 0, 0);
<a name="l00063"></a>00063 
<a name="l00067"></a>00067   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#b2d4e7909b99ffad1731280e70bc1db0" title="Give this frame a name.">SetName</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name) = 0;
<a name="l00068"></a>00068 
<a name="l00072"></a>00072   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structiSprite2DUVAnimationFrame.html#f807732f5121087043894a6857c9e11d" title="Return the name of this frame.">GetName</a> () <span class="keyword">const</span> = 0;
<a name="l00073"></a>00073 
<a name="l00077"></a>00077   <span class="keyword">virtual</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a> &amp;<a class="code" href="structiSprite2DUVAnimationFrame.html#629b63e2fadc846142ce7173f27de214" title="Get all u,v coordinates.">GetUVCoo</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00078"></a>00078 
<a name="l00082"></a>00082   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a> *<a class="code" href="structiSprite2DUVAnimationFrame.html#629b63e2fadc846142ce7173f27de214" title="Get all u,v coordinates.">GetUVCoo</a> () = 0;
<a name="l00083"></a>00083 
<a name="l00087"></a>00087   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#6b50e4ff7f9706e4dbc31f9dca53bbf5" title="Get the number of (u,v) coordinates.">GetUVCount</a> () = 0;
<a name="l00088"></a>00088 
<a name="l00092"></a>00092   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#723fe62add35db56721e7049b4481b2d" title="Set the (u,v) coordinate of idx&amp;#39;th coordinate.">SetUV</a> (<span class="keywordtype">int</span> idx, <span class="keywordtype">float</span> u, <span class="keywordtype">float</span> v) = 0;
<a name="l00093"></a>00093 
<a name="l00097"></a>00097   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#dcaf8665094b027c2670bfc6cfaf887e" title="Set all (u,v) coordinates and the name and duration.">SetFrameData</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> duration, <span class="keywordtype">int</span> num,
<a name="l00098"></a>00098         <span class="keywordtype">float</span> *uv) = 0;
<a name="l00099"></a>00099 
<a name="l00103"></a>00103   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#de7a3a30ebb414156466a7a5c893fa25" title="Remove the idx&amp;#39;th coordinate.">RemoveUV</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00104"></a>00104 
<a name="l00108"></a>00108   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#efc344bbac774b86d00862084f6fee9d" title="Return the duration of this frame.">GetDuration</a> () = 0;
<a name="l00109"></a>00109 
<a name="l00113"></a>00113   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimationFrame.html#d0d8f78a936d91f90b677c1d7b1a837a" title="Set the duration of this frame.">SetDuration</a> (<span class="keywordtype">int</span> duration) = 0;
<a name="l00114"></a>00114 };
<a name="l00115"></a>00115 
<a name="l00122"></a><a class="code" href="structiSprite2DUVAnimation.html">00122</a> <span class="keyword">struct </span><a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</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="l00123"></a>00123 {
<a name="l00124"></a>00124   SCF_INTERFACE (<a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a>, 1, 0, 0);
<a name="l00125"></a>00125 
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimation.html#3b9b447adc59726fe98f58c62b01765e" title="Give this sequence a name.">SetName</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name) = 0;
<a name="l00130"></a>00130 
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structiSprite2DUVAnimation.html#b8ffbe9d21370d3221ff568de7fc3489" title="return the name of this sequence.">GetName</a> () <span class="keyword">const</span> = 0;
<a name="l00135"></a>00135 
<a name="l00139"></a>00139   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiSprite2DUVAnimation.html#99e6b07d24efed8ca7085e3ac1c026f4" title="Retrieve the number of frames in this animation.">GetFrameCount</a> () = 0;
<a name="l00140"></a>00140 
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimationFrame.html" title="This is a single frame in a UV animation.">iSprite2DUVAnimationFrame</a> *<a class="code" href="structiSprite2DUVAnimation.html#16582f5f22d733d7401f82fe2c9d3b7f" title="Get the idx&amp;#39;th frame in the animation.">GetFrame</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00146"></a>00146 
<a name="l00150"></a>00150   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimationFrame.html" title="This is a single frame in a UV animation.">iSprite2DUVAnimationFrame</a> *<a class="code" href="structiSprite2DUVAnimation.html#16582f5f22d733d7401f82fe2c9d3b7f" title="Get the idx&amp;#39;th frame in the animation.">GetFrame</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name) = 0;
<a name="l00151"></a>00151 
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimationFrame.html" title="This is a single frame in a UV animation.">iSprite2DUVAnimationFrame</a> *<a class="code" href="structiSprite2DUVAnimation.html#64d438c46eeb342c9c1f880bca39df8f" title="Create a new frame that will be inserted before the idx&amp;#39;th frame.">CreateFrame</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00157"></a>00157 
<a name="l00162"></a>00162   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimation.html#9abb5d0fd3cdc9dd415464728ebafc99" title="Move the frame&amp;#39;th frame before the idx&amp;#39;th frame.">MoveFrame</a> (<span class="keywordtype">int</span> frame, <span class="keywordtype">int</span> idx) = 0;
<a name="l00163"></a>00163 
<a name="l00167"></a>00167   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DUVAnimation.html#a0ce8606892269d605b57e28504a8082" title="Remove the idx&amp;#39;th from the animation.">RemoveFrame</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170 
<a name="l00174"></a><a class="code" href="structiSprite2DFactoryState.html">00174</a> <span class="keyword">struct </span><a class="code" href="structiSprite2DFactoryState.html" title="This interface describes the API for the sprite factory mesh object.">iSprite2DFactoryState</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="l00175"></a>00175 {
<a name="l00176"></a>00176   SCF_INTERFACE (<a class="code" href="structiSprite2DFactoryState.html" title="This interface describes the API for the sprite factory mesh object.">iSprite2DFactoryState</a>, 1, 0, 0);
<a name="l00177"></a>00177 
<a name="l00184"></a>00184   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DFactoryState.html#94375a2f3a89cd448abfc56deb4c0ed5" title="Set true if this sprite needs lighting (default).">SetLighting</a> (<span class="keywordtype">bool</span> l) = 0;
<a name="l00185"></a>00185 
<a name="l00187"></a>00187   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="structiSprite2DFactoryState.html#2966e703c6374675a571acbcf6968372" title="Return the value of the lighting flag.">HasLighting</a> () <span class="keyword">const</span> = 0;
<a name="l00188"></a>00188 
<a name="l00192"></a>00192   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiSprite2DFactoryState.html#1ebf54d13bcf22ebb5602b9ba4b32926" title="Get the number of UVAnimations.">GetUVAnimationCount</a> () <span class="keyword">const</span> = 0;
<a name="l00193"></a>00193 
<a name="l00197"></a>00197   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DFactoryState.html#8a07689d36a6e65865555a2df0ed42d3" title="Create a new UV animation.">CreateUVAnimation</a> () = 0;
<a name="l00198"></a>00198 
<a name="l00202"></a>00202   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DFactoryState.html#502e2b0aa1f865f6cc2657bf74efd466" title="Remove an UV animation.">RemoveUVAnimation</a> (<a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *anim) = 0;
<a name="l00203"></a>00203 
<a name="l00207"></a>00207   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DFactoryState.html#30e68fbb58c03b8ea2d460a8c62a0507" title="Get a specific UV animation by name.">GetUVAnimation</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span> = 0;
<a name="l00208"></a>00208 
<a name="l00212"></a>00212   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DFactoryState.html#30e68fbb58c03b8ea2d460a8c62a0507" title="Get a specific UV animation by name.">GetUVAnimation</a> (<span class="keywordtype">int</span> idx) <span class="keyword">const</span> = 0;
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 };
<a name="l00215"></a>00215 
<a name="l00220"></a><a class="code" href="structiSprite2DState.html">00220</a> <span class="keyword">struct </span><a class="code" href="structiSprite2DState.html" title="This interface describes the API for the sprite factory mesh object.">iSprite2DState</a> : <span class="keyword">public</span> <a class="code" href="structiSprite2DFactoryState.html" title="This interface describes the API for the sprite factory mesh object.">iSprite2DFactoryState</a>
<a name="l00221"></a>00221 {
<a name="l00222"></a>00222   SCF_INTERFACE (<a class="code" href="structiSprite2DState.html" title="This interface describes the API for the sprite factory mesh object.">iSprite2DState</a>, 1, 1, 0);
<a name="l00223"></a>00223 
<a name="l00225"></a>00225   <span class="keyword">virtual</span> <a class="code" href="structiColoredVertices.html">iColoredVertices</a>* <a class="code" href="structiSprite2DState.html#58f8cbeae35835d23071b8576ecc81d1" title="Get the vertex array.">GetVertices</a> () = 0;
<a name="l00231"></a>00231   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DState.html#7df839efeaa99dbf6f170159cfb38182" title="Set vertices to form a regular n-polygon around (0,0), optionally also set u,v to...">CreateRegularVertices</a> (<span class="keywordtype">int</span> n, <span class="keywordtype">bool</span> setuv) = 0;
<a name="l00232"></a>00232 
<a name="l00244"></a>00244   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DState.html#8d745ff8db3fada21b99d02c604743e8" title="Select an UV animation to play.">SetUVAnimation</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> style, <span class="keywordtype">bool</span> loop) = 0;
<a name="l00245"></a>00245 
<a name="l00249"></a>00249   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DState.html#7ae4733ee58eb9f0debea30fd26c6d6f" title="Get a specific UV animation by name.">GetUVAnimation</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span> = 0;
<a name="l00250"></a>00250 
<a name="l00254"></a>00254   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DState.html#7ae4733ee58eb9f0debea30fd26c6d6f" title="Get a specific UV animation by name.">GetUVAnimation</a> (<span class="keywordtype">int</span> idx) <span class="keyword">const</span> = 0;
<a name="l00255"></a>00255 
<a name="l00259"></a>00259   <span class="keyword">virtual</span> <a class="code" href="structiSprite2DUVAnimation.html" title="The animation works by having all frames of an animation sequence in a texture at...">iSprite2DUVAnimation</a> *<a class="code" href="structiSprite2DState.html#7ae4733ee58eb9f0debea30fd26c6d6f" title="Get a specific UV animation by name.">GetUVAnimation</a> (<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> &amp;style,
<a name="l00260"></a>00260                                                 <span class="keywordtype">bool</span> &amp;loop) <span class="keyword">const</span> = 0;
<a name="l00261"></a>00261 
<a name="l00266"></a>00266   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DState.html#a661948505328f29b9541d70ab6fb735" title="Stop the animation and show the idx&amp;#39;th frame.">StopUVAnimation</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00267"></a>00267 
<a name="l00279"></a>00279   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiSprite2DState.html#1d475615b950bb20f32a0684bdb8a8de" title="Play the animation starting from the idx&amp;#39;th frame.">PlayUVAnimation</a> (<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> style, <span class="keywordtype">bool</span> loop) = 0;
<a name="l00280"></a>00280 };
<a name="l00281"></a>00281 
<a name="l00284"></a>00284 <span class="preprocessor">#endif // __CS_IMESH_SPRITE2D_H__</span>
<a name="l00285"></a>00285 <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>