SDL_gpu, a library for making hardware-accelerated 2D graphics easy.
- High performance (it automatically collects and submits batches
instead of separate draw commands for each sprite and redundant
state changes)
- Shader API
- Arbitrary geometry rendering (triangles)
- Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
- Full blend state control
- Built-in primitive shapes (points, lines, tris, rects, ellipses,
polygons, even arcs)
- Uses a style familiar to SDL 1.2 users
- Compatible with either SDL 1.2 or 2.0
- Loads BMP, TGA, and PNG files via stb-image
- Rotates and scales about the center of images, making reasoning
about the resulting corner coordinates more obvious (adjustable
via anchor settings)
===> The following configuration options are available for sdl2_gpu-0.12.0_3:
DOXYGEN=off: Build documentation with Doxygen
===> Use 'make config' to modify these settings
graphics/sdl2_gpu: disable DOCS option due to OOM condition in graphviz
For some reason graphviz now needs more than 20 GB to process one of
the figures in the documentation of this project.
Disable docs to avoid OOM conditions.
MFH: 2026Q1
graphics/sdl2_gpu: fix build with LLVM 16
Silence a warning about an incompatible function pointer type to fix
the build on 14-CURRENT. This warning is harmless: the function pointer
takes a const argument, but was assigned to where a pointer taking an
unqualified argument was expected.
Reported by: fallout
graphics/sdl2_gpu: Hardware-accelerated 2D graphics library
SDL_gpu, a library for making hardware-accelerated 2D graphics easy.
- High performance (it automatically collects and submits batches
instead of separate draw commands for each sprite and redundant
state changes)
- Shader API
- Arbitrary geometry rendering (triangles)
- Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
- Full blend state control
- Built-in primitive shapes (points, lines, tris, rects, ellipses,
polygons, even arcs)
- Uses a style familiar to SDL 1.2 users
- Compatible with either SDL 1.2 or 2.0
- Loads BMP, TGA, and PNG files via stb-image
- Rotates and scales about the center of images, making reasoning
about the resulting corner coordinates more obvious (adjustable
via anchor settings)
WWW: https://github.com/grimfang4/sdl-gpu