#define MAX_PARTICLES 500 |
#define MAX_PSYSTEMS 100 |
pgeParticleSystem* pgeParticleSystemCreate | ( | pgeTexture * | spritetexture, | |
pgeRect | spriterect | |||
) |
Create a pgeParticleSystem with default values.
spritetexture | - Pointer to an existing pgeTexture. | |
spriterect | - a pgeRect describing the region on the spritetexture to be drawn. |
void pgeParticleSystemDestroy | ( | pgeParticleSystem * | ps | ) |
void pgeParticleSystemFire | ( | pgeParticleSystem * | ps | ) |
Fire a pgeParticleSystem at its current position
ps | - Pointer to an existing pgeParticleSystem. |
void pgeParticleSystemFireAt | ( | pgeParticleSystem * | ps, | |
float | x, | |||
float | y | |||
) |
Fire a pgeParticleSystem at a given coordinate
ps | - Pointer to an existing pgeParticleSystem. | |
x | - x coordinate. | |
y | - y coordinate |
void pgeParticleSystemInit | ( | pgeParticleSystem * | ps, | |
pgeTexture * | spritetexture, | |||
pgeRect | spriterect | |||
) |
Populate a pgeParticleSystem with default values.
spritetexture | - Pointer to an existing pgeTexture. | |
spriterect | - a pgeRect describing the region on the spritetexture to be drawn. |
pgeParticleSystem* pgeParticleSystemLoad | ( | const char * | filename, | |
pgeTexture * | spritetexture | |||
) |
Create a pgeParticleSystem with values read from file.
filename | - the name of the file. | |
spritetexture | - Pointer to an existing pgeTexture. |
pgeParticleSystem* pgeParticleSystemLoadMemory | ( | const char * | psi, | |
int | sizePsi, | |||
pgeTexture * | spritetexture | |||
) |
Create a pgeParticleSystem with values from memory.
psi | - Pointer to a char array containing the byte representation of pgeParticleSystemInfo. | |
sizePsi | - size of the psi char array. | |
spritetexture | - Pointer to an existing pgeTexture. |
void pgeParticleSystemMoveTo | ( | pgeParticleSystem * | ps, | |
float | x, | |||
float | y, | |||
int | moveParticles | |||
) |
Move a pgeParticleSystem to a new position
ps | - Pointer to an existing pgeParticleSystem. | |
x | - x coordinate. | |
y | - y coordinate |
void pgeParticleSystemRender | ( | pgeParticleSystem * | ps | ) |
Render the current state of a pgeParticleSystem
ps | - Pointer to an existing pgeParticleSystem. |
int pgeParticleSystemSetInfoFromFile | ( | pgeParticleSystem * | ps, | |
const char * | filename, | |||
pgeTexture * | spritetexture | |||
) |
Populate a pgeParticleSystem with values read from file.
ps | - Pointer to an existing pgeParticleSystem. | |
filename | - the name of the file. | |
spritetexture | - Pointer to an existing pgeTexture. |
void pgeParticleSystemSetInfoFromMemory | ( | pgeParticleSystem * | ps, | |
const char * | psi, | |||
int | sizePsi, | |||
pgeTexture * | spritetexture | |||
) |
Populate a pgeParticleSystem with values from memory.
ps | - Pointer to an existing pgeParticleSystem. | |
psi | - Pointer to a char array containing the byte representation of pgeParticleSystemInfo. | |
sizePsi | - size of the psi char array. | |
spritetexture | - Pointer to an existing pgeTexture. |
void pgeParticleSystemStop | ( | pgeParticleSystem * | ps, | |
int | killParticles | |||
) |
Stop a pgeParticleSystem from emitting new particles
ps | - Pointer to an existing pgeParticleSystem. | |
killParticles | - 1: already fired particles get killed 0: already fired particles stay. |
void pgeParticleSystemTranspose | ( | pgeParticleSystem * | ps, | |
float | x, | |||
float | y | |||
) |
Transpose a pgeParticleSystem
ps | - Pointer to an existing pgeParticleSystem. | |
x | - x coordinate. | |
y | - y coordinate |
void pgeParticleSystemUpdate | ( | pgeParticleSystem * | ps, | |
float | deltatime | |||
) |
Update a pgeParticleSystem
ps | - Pointer to an existing pgeParticleSystem. | |
deltatime | - time from last update. |