arsa  2.7
Public Member Functions | Protected Attributes | List of all members
irr::scene::IParticleAffector Class Referenceabstract

A particle affector modifies particles. More...

#include <IParticleAffector.h>

Inheritance diagram for irr::scene::IParticleAffector:
irr::io::IAttributeExchangingObject irr::IReferenceCounted irr::scene::IParticleAttractionAffector irr::scene::IParticleFadeOutAffector irr::scene::IParticleGravityAffector irr::scene::IParticleRotationAffector

Public Member Functions

 IParticleAffector ()
 constructor More...
 
virtual void affect (u32 now, SParticle *particlearray, u32 count)=0
 Affects an array of particles. More...
 
virtual void setEnabled (bool enabled)
 Sets whether or not the affector is currently enabled. More...
 
virtual bool getEnabled () const
 Gets whether or not the affector is currently enabled. More...
 
virtual E_PARTICLE_AFFECTOR_TYPE getType () const =0
 Get emitter type. More...
 
- Public Member Functions inherited from irr::io::IAttributeExchangingObject
virtual void serializeAttributes (io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const
 Writes attributes of the object. More...
 
virtual void deserializeAttributes (io::IAttributes *in, io::SAttributeReadWriteOptions *options=0)
 Reads attributes of the object. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Protected Attributes

bool Enabled
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

A particle affector modifies particles.

Definition at line 41 of file IParticleAffector.h.

Constructor & Destructor Documentation

◆ IParticleAffector()

irr::scene::IParticleAffector::IParticleAffector ( )
inline

constructor

Definition at line 46 of file IParticleAffector.h.

Member Function Documentation

◆ affect()

virtual void irr::scene::IParticleAffector::affect ( u32  now,
SParticle particlearray,
u32  count 
)
pure virtual

Affects an array of particles.

Parameters
nowCurrent time. (Same as ITimer::getTime() would return)
particlearrayArray of particles.
countAmount of particles in array.

◆ getEnabled()

virtual bool irr::scene::IParticleAffector::getEnabled ( ) const
inlinevirtual

Gets whether or not the affector is currently enabled.

Definition at line 58 of file IParticleAffector.h.

◆ getType()

virtual E_PARTICLE_AFFECTOR_TYPE irr::scene::IParticleAffector::getType ( ) const
pure virtual

◆ setEnabled()

virtual void irr::scene::IParticleAffector::setEnabled ( bool  enabled)
inlinevirtual

Sets whether or not the affector is currently enabled.

Definition at line 55 of file IParticleAffector.h.

55 { Enabled = enabled; }
GLenum GLenum GLsizei const GLuint GLboolean enabled

Member Data Documentation

◆ Enabled

bool irr::scene::IParticleAffector::Enabled
protected

Definition at line 64 of file IParticleAffector.h.


The documentation for this class was generated from the following file: