Is it possible to use shaders with SDL renderer?

Hi, I was wondering if there was a way to create a shader(glsl) and attach it to a SDL game without having to render everything with opengl myself.

Pretty much like this: http://www.sfml-dev.org/tutorials/2.0/graphics-shader.php and http://alleg.sourceforge.net/a5docs/refman/shader.html

Thanks in advance!

There’s no official interface for SDL2 to use shaders. However, an
extension library I wrote, SDL_gpu, does have a set of functions for using
GLSL shaders.

Jonny DOn Thu, Mar 19, 2015 at 8:22 AM, Twk Amz wrote:

Hi, I was wondering if there was a way to create a shader(glsl) and
attach it to a SDL game without having to render everything with opengl
myself.

Pretty much like this:
http://www.sfml-dev.org/tutorials/2.0/graphics-shader.php and
http://alleg.sourceforge.net/a5docs/refman/shader.html

Thanks in advance!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org