[SDL] Improve SDL2 graphics API

Jonathan Dearborn grimfang4 at gmail.com
Wed Sep 21 08:29:55 PDT 2016

That depends on what you mean by "immediate mode", which has a loose
definition to many.  The programming style wouldn't be any different as far
as SDL_gpu is concerned.  You just assume no objects are left from the last
frame, make function calls, and expect them to be done in order.

Technically, SDL_gpu is more retained mode, whereby it buffers your blits
until they need to be sent to the GPU and it uses VBOs so the upload does
not block.  These optimizations help tremendously in real use cases.

Jonny D

On Wed, Sep 21, 2016 at 11:13 AM, sgrsgsrg <thephanoo at gmail.com> wrote:

> SDL_gpu is still an immediate mode OpenGL renderer right ?
> _______________________________________________
> 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/20160921/58090d31/attachment.htm>

More information about the SDL mailing list