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.
  1. kryptiskt

    This isn't SDL_gpu, that is part of SDL3. This is SDL_gp, an external lib which builds on the former.

  2. HexDecOctBin

    How is this different from SDL_Render? https://wiki.libsdl.org/SDL3/CategoryRender

  3. nnevatie

    The naming of the library is pretty confusing, considering SDL_gpu is an official part of SDL3.

More from this day

2026-07-30