diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a03189.html | 1069 |
1 files changed, 1069 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03189.html b/docs/doxygen/nel/a03189.html new file mode 100644 index 00000000..9cf6d31a --- /dev/null +++ b/docs/doxygen/nel/a03189.html @@ -0,0 +1,1069 @@ +<!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>NeL: NL3D::CPSTexturedParticle class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CPSTexturedParticle Class Reference</h1><code>#include <<a class="el" href="a06258.html">ps_particle_basic.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSTexturedParticle: +<p><center><img src="a03189.png" usemap="#NL3D::CPSTexturedParticle_map" border="0" alt=""></center> +<map name="NL3D::CPSTexturedParticle_map"> +<area href="a03187.html" alt="NL3D::CPSQuad" shape="rect" coords="88,56,255,80"> +<area href="a03233.html" alt="NL3D::CPSShockWave" shape="rect" coords="265,56,432,80"> +<area href="a03186.html" alt="NL3D::CPSFace" shape="rect" coords="0,112,167,136"> +<area href="a03191.html" alt="NL3D::CPSFaceLookAt" shape="rect" coords="177,112,344,136"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this class adds a texture to a particle. The texture can be animated or not. it can be used by public multiple inheritance. The frame animation are all stored in the same texture for optimisation so it's not suited for large anim... +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00411">411</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</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> </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea0">CPSTexturedParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea1">enumTexs</a> (std::vector< <a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a03487.html">ITexture</a> > > &dest)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03487.html">ITexture</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea2">getTexture</a> (void) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03487.html">ITexture</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea3">getTexture</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the constant texture <a href="#NL3D_1_1CPSTexturedParticlea3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03509.html">CTextureGrouped</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea4">getTextureGroup</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the texture group used if there's a texture scheme, const version. (if null, there's no texture animation) <a href="#NL3D_1_1CPSTexturedParticlea4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03509.html">CTextureGrouped</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea5">getTextureGroup</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the texture group used. it discard any previous single texture. (if null, there's no texture animation) <a href="#NL3D_1_1CPSTexturedParticlea5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea6">getTextureIndex</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the animated texture index. MeaningFul only if a texture group was set <a href="#NL3D_1_1CPSTexturedParticlea6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a04558.html#a10">sint32</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea7">getTextureIndexScheme</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the texture scheme (null if none) const version <a href="#NL3D_1_1CPSTexturedParticlea7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a04558.html#a10">sint32</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea8">getTextureIndexScheme</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the texture scheme (null if none) <a href="#NL3D_1_1CPSTexturedParticlea8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea9">serialTextureScheme</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea10">setTexture</a> (<a class="el" href="a03408.html">CSmartPtr</a>< <a class="el" href="a03487.html">ITexture</a> > tex)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea11">setTextureGroup</a> (<a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a03509.html">CTextureGrouped</a> > texGroup)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea12">setTextureIndex</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea13">setTextureIndexScheme</a> (<a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a04558.html#a10">sint32</a> > *animOrder)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea13"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlea14">~CPSTexturedParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTexturedParticlea14"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb0">deleteTextureIndexElement</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03214.html">CPSLocated</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">deriver must return their owner there <a href="#NL3D_1_1CPSTexturedParticleb1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb2">newTextureIndexElement</a> (<a class="el" href="a03214.html">CPSLocated</a> *emitterLocated, <a class="el" href="a04558.html#a11">uint32</a> emitterIndex)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb3">resizeTextureIndex</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Update the material so that it match the texture scheme. <a href="#NL3D_1_1CPSTexturedParticleb4"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">CSmartPtr</a>< <a class="el" href="a03487.html">ITexture</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">CSmartPtr</a>< <a class="el" href="a03509.html">CTextureGrouped</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">_TextureIndex</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a04558.html#a10">sint32</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea0" doxytag="NL3D::CPSTexturedParticle::CPSTexturedParticle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CPSTexturedParticle::CPSTexturedParticle </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00359">359</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00359 : <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a>(NULL), +00360 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>(NULL), +00361 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">_TextureIndex</a>(0) +00362 { +00363 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea14" doxytag="NL3D::CPSTexturedParticle::~CPSTexturedParticle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CPSTexturedParticle::~<a class="el" href="a03189.html">CPSTexturedParticle</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00366">366</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>. +<p> +<div class="fragment"><pre>00367 { +00368 <span class="keyword">delete</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; +00369 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSTexturedParticleb0" doxytag="NL3D::CPSTexturedParticle::deleteTextureIndexElement" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::deleteTextureIndexElement </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>index</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00489">489</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, <a class="el" href="a06214.html#l00285">NL3D::CPSAttribMaker< sint32 >::deleteElement()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< sint32 >::hasMemory()</a>, <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00460">NL3D::CPSShockWave::deleteElement()</a>, and <a class="el" href="a06263.html#l00105">NL3D::CPSQuad::deleteElement()</a>. +<p> +<div class="fragment"><pre>00490 { +00491 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> && <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->hasMemory()) <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->deleteElement(index); +00492 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea1" doxytag="NL3D::CPSTexturedParticle::enumTexs" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::enumTexs </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< <a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a03487.html">ITexture</a> > > & </td> + <td class="mdname1" valign="top" nowrap> <em>dest</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00955">955</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00439">getTextureGroup()</a>. +<p> +<div class="fragment"><pre>00956 { +00957 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a>) +00958 { +00959 dest.push_back(_Tex); +00960 } +00961 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlea5">getTextureGroup</a>()) +00962 { +00963 dest.push_back(<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlea5">getTextureGroup</a>()); +00964 } +00965 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea2" doxytag="NL3D::CPSTexturedParticle::getTexture" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a03487.html">ITexture</a>* NL3D::CPSTexturedParticle::getTexture </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00453">453</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +<div class="fragment"><pre>00453 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea3" doxytag="NL3D::CPSTexturedParticle::getTexture" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03487.html">ITexture</a>* NL3D::CPSTexturedParticle::getTexture </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the constant texture +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00451">451</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +<div class="fragment"><pre>00451 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea4" doxytag="NL3D::CPSTexturedParticle::getTextureGroup" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a03509.html">CTextureGrouped</a>* NL3D::CPSTexturedParticle::getTextureGroup </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the texture group used if there's a texture scheme, const version. (if null, there's no texture animation) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00442">442</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00475">_TexGroup</a>. +<p> +<div class="fragment"><pre>00442 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea5" doxytag="NL3D::CPSTexturedParticle::getTextureGroup" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03509.html">CTextureGrouped</a>* NL3D::CPSTexturedParticle::getTextureGroup </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the texture group used. it discard any previous single texture. (if null, there's no texture animation) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00439">439</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00475">_TexGroup</a>. +<p> +Referenced by <a class="el" href="a06257.html#l00955">enumTexs()</a>. +<p> +<div class="fragment"><pre>00439 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea6" doxytag="NL3D::CPSTexturedParticle::getTextureIndex" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NL3D::CPSTexturedParticle::getTextureIndex </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the animated texture index. MeaningFul only if a texture group was set +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00433">433</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00480">_TextureIndex</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00433 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">_TextureIndex</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticleb1" doxytag="NL3D::CPSTexturedParticle::getTextureIndexOwner" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual <a class="el" href="a03214.html">CPSLocated</a>* NL3D::CPSTexturedParticle::getTextureIndexOwner </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +deriver must return their owner there +<p> + +<p> +Implemented in <a class="el" href="a03187.html#NL3D_1_1CPSQuadb13">NL3D::CPSQuad</a>, and <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb13">NL3D::CPSShockWave</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00493">resizeTextureIndex()</a>, and <a class="el" href="a06257.html#l00316">setTextureIndexScheme()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea7" doxytag="NL3D::CPSTexturedParticle::getTextureIndexScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a03136.html">CPSAttribMaker</a><<a class="el" href="a04558.html#a10">sint32</a>>* NL3D::CPSTexturedParticle::getTextureIndexScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the texture scheme (null if none) const version +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00427">427</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>. +<p> +<div class="fragment"><pre>00427 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea8" doxytag="NL3D::CPSTexturedParticle::getTextureIndexScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03136.html">CPSAttribMaker</a><<a class="el" href="a04558.html#a10">sint32</a>>* NL3D::CPSTexturedParticle::getTextureIndexScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the texture scheme (null if none) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00424">424</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>. +<p> +<div class="fragment"><pre>00424 { <span class="keywordflow">return</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticleb2" doxytag="NL3D::CPSTexturedParticle::newTextureIndexElement" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::newTextureIndexElement </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03214.html">CPSLocated</a> * </td> + <td class="mdname" nowrap> <em>emitterLocated</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>emitterIndex</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00485">485</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< sint32 >::hasMemory()</a>, <a class="el" href="a06214.html#l00290">NL3D::CPSAttribMaker< sint32 >::newElement()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00451">NL3D::CPSShockWave::newElement()</a>, and <a class="el" href="a06263.html#l00097">NL3D::CPSQuad::newElement()</a>. +<p> +<div class="fragment"><pre>00486 { +00487 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> && <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->hasMemory()) <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->newElement(emitterLocated, emitterIndex); +00488 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticleb3" doxytag="NL3D::CPSTexturedParticle::resizeTextureIndex" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::resizeTextureIndex </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00493">493</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< sint32 >::hasMemory()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< sint32 >::resize()</a>, <a class="el" href="a05646.html#l00645">size</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00469">NL3D::CPSShockWave::resize()</a>, and <a class="el" href="a06262.html#l00276">NL3D::CPSQuad::resize()</a>. +<p> +<div class="fragment"><pre>00494 { +00495 <a class="code" href="a04199.html#a6">nlassert</a>(size < (1 << 16)); +00496 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> && <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->hasMemory()) <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>->resize(size, <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner</a>()->getSize() ); +00497 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea9" doxytag="NL3D::CPSTexturedParticle::serialTextureScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::serialTextureScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00372">372</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00373 { +00374 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(1); +00375 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00376 { +00377 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>) +00378 { +00379 <span class="keyword">delete</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; +00380 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> = NULL; +00381 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a> = NULL; +00382 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a> = NULL; +00383 } +00384 } +00385 +00386 <span class="keywordtype">bool</span> useAnimatedTexture; +00387 <span class="keywordflow">if</span> (!f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00388 { +00389 useAnimatedTexture = (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a> != NULL); +00390 } +00391 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(useAnimatedTexture); +00392 <span class="keywordflow">if</span> (useAnimatedTexture) +00393 { +00394 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00395 { +00396 CTextureGrouped *ptTex = NULL; +00397 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(ptTex); +00398 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a> = ptTex; +00399 } +00400 <span class="keywordflow">else</span> +00401 { +00402 CTextureGrouped *ptTex = <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a>; +00403 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(ptTex); +00404 } +00405 +00406 <span class="keywordtype">bool</span> useTextureIndexScheme = <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> != NULL; +00407 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(useTextureIndexScheme); +00408 <span class="keywordflow">if</span> (useTextureIndexScheme) +00409 { +00410 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(_TextureIndexScheme); +00411 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">_TextureIndex</a> = 0; +00412 } +00413 <span class="keywordflow">else</span> +00414 { +00415 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_TextureIndex); +00416 } +00417 } +00418 <span class="keywordflow">else</span> +00419 { +00420 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00421 { +00422 ITexture *ptTex = NULL; +00423 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(ptTex); +00424 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a> = ptTex; +00425 } +00426 <span class="keywordflow">else</span> +00427 { +00428 ITexture *ptTex = <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a>; +00429 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(ptTex); +00430 } +00431 } +00432 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea10" doxytag="NL3D::CPSTexturedParticle::setTexture" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::setTexture </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03408.html">CSmartPtr</a>< <a class="el" href="a03487.html">ITexture</a> > </td> + <td class="mdname1" valign="top" nowrap> <em>tex</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> +Set a constant texture for the particle This discard any previous scheme <dl compact><dt><b>See also:</b></dt><dd>setTextureScheme()</dd></dl> + +<p> +Definition at line <a class="el" href="a06257.html#l00349">349</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00475">_TexGroup</a>, <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, and <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture()</a>. +<p> +Referenced by <a class="el" href="a06262.html#l00204">NL3D::CPSQuad::CPSQuad()</a>, and <a class="el" href="a06279.html#l00186">NL3D::CPSShockWave::CPSShockWave()</a>. +<p> +<div class="fragment"><pre>00350 { +00351 <span class="keyword">delete</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; +00352 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> = NULL; +00353 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a> = tex; +00354 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a> = NULL; <span class="comment">// release any grouped texture if one was set before</span> +00355 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture</a>(); +00356 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea11" doxytag="NL3D::CPSTexturedParticle::setTextureGroup" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::setTextureGroup </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a03509.html">CTextureGrouped</a> > </td> + <td class="mdname1" valign="top" nowrap> <em>texGroup</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00337">337</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00475">_TexGroup</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture()</a>. +<p> +<div class="fragment"><pre>00338 { +00339 <a class="code" href="a04199.html#a6">nlassert</a>(texGroup); +00340 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a>) +00341 { +00342 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">_Tex</a> = NULL; +00343 } +00344 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">_TexGroup</a> = texGroup; +00345 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture</a>(); +00346 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea12" doxytag="NL3D::CPSTexturedParticle::setTextureIndex" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::setTextureIndex </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>index</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00329">329</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00480">_TextureIndex</a>, <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00330 { +00331 <span class="keyword">delete</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; +00332 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> = NULL; +00333 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">_TextureIndex</a> = <a class="code" href="a04223.html#a566">index</a>; +00334 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlea13" doxytag="NL3D::CPSTexturedParticle::setTextureIndexScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSTexturedParticle::setTextureIndexScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a04558.html#a10">sint32</a> > * </td> + <td class="mdname1" valign="top" nowrap> <em>animOrder</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> +Set an attribute maker that produce a sint32 It must have been allocated by new It will be deleted by this object a texture group must have been set before this, an assertion occurs otherwise The integer is used as an index in a grouped texture. It tells which frame to use +<p> +Definition at line <a class="el" href="a06257.html#l00316">316</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00475">_TexGroup</a>, <a class="el" href="a06258.html#l00477">_TextureIndexScheme</a>, <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< T >::resize()</a>, and <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture()</a>. +<p> +<div class="fragment"><pre>00317 { +00318 <a class="code" href="a04199.html#a6">nlassert</a>(animOrder); +00319 <a class="code" href="a04199.html#a6">nlassert</a>(_TexGroup); <span class="comment">// setTextureGroup must have been called before this </span> +00320 <span class="keyword">delete</span> <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a>; +00321 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">_TextureIndexScheme</a> = animOrder; +00322 <span class="keywordflow">if</span> (<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner</a>() && animOrder->hasMemory()) animOrder->resize(<a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner</a>()->getMaxSize(), <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb1">getTextureIndexOwner</a>()->getSize()); +00323 +00324 +00325 <a class="code" href="a03189.html#NL3D_1_1CPSTexturedParticleb4">updateMatAndVbForTexture</a>(); +00326 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticleb4" doxytag="NL3D::CPSTexturedParticle::updateMatAndVbForTexture" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NL3D::CPSTexturedParticle::updateMatAndVbForTexture </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Update the material so that it match the texture scheme. +<p> + +<p> +Implemented in <a class="el" href="a03187.html#NL3D_1_1CPSQuadb33">NL3D::CPSQuad</a>, and <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb29">NL3D::CPSShockWave</a>. +<p> +Referenced by <a class="el" href="a06257.html#l00349">setTexture()</a>, <a class="el" href="a06257.html#l00337">setTextureGroup()</a>, and <a class="el" href="a06257.html#l00316">setTextureIndexScheme()</a>. </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlep0" doxytag="NL3D::CPSTexturedParticle::_Tex" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03408.html">CSmartPtr</a><<a class="el" href="a03487.html">ITexture</a>> <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep0">NL3D::CPSTexturedParticle::_Tex</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00472">472</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06231.html#l00055">NL3D::CPSFaceHelper::drawFaces()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlep1" doxytag="NL3D::CPSTexturedParticle::_TexGroup" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03408.html">CSmartPtr</a><<a class="el" href="a03509.html">CTextureGrouped</a>> <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep1">NL3D::CPSTexturedParticle::_TexGroup</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00475">475</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00439">getTextureGroup()</a>, <a class="el" href="a06257.html#l00349">setTexture()</a>, <a class="el" href="a06257.html#l00337">setTextureGroup()</a>, and <a class="el" href="a06257.html#l00316">setTextureIndexScheme()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlep2" doxytag="NL3D::CPSTexturedParticle::_TextureIndex" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep2">NL3D::CPSTexturedParticle::_TextureIndex</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00480">480</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00433">getTextureIndex()</a>, and <a class="el" href="a06257.html#l00329">setTextureIndex()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTexturedParticlep3" doxytag="NL3D::CPSTexturedParticle::_TextureIndexScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03136.html">CPSAttribMaker</a><<a class="el" href="a04558.html#a10">sint32</a>>* <a class="el" href="a03189.html#NL3D_1_1CPSTexturedParticlep3">NL3D::CPSTexturedParticle::_TextureIndexScheme</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00477">477</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00489">deleteTextureIndexElement()</a>, <a class="el" href="a06258.html#l00424">getTextureIndexScheme()</a>, <a class="el" href="a06258.html#l00485">newTextureIndexElement()</a>, <a class="el" href="a06258.html#l00493">resizeTextureIndex()</a>, <a class="el" href="a06257.html#l00349">setTexture()</a>, <a class="el" href="a06257.html#l00329">setTextureIndex()</a>, <a class="el" href="a06257.html#l00316">setTextureIndexScheme()</a>, and <a class="el" href="a06257.html#l00366">~CPSTexturedParticle()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06258.html">ps_particle_basic.h</a><li><a class="el" href="a06257.html">ps_particle_basic.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:28:29 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |