A Gravity Simulation created with OpenGL.
- C++ compiler ('clang++' or 'g++')
- glfw (installed via Homebrew on macOS):
brew install glfwgit clone https://github.com/sanketsriv22/gravity.git
cd gravityIf using VSCode, just run build task (Cmd + Shift + B)
g++ -std=c++20 -I/opt/homebrew/Cellar/glfw/3.4/include \
-L/opt/homebrew/Cellar/glfw/3.4/lib \
-lglfw *.cpp -o Gravity
./GravityOr if you prefer cmake (I've added my CMakeList.txt)
brew install cmakeCreate a cmake build in the repo
cmake -S . -B buildCompile/Build (Cmd + Shift + B) And run
./build/gravity