hgeParticleSystem Constructors
To create and initalize a hgeParticleSystem object you may use one of these constructors:
hgeParticleSystem(
const char *filename,
hgeSprite *sprite,
float fps=0
);
hgeParticleSystem(
hgeParticleSystemInfo *psi,
float fps=0
);
hgeParticleSystem(
const hgeParticleSystem &ps
);
Parameters
- filename
- Particle system description file name. This file should just hold a disk image of
hgeParticleSystemInfo structure, describing the particle system.
- sprite
- Pointer to a valid hgeSprite object to use for the particle system.
- psi
- Pointer to a valid hgeParticleSystemInfo structure, describing the particle system.
- fps
- Particle system update rate in frames per second. Use this parameter to keep the particle system
appearance independent of the frame rate and to reduce the computations a bit. If =0 or omitted,
the particle system is updated each time the Update method is called.
Remarks
The particle system description file is loaded with
Resource_Load
function, so all it's features are applicable.
Requirements
Header: hgeparticle.h
Import library: hgehelp.lib
|