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

Tiny drawing tool drops, but the comments are yelling about the name

TLDR: SDL_gp is a new tiny add-on that helps people draw 2D graphics with SDL3 more easily. Commenters mostly fixated on the confusingly similar name and immediately debated whether it’s meaningfully different from SDL’s existing built-in drawing tools.

A new little graphics helper called SDL_gp just rolled in promising fast, simple 2D drawing for SDL3, the game-making toolkit many developers use for windows, graphics, and input. On paper, it’s a neat release: a single-header library, sample demos, simple rectangle drawing, image support, shader support, and a lightweight system to manage graphics resources without too much hassle. In plain English, it’s trying to make drawing shapes and sprites feel easy while still being speedy.

But let’s be honest: the real action was in the comments. The biggest mini-scandal? The name. Multiple readers immediately jumped in to say, basically, “Wait, this is not SDL_gpu, the official SDL3 graphics part.” That sparked the thread’s main eye-roll moment, with people calling the branding confusing and practically begging future readers not to mix the two up. One commenter came in like the human fact-check badge, spelling out that this is an outside add-on built on top of the official graphics system, not the official thing itself.

Then came the classic internet side quest: “How is this different from SDL_Render?” That question hung over the thread like a sitcom laugh track, because if your shiny new tool needs instant clarification, the crowd will absolutely notice. Mixed in with the confusion were a few wholesome pats on the back like “Cool work!” and “Nice work,” plus one unexpectedly spicy rant about how open-source sponsorship is mostly sad, awkward pocket change. So yes, the library may be minimal — but the comment drama was fully featured

Key Points

  • SDL_gp is presented as a minimal, single-header, high-performance 2D graphics painting library for SDL3.
  • The project is described as a port of sokol_gp to SDL3, with added resource management because SDL_gpu is lower-level and does not manage resources internally.
  • The article includes sample categories such as primitives, rectangles, sprites, and blend modes, and directs users to a samples folder for getting started.
  • A provided code example shows the frame flow for clearing the screen, drawing a red filled rectangle, acquiring a swapchain texture, flushing draw commands, and submitting a GPU command buffer.
  • The quick reference documents error, image, shader, pipeline, and painter APIs, including functions for setup, shutdown, resource creation and destruction, and access to underlying GPU objects.

Hottest takes

“This isn't SDL_gpu” — kryptiskt
“The naming of the library is pretty confusing” — nnevatie
“How is this different from SDL_Render?” — HexDecOctBin
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.