fx::SmallParticleSystem Class Reference

Particle-system for small particles (based on OpenGL points or point-sprites). More...

#include <_src_fx_partsys_small.hh>

Inheritance diagram for fx::SmallParticleSystem:

fx::ParticleSystem

List of all members.

Public Member Functions

 SmallParticleSystem (const Args &arg)
 ~SmallParticleSystem ()
void AttachParticle (const SmallParticle &smallParticle)
uint GetParticleCount (void) const
void SetColorAll (const RGBA color)

Private Types

typedef ParticleSystem Parent

Private Attributes

RefPtr< osg::StateSet > mStateSet
 specifies texture (and any other state)
RefPtr< osg::Geode > mGeode
RefPtr< osg::Geometry > mGeom
RefPtr< osg::Vec3Array > mVertexs
RefPtr< osg::DrawArrays > mDrawArray

Friends

class FX
class shptr< SmallParticleSystem >

Classes

struct  Args
 Args for SmallParticleSystem ctor. More...


Detailed Description

Particle-system for small particles (based on OpenGL points or point-sprites).

This particle system is very fast but it has deficiencies. Left unimplemented was a mechanism to update particles.

Texture is specified by stateset. Example: new SmallParticleSystem( SmallParticleSystem::Args( Texture::NewTextureAsStateSet( "smoke.png" ) ) );


Member Typedef Documentation


Constructor & Destructor Documentation

fx::SmallParticleSystem::SmallParticleSystem ( const Args args  ) 

ctor/dtor.

fx::SmallParticleSystem::~SmallParticleSystem (  ) 


Member Function Documentation

void fx::SmallParticleSystem::AttachParticle ( const SmallParticle smallParticle  ) 

Append SmallParticle.

uint fx::SmallParticleSystem::GetParticleCount ( void   )  const

Returns:
Amount of particles.

void fx::SmallParticleSystem::SetColorAll ( const RGBA  color  ) 

Set colors of all particles.


Friends And Related Function Documentation

friend class FX [friend]

Reimplemented from fx::ParticleSystem.

friend class shptr< SmallParticleSystem > [friend]


Member Data Documentation

RefPtr<osg::StateSet> fx::SmallParticleSystem::mStateSet [private]

specifies texture (and any other state)

RefPtr<osg::Geode> fx::SmallParticleSystem::mGeode [private]

RefPtr<osg::Geometry> fx::SmallParticleSystem::mGeom [private]

RefPtr<osg::Vec3Array> fx::SmallParticleSystem::mVertexs [private]

RefPtr<osg::DrawArrays> fx::SmallParticleSystem::mDrawArray [private]


The documentation for this class was generated from the following files:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010