Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sand

A simple sand physics simulator built with SDL and C++.

Requirements

  • CMake 3.22+
  • A C++20 compiler (Clang on macOS, GCC on Linux, MSVC on Windows)
  • SDL3 and SDL3_image

Install Dependencies

macOS (Homebrew):

brew install sdl3 sdl3_image

Arch Linux:

sudo pacman -S base-devel cmake sdl3 sdl3_image

Debian/Ubuntu:

sudo apt install build-essential cmake libsdl3-dev libsdl3-image-dev

Windows:

  1. Download the VC dev zips for SDL3 and SDL3_image (e.g. SDL3-devel-3.x.x-VC.zip).

  2. Extract each into external/, renaming the folders to SDL3 and SDL3_image:

    external/
    ├── SDL3/{cmake,include,lib}
    └── SDL3_image/{cmake,include,lib}
    

Building

macOS / Linux:

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

Windows (Visual Studio):

cmake -B build
cmake --build build --config Release

About

A simple sand physics simulator built with SDL and C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages