Re: Improve SDL2 graphics API
Jonathan Dearborn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+DSiHaAOWy05x1P6+7fyStVxmA5mJL=oczHabqOxqhuGGF7Yw@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org > > _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org