Flag simulation with Spheres collision You need SDL 1.2 and recent OpenGL version Compilation In the folder root create a build/ folder mkdir build && cd build Run CMake cmake .. Make and execute cmake .. && ./main