News for hackers. Stuff that matters.
Re:Sdl-gpu: A library for high-performance, modern 2D graphi... by grimfang4 on Friday August 19, 2016 @10:21PM (#12324803)
Hey, SDL_gpu dev here! :) There's actually a lot that is special about SDL_gpu, but most pertinent are:

* Higher 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

* Full blend state control (not just "ADD", "SUB", "MULT")

* Built-in primitive shapes (points, lines, tris, rects, ellipses, polygons, even arcs)

* Uses a style familiar to SDL 1.2 users that I wish SDL_Renderer had gone with...

* Came out before SDL 2.0 and is compatible with SDL 1.2 and 2.0

* Loads BMP, TGA, and PNG files

* Rotates and scales about the center of images, making reasoning about the resulting corner coordinates more obvious (adjustable via anchor settings)

Hope that helps!

Re:Sdl-gpu: A library for high-performance, modern 2D graphi... by babuskov on Monday August 22, 2016 @08:27PM (#12340429)
> Rotates and scales about the center of images

You can specify the rotation point in SDL2. Calculating corner coordinates is simple trigonometry.

But the rest seems useful.

Thanks.