#include <particles.h>
Collaboration diagram for PARTICLE:

Public Member Functions | |
| PARTICLE () | |
| ~PARTICLE () | |
| void | Load () |
| void | Update (float timefactor, float fps) |
| void | Draw () |
| void | SetParams (float transmin, float transmax, float longmin, float longmax, float speedmin, float speedmax, VERTEX direction, float sizemin, float sizemax) |
| void | AddParticle (VERTEX pos) |
| void | ProbAddParticle (VERTEX pos, float probability) |
| float | ParticleHeight () |
| void | ClipParticles (VERTEX *rect) |
| void | Clear () |
| void | SetWind (VERTEX newwind) |
Private Member Functions | |
| bool | inrange (float x1, float x2, float val) |
| bool | inrect (VERTEX *rect, VERTEX p) |
| bool | overlap (VERTEX *rect1, VERTEX *rect2) |
| float | randf (float min, float max) |
| void | DrawParticle (struct SINGLE_PARTICLE &p) |
| void | init_draw () |
Private Attributes | |
| int | slotguess |
| GLuint | drawlist |
| TEXTURE_HANDLE | texture [PARTICLE_TEXTURES] |
| VERTEX | wind |
| double | curtime |
| float | pheight |
| SINGLE_PARTICLE | particle [MAX_PARTICLES] |
| SINGLE_PARTICLE | params [2] |
| int | curtex |
| bool | loaded |
Definition at line 67 of file particles.h.
|
|
Definition at line 27 of file particles.cpp. References curtex, curtime, SINGLE_PARTICLE::direction, drawlist, loaded, SINGLE_PARTICLE::longevity, params, SINGLE_PARTICLE::size, slotguess, SINGLE_PARTICLE::speed, SINGLE_PARTICLE::transparency, and VERTEX::y. |
|
|
Definition at line 59 of file particles.cpp. References drawlist, loaded, PARTICLE_TEXTURES, texture, TEXTURE_HANDLE::Unload(), and verbose_output. |
|
|
Definition at line 194 of file particles.cpp. References curtex, curtime, SINGLE_PARTICLE::direction, SINGLE_PARTICLE::longevity, MAX_PARTICLES, params, particle, randf(), SINGLE_PARTICLE::rotation, SINGLE_PARTICLE::size, slotguess, SINGLE_PARTICLE::speed, SINGLE_PARTICLE::start_position, SINGLE_PARTICLE::texture, SINGLE_PARTICLE::timestamp, SINGLE_PARTICLE::transparency, wind, VERTEX::x, VERTEX::y, and VERTEX::z. Referenced by ProbAddParticle(). |
|
|
Definition at line 442 of file particles.cpp. References particle. Referenced by LoadWorld(). |
|
|
Definition at line 333 of file particles.cpp. |
|
|
Definition at line 259 of file particles.cpp. References curtime, DrawParticle(), MAX_PARTICLES, and particle. Referenced by VAMOSWORLD::DrawTopLevel(). |
|
|
Definition at line 281 of file particles.cpp. References TEXTURE_HANDLE::Activate(), curtime, SINGLE_PARTICLE::direction, drawlist, SINGLE_PARTICLE::longevity, NUM_ROTATIONS, VERTEX::ScaleR(), SINGLE_PARTICLE::size, SINGLE_PARTICLE::speed, SINGLE_PARTICLE::start_position, SINGLE_PARTICLE::texture, texture, SINGLE_PARTICLE::timestamp, SINGLE_PARTICLE::transparency, VERTEX::x, VERTEX::y, and VERTEX::z. Referenced by Draw(). |
|
|
Definition at line 151 of file particles.cpp. References pheight. |
|
||||||||||||||||
|
Definition at line 426 of file particles.cpp. |
|
||||||||||||
|
Definition at line 392 of file particles.cpp. References VERTEX::x, and VERTEX::z. Referenced by overlap(). |
|
|
Definition at line 80 of file particles.cpp. References drawlist, loaded, PARTICLE_TEXTURES, texture, and TEXTURE_HANDLE::Unload(). Referenced by ChangeDisplay(), and InitGameData(). |
|
||||||||||||
|
Definition at line 436 of file particles.cpp. References inrect(). |
|
|
Definition at line 328 of file particles.cpp. References pheight. |
|
||||||||||||
|
Definition at line 319 of file particles.cpp. References AddParticle(), and randf(). |
|
||||||||||||
|
Definition at line 238 of file particles.cpp. Referenced by AddParticle(), and ProbAddParticle(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 177 of file particles.cpp. References SINGLE_PARTICLE::direction, SINGLE_PARTICLE::longevity, params, SINGLE_PARTICLE::size, SINGLE_PARTICLE::speed, and SINGLE_PARTICLE::transparency. |
|
|
Definition at line 85 of file particles.h. References wind. Referenced by InitGameData(). |
|
||||||||||||
|
Definition at line 254 of file particles.cpp. References curtime. Referenced by Update(). |
|
|
Definition at line 105 of file particles.h. Referenced by AddParticle(), and PARTICLE(). |
|
|
Definition at line 94 of file particles.h. Referenced by AddParticle(), Draw(), DrawParticle(), PARTICLE(), and Update(). |
|
|
Definition at line 89 of file particles.h. Referenced by DrawParticle(), Load(), PARTICLE(), and ~PARTICLE(). |
|
|
Definition at line 111 of file particles.h. Referenced by Load(), PARTICLE(), and ~PARTICLE(). |
|
|
Definition at line 103 of file particles.h. Referenced by AddParticle(), PARTICLE(), and SetParams(). |
|
|
Definition at line 102 of file particles.h. Referenced by AddParticle(), Clear(), and Draw(). |
|
|
Definition at line 96 of file particles.h. Referenced by init_draw(), and ParticleHeight(). |
|
|
Definition at line 88 of file particles.h. Referenced by AddParticle(), and PARTICLE(). |
|
|
Definition at line 90 of file particles.h. Referenced by DrawParticle(), Load(), and ~PARTICLE(). |
|
|
Definition at line 92 of file particles.h. Referenced by AddParticle(), and SetWind(). |
1.4.6