An example of how to calculate and render particles on the GPU with OpenGL and Transform Feedback