SuperTuxKart
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 ()
 
bool getFlips () const
 
unsigned getMaxCount () const
 
void setPreGenerating (bool val)
 

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. More...
 

Static Private Attributes

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

Member Data Documentation

◆ m_max_count

unsigned STKParticle::m_max_count
private

Maximum count of particles.


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