A simple sand physics simulator built with SDL and C++.
- CMake 3.22+
- A C++20 compiler (Clang on macOS, GCC on Linux, MSVC on Windows)
- SDL3 and SDL3_image
macOS (Homebrew):
brew install sdl3 sdl3_imageArch Linux:
sudo pacman -S base-devel cmake sdl3 sdl3_imageDebian/Ubuntu:
sudo apt install build-essential cmake libsdl3-dev libsdl3-image-devWindows:
-
Download the VC dev zips for SDL3 and SDL3_image (e.g.
SDL3-devel-3.x.x-VC.zip). -
Extract each into
external/, renaming the folders toSDL3andSDL3_image:external/ ├── SDL3/{cmake,include,lib} └── SDL3_image/{cmake,include,lib}
macOS / Linux:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -jWindows (Visual Studio):
cmake -B build
cmake --build build --config Release