SDL_gp: A Minimal Single-Header 2D Graphics Painter for SDL3

SDL_GPU minimal, single-header, high-performance 2D graphics painting library

SDL_gp: A Minimal Single-Header 2D Graphics Painter for SDL3

I created SDL_gp, a high-performance, single-header 2D graphics library for SDL3. This project ports the functionality of sokol_gp while offering a lower-level approach with a simple resource management system. It supports drawing primitives, sprites, and custom shaders, providing developers with an efficient tool for rendering graphics without the overhead of complex dependencies.

sokol_gp relies on sokol, which manages resources internally, whereas SDL_gpu is lower-level and does not.

More from this day

2026-07-30