1 Feb 2012 14:06
Re: SDL2 Graphics API, was Re: compiling with SDL_NO_COMPAT
Gabriel Jacobo <gabomdq <at> gmail.com>
2012-02-01 13:06:59 GMT
2012-02-01 13:06:59 GMT
2012/1/22 Sam Lantinga <slouken <at> libsdl.org>
-- Tell ya what... if somebody provides a fully working patch for all renderers including software, and all the filtering and scaling issues are resolved to the satisfaction of everyone on the list, I will either officially incorporate it into SDL_render or make it available as a recommended extension (crediting everyone involved, of course).
Remember, keep it simple, and it needs to be fast enough to be a viable API using the software renderer.Here are some good places to start:Cheers!
I've updated the RenderCopyEx patch at http://bugzilla.libsdl.org/show_bug.cgi?id=1308 , it now supports all renderers (including software). The software renderer functionality is implemented with lightly modified code taken from the SDL_gfx library (Zlib license acording to http://www.ferzkopp.net/joomla/content/view/19/14/ ). The total bloat coming from this incorporation is fairly small in my opinion (two functions to rotate 24 and 8 bit surfaces, one to precalculate a few values), and it is all kept in a separate file. The RenderCopyEx provides rotation around the center or arbitrary point, and flipping in both directions. The 24 bit software backend does nearest and bilinear interpolation as well.
Sam told me to submit the new patch to the list to see the repercusion it gets, after which he'll consider it for adoption...so, let us know what you think!
Thanks!
Gabriel.
_______________________________________________ SDL mailing list SDL <at> lists.libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
RSS Feed