This is a screen saver application which is used to simulate the collision of multiple balls in 2-D space.It is made using OpenGL and one-one thread communication mechanism.
- OpenGL
- glut
- pthread
- version of g++ (c++11) required to compile
- Clone the git repository
- cd colliding_balls_screensaver
- run make command
- The output is stored in /output directory
- cd output
- ./collide
- eg:Enter the number of balls for collision:7
- The balls moves in 2-D space.
- Each balls is generated at random position with random colour.
- Collision between the balls is made perfectly elastic.
- gamedev.net
- OpenGL documentation
- bogotobogo.net/cplusplus/*
- https://developer.apple.com/opengl/