A C++20 compiler is a base requirement.
Use Git to clone the repository and its submodules.
> git clone https://github.com/jsmolka/sprite
Install and setup vcpkg.
> git clone https://github.com/microsoft/vcpkg
> cd vcpkg
> bootstrap-vcpkg.bat
> vcpkg integrate install
Install SDL2.
> vcpkg install sdl2:x64-windows
Install SDL2.
$ [sudo] apt-get install libsdl2-dev
Install Homebrew.
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install SDL2.
$ brew install sdl2
Build the Visual Studio solution. This can also be done on the command line.
> call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
> msbuild /target:sprite /property:Configuration=Release sprite.sln
Build with CMake.
$ mkdir sprite/build
$ cd sprite/build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=native" ..
$ make -j 4