Lines Matching defs:particles
152 // Maximum number of particles
196 // Global vectors holding all particles. We use two vectors for double
198 static PARTICLE particles[MAX_PARTICLES];
229 printf("Usage: particles [-bfhs]\n");
352 // Update particles (iterated several times per frame if dt is too large)
359 update_particle(&particles[i], dt2);
371 if (!particles[i].active)
373 init_particle(&particles[i], t + min_age);
374 update_particle(&particles[i], min_age);
386 // Draw all active particles. We use OpenGL 1.1 vertex
390 #define BATCH_PARTICLES 70 // Number of particles to draw in each batch
413 // Note that 1) and 2) is the same for all particles (done only once).
434 // Don't update z-buffer, since all particles are transparent!
475 // Loop through all particles and build vertex arrays.
478 pptr = particles;
537 // Increase count of drawable particles
541 // If we have filled up one batch of particles, draw it as a set
561 // Draw final batch of particles (if any)
924 // Update particles