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

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

> Hacker News story 49110655 · language: en · submitted 2026-07-30
> Web version: https://zeli.app/story/49110655
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 65 · by [n67094](<https://news.ycombinator.com/user?id=n67094>) · 💬 21
[original](<https://github.com/n67094/sdl_gp>) · [HN discussion](<https://news.ycombinator.com/item?id=49110655>)

## Summary

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.

## Key quote

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

## HN discussion (21 comments)

### [kryptiskt](<https://news.ycombinator.com/item?id=49111008>)

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

### [HexDecOctBin](<https://news.ycombinator.com/item?id=49111356>)

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

### [nnevatie](<https://news.ycombinator.com/item?id=49111513>)

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

---

## Cite

- Page: https://zeli.app/story/49110655
- Date: 2026-07-30
- Source: github.com (https://github.com/n67094/sdl_gp)
- Hacker News: https://news.ycombinator.com/item?id=49110655

## Other languages

- zh: https://zeli.app/zh/story/49110655 · markdown: https://zeli.app/zh/story/49110655.md
- ja: https://zeli.app/ja/story/49110655 · markdown: https://zeli.app/ja/story/49110655.md
- ko: https://zeli.app/ko/story/49110655 · markdown: https://zeli.app/ko/story/49110655.md
