Lines Matching full:particles
95 mtx_t particles_lock; // Particles data sharing mutex
150 // Maximum number of particles
194 // Global vectors holding all particles. We use two vectors for double
196 static PARTICLE particles[MAX_PARTICLES]; variable
227 printf("Usage: particles [-bfhs]\n"); in usage()
320 // Particles should bounce on the fountain (with friction) in update_particle()
330 // Particles should bounce on the floor (with friction) in update_particle()
350 // Update particles (iterated several times per frame if dt is too large) in particle_engine()
357 update_particle(&particles[i], dt2); in particle_engine()
369 if (!particles[i].active) in particle_engine()
371 init_particle(&particles[i], t + min_age); in particle_engine()
372 update_particle(&particles[i], min_age); in particle_engine()
384 // Draw all active particles. We use OpenGL 1.1 vertex
388 #define BATCH_PARTICLES 70 // Number of particles to draw in each batch
411 // Note that 1) and 2) is the same for all particles (done only once). in draw_particles()
432 // Don't update z-buffer, since all particles are transparent! in draw_particles()
471 // Loop through all particles and build vertex arrays. in draw_particles()
474 pptr = particles; in draw_particles()
533 // Increase count of drawable particles in draw_particles()
537 // If we have filled up one batch of particles, draw it as a set in draw_particles()
557 // Draw final batch of particles (if any) in draw_particles()
849 // Particles must be drawn after all solid objects have been drawn in draw_scene()
918 // Update particles in physics_thread_main()