SuperTuxKart
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
STKParticle Class Reference
Inheritance diagram for STKParticle:
Inheritance graph
[legend]

Classes

struct  HeightMapData
 
struct  ParticleData
 

Public Member Functions

 STKParticle (bool randomize_initial_y=false, ISceneNode *parent=0, s32 id=-1, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f))
 
void setColorFrom (float r, float g, float b)
 
void setColorTo (float r, float g, float b)
 
virtual void setEmitter (scene::IParticleEmitter *emitter)
 
virtual void OnRegisterSceneNode ()
 
void setIncreaseFactor (float val)
 
void setHeightmap (std::vector< std::vector< float > > &array, float track_x, float track_z, float track_x_len, float track_z_len)
 
void generate (std::vector< CPUParticle > *out)
 
void setFlips ()
 
virtual bool getFlips () const
 
unsigned getMaxCount () const
 
void setPreGenerating (bool val)
 
virtual bool isSkyParticle () const
 

Static Public Member Functions

static void updateFlips (unsigned maximum_particle_count)
 
static void destroyFlipsBuffer ()
 
static GLuint getFlipsBuffer ()
 

Private Member Functions

void generateParticlesFromPointEmitter (scene::IParticlePointEmitter *)
 
void generateParticlesFromBoxEmitter (scene::IParticleBoxEmitter *)
 
void generateParticlesFromSphereEmitter (scene::IParticleSphereEmitter *)
 
void stimulateHeightMap (float, unsigned int, std::vector< CPUParticle > *)
 
void stimulateNormal (float, unsigned int, std::vector< CPUParticle > *)
 

Private Attributes

HeightMapDatam_hm
 
std::vector< ParticleDatam_particles_generating
 
std::vector< ParticleDatam_initial_particles
 
core::vector3df m_color_from
 
core::vector3df m_color_to
 
float m_size_increase_factor
 
bool m_first_execution
 
bool m_randomize_initial_y
 
bool m_flips
 
bool m_pre_generating
 
core::matrix4 m_previous_frame_matrix
 Previous frame particles emitter source matrix.
 
unsigned m_max_count
 Maximum count of particles.
 

Static Private Attributes

static std::vector< float > m_flips_data
 
static GLuint m_flips_buffer = 0
 

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