2025-02-07

SDL3

Table of Contents

1. Setup/Installation

1.1. From Source

1.1.1. SDL3

Get SDL3 https://github.com/libsdl-org/SDL/releases

wget "https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-3.2.4.tar.gz"
tar -xf SDL3-3.2.4.tar.gz
cd SDL3-3.2.4
mkdir build
cd build
cmake ../
make
sudo make install

1.1.2. SDL3 Image

Get SDL3_Image from https://github.com/libsdl-org/SDL_image/releases

wget "https://github.com/libsdl-org/SDL_image/releases/download/release-3.2.0/SDL3_image-3.2.0.tar.gz"
tar -xf SDL3_image-3.2.0.tar.gz
cd SDL3_image-3.2.0
mkdir build
cd build
cmake ../
make
sudo make install

1.1.3. SDL3 TTF

Get SLD3_ttf from https://github.com/libsdl-org/SDL_ttf/releases

wget "https://github.com/libsdl-org/SDL_ttf/releases/download/preview-3.1.0/SDL3_ttf-3.1.0.tar.gz"
tar -xf SDL3_ttf-3.1.0.tar.gz
cd SDL3_ttf-3.1.0
mkdir build
cd build
cmake ../
make
sudo make install

2. Issues

2.1. Rerender while resizing

While resizing or using the menu in MacOS, rendering is blocked

https://www.reddit.com/r/sdl/comments/1ay6vc0/i_found_a_simple_fix_for_thread_blocking_during/


You can send your feedback, queries here