Particle system example for C++