SDL_GPU minimal, single-header, high-performance 2D graphics painting library
SDL_GPU is a new, high-performance 2D graphics painting library designed as a port of sokol_gp for SDL3. It provides a lightweight resource management system for developers needing efficient 2D rendering capabilities.
Why it matters
This tool simplifies graphics programming for developers working within the SDL3 ecosystem, offering a balance between low-level control and ease of use.
A minimal, high-performance 2D (g)raphics (p)ainter for SDL3 .
This is a port of sokol_gp to SDL3, with one main difference:
sokol_gp relies on sokol, which manages resources internally. SDL_gpu is lower-level and does not; So SDL_gp provides a simple resource management system very similar to sokol's.
If you want to jump in the right way, check out the samples folder.
here is a simple example to draw a red rectangle:
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in