Sdl2_gpu

Jul 20, 2023

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


Checkout these related ports:
  • Zphoto - Zooming photo album generator
  • Zint - Barcode generator (library and utilities)
  • Zimg - Image-generator that uses ASCII input files to create PNGs/EDFs
  • Zgv - Graphics viewer for SVGAlib
  • Zbar - ZBar barcode reader
  • Zathura - Customizable lightweight pdf viewer
  • Zathura-ps - PostScript support for Zathura PDF viewer
  • Zathura-pdf-poppler - Poppler render PDF plugin for Zathura PDF viewer
  • Zathura-pdf-mupdf - MuPDF render PDF plugin for Zathura PDF viewer
  • Zathura-djvu - DjVu support for zathura
  • Zathura-cb - Comic book plugin for Zathura PDF viewer
  • Yukon - Real-time capture tool for OpenGL applications
  • Yed - Editor for graphs and diagrams
  • Yafaray - Montecarlo raytracing engine
  • Yacreader - Yet another comic reader