SDLGameEngine

SGEPARTICLES Struct Reference

a structure holding necessary information about a particle emitter and providing a lot of variables for configuration More...

#include <sgeparticles.h>

Data Fields

SDL_Surface * drawSurface
 the SDL_Surface to draw the particles on, defaults to screen
Uint32 runtime
 the runtime of the particles emitter in frames
SGEARRAYparticles
 a SGEARRAY holding the particles
Uint32 infinite
 YES/NO if the particles should live forever, defaults to NO.
Uint32 x
 the emitters x coordinate
Uint32 y
 the emitters y coordinate
Uint32 timeToLive
 the time to live for particles in frames
Uint32 timeToLiveDistribution
 a range the timeToLive will vary, it is +/-, so timeToLive=100 and timeToLiveDistribution=50 will give values of 100-25 to 100+25, so 75 to 125
float emission
 the number of particles created per frame as float, so values of less then 1 are possible
float emissionDistribution
 the +/- range of the emission
float speed
 the speed of the particles
float speedDistribution
 the +/- range of the particle speed
float angle
 the angle at which particles are fired at in degrees
float angleDistribution
 the +/- range of the angle in degrees
float gravity
 the gravity pixels are influenced by along the y axis

Detailed Description

a structure holding necessary information about a particle emitter and providing a lot of variables for configuration

Definition at line 87 of file sgeparticles.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines