The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Is it possible to use shaders with SDL renderer?
Twk Amz


Joined: 09 Feb 2015
Posts: 2
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!
Is it possible to use shaders with SDL renderer?
Jonny D


Joined: 12 Sep 2009
Posts: 932
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 D






On Thu, Mar 19, 2015 at 8:22 AM, Twk Amz wrote:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org