|
Cairo-Dock
3.4.0
|
Data Structures | |
| struct | _CairoParticle |
| A particle of a particle system. More... | |
| struct | _CairoParticleSystem |
| A particle system. More... | |
Macros | |
| #define | cairo_dock_render_particles(pParticleSystem) |
Typedefs | |
| typedef struct _CairoParticle | CairoParticle |
| A particle of a particle system. | |
| typedef struct _CairoParticleSystem | CairoParticleSystem |
| A particle system. | |
| typedef void( | CairoDockRewindParticleFunc )(CairoParticle *pParticle, double dt) |
| Function that re-initializes a particle when its life is over. | |
Functions | |
| void | cairo_dock_render_particles_full (CairoParticleSystem *pParticleSystem, int iDepth) |
| CairoParticleSystem * | cairo_dock_create_particle_system (int iNbParticles, GLuint iTexture, double fWidth, double fHeight) |
| void | cairo_dock_free_particle_system (CairoParticleSystem *pParticleSystem) |
| gboolean | cairo_dock_update_default_particle_system (CairoParticleSystem *pParticleSystem, CairoDockRewindParticleFunc pRewindParticle) |
A Particle System is a set of particles that evolve according to a given model. Each particle will see its parameters change with time : direction, speed, oscillation, color, size, etc. Particle Systems fully take advantage of OpenGL and are able to render many thousands of particles at a high frequency refresh.
| #define cairo_dock_render_particles | ( | pParticleSystem | ) |
Render all the particles of a particle system.
| pParticleSystem | the particle system. |
| void cairo_dock_render_particles_full | ( | CairoParticleSystem * | pParticleSystem, |
| int | iDepth | ||
| ) |
Render all the particles of a particle system with a given depth.
| pParticleSystem | the particle system. |
| iDepth | depth of the particles that will be rendered. If set to -1, only particles with a negative z will be rendered, if set to 1, only particles with a positive z will be rendered, if set to 0, all the particles will be rendered. |
| CairoParticleSystem* cairo_dock_create_particle_system | ( | int | iNbParticles, |
| GLuint | iTexture, | ||
| double | fWidth, | ||
| double | fHeight | ||
| ) |
Create a particle system.
| iNbParticles | number of particles of the system. |
| iTexture | texture to map on each particle. |
| fWidth | width of the system. |
| fHeight | height of the system. |
| void cairo_dock_free_particle_system | ( | CairoParticleSystem * | pParticleSystem | ) |
Destroy a particle system, freeing all the ressources it was using.
| pParticleSystem | the particle system. |
| gboolean cairo_dock_update_default_particle_system | ( | CairoParticleSystem * | pParticleSystem, |
| CairoDockRewindParticleFunc | pRewindParticle | ||
| ) |
Update a particle system to the next step with a generic particle behavior model. You can write your own model depending on your needs.
| pParticleSystem | the particle system. |
| pRewindParticle | function called on a particle when its life is over. |