The SDL_gfx library offers several components: Graphic Primitives, Rotozoomer, Framerate control, and MMX image filters. The Primitives component provides basic drawing routines: pixels, hlines, vlines, lines, aa-lines, thick-lines, rectangles, rounded-rectangles, boxes, rounded boxes, circles, aa-circles, ellipses, trigons, polygons, textured-polygons, Bezier curves, and an 8x8 pixmap font for drawing onto any SDL Surface. Full alpha blending, hardware surface locking, and all surface depths are supported. The Rotozoomer can use interpolation for high quality output.
| Tags | multimedia Graphics Software Development Libraries |
|---|---|
| Licenses | zlib |
| Operating Systems | OS Independent |
| Implementation | C |
Recent releases


Release Notes: This release fixes a thick line swap bug, SDL_GetTicks, and the pixel blend routine. It has an improved interface to SDL_framerateDelay. The VS2010 solution file has been updated to use SDL-1.2 sources.


Release Notes: This release adds various bugfixes and updates. It switches the library and test sources to zlib.


Release Notes: Rounded rectangle, rounded box, and thick line primitives were added. The test programs, DLL_EXPORT handling, and Win64 support were updated and improved. Line width calculation was fixed for normal and textured polygons. Version setup in configure.in and pie calculation (line-case detection, end-angle clipping) were also fixed.


Release Notes: This release added VC9 project files, moved the static transfer lookup array from .h to .c added the VC++ compiler for MASM assembly support, added Haiku build support, added a helper function for alpha channel multiplication in 32-bit surfaces, added font rotation support, fixed the rotate90 function for the 0 degree case, added support for compiling on SDL 1.3, updated the test programs, updated comments for all methods, and added complete doxygen generated documentation.


Release Notes: A fix was made for 1-pixel postponement with 8-bit scaling. Updates were made to headers and configure to allow for cross-compiling to DLL. A Visual CE project was added. A Symbian and Windows 64-bit fix was added for the lrint function.