[SDL] Improve SDL2 graphics API

Jonathan Dearborn grimfang4 at gmail.com
Sat Sep 10 10:17:22 PDT 2016


This is sorta the aim of the SDL_gpu project (
https://github.com/grimfang4/sdl-gpu).

GPU_TriangleBatch() gives you arbitrary geometry rendering in one call.
SDL_gpu automatically collects batches when you use GPU_Blit().

Subpixel positioning, such as SDL_gpu does already, would require several
additional SDL render functions which would accept floating point arguments
(or else break the API).

Jonny D



On Thu, Sep 8, 2016 at 5:34 AM, sgrsgsrg <thephanoo at gmail.com> wrote:

> Sub-pixel rendering / positionning is really needed too. Keep the nearest
> pixel rounding method by default for backward compatibility, then and add a
> flag like "SDL_SUBPIXEL" to use when the renderer is initialized
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160910/8bf8a86a/attachment.htm>


More information about the SDL mailing list