Bouncing Ball in 3D with OpenGL and C++

How to simulate bouncing ball in OpenGL C++