Utils/SWParticles.h File Reference

#include <SWCommonHeaders.h>
#include <SpriteWorld.h>
#include <SpriteFrame.h>
#include <Sprite.h>

Classes

struct  Particle
 (single pixel) particle struct More...

Typedefs

typedef ParticleParticlePtr
 (single pixel) particle struct

Functions

SWError InitParticles (long NumParticles, float Gravity)
void ExitParticles (void)
void ClearParticles (void)
void SetHorizGravity (float gravity)
void NewParticle (SpriteWorldPtr spriteWorldP, int red, int green, int blue, short horizLoc, short vertLoc, float horizSpeed, float vertSpeed, short lifeRemaining)
void EraseParticlesOffscreen (SpriteWorldPtr spriteWorldP)
void EraseParticlesScrollingOffscreen (SpriteWorldPtr spriteWorldP)
void DrawParticlesOffscreen (SpriteWorldPtr spriteWorldP)
void DrawParticlesScrollingOffscreen (SpriteWorldPtr spriteWorldP)
void DrawHardwareParticles (SpriteWorldPtr spriteWorldP)
void UpdateParticlesInWindow (SpriteWorldPtr spriteWorldP)
void UpdateParticlesInScrollingWindow (SpriteWorldPtr spriteWorldP)
void MoveParticles (void)
void putpixel (SDL_Surface *surface, int x, int y, Uint32 pixel)
Uint32 getpixel (SDL_Surface *surface, int x, int y)

Variables

ParticlePtr gParticleArray
long gLowestUnusedElement
long gLastElementInUse
long gNumberOfParticlesActive
float gGravity
unsigned long gNumArrayElements
SWBoolean gParticlesInitialized

Detailed Description


Typedef Documentation

typedef struct Particle * ParticlePtr
 

(single pixel) particle struct


Function Documentation

void ClearParticles void   ) 
 

void DrawHardwareParticles SpriteWorldPtr  spriteWorldP  ) 
 

void DrawParticlesOffscreen SpriteWorldPtr  spriteWorldP  ) 
 

void DrawParticlesScrollingOffscreen SpriteWorldPtr  spriteWorldP  ) 
 

void EraseParticlesOffscreen SpriteWorldPtr  spriteWorldP  ) 
 

void EraseParticlesScrollingOffscreen SpriteWorldPtr  spriteWorldP  ) 
 

void ExitParticles void   ) 
 

Uint32 getpixel SDL_Surface *  surface,
int  x,
int  y
 

SWError InitParticles long  NumParticles,
float  Gravity
 

void MoveParticles void   ) 
 

void NewParticle SpriteWorldPtr  spriteWorldP,
int  red,
int  green,
int  blue,
short  horizLoc,
short  vertLoc,
float  horizSpeed,
float  vertSpeed,
short  lifeRemaining
 

void putpixel SDL_Surface *  surface,
int  x,
int  y,
Uint32  pixel
 

void SetHorizGravity float  gravity  ) 
 

void UpdateParticlesInScrollingWindow SpriteWorldPtr  spriteWorldP  ) 
 

void UpdateParticlesInWindow SpriteWorldPtr  spriteWorldP  ) 
 


Variable Documentation

float gGravity
 

long gLastElementInUse
 

long gLowestUnusedElement
 

unsigned long gNumArrayElements
 

long gNumberOfParticlesActive
 

ParticlePtr gParticleArray
 

SWBoolean gParticlesInitialized
 


Generated on Sun Jun 18 14:11:04 2006 for SpriteWorld X by  doxygen 1.4.6