I have spent a lot of time trying to figure out how to implement an OpenGL Shader into this game. I use SDL_Surfaces rendered with an SDL_Renderer. I an OpenGL context initialized in my SDL program, and my question is: How do I set up OpenGL fragment shaders so that they will shade what SDL renders?
This isn't an SDL question, but it's an OpenGL Context question. Consider using the GLEW library for loading modern OpenGL extensions (if you plan on using shaders higher than OpenGL 2.1's), you can also manually load them yourself.
I think you're unable to modify SDL's rendering with shaders (You may, but it'll take a bit of hack). I'm unsure about this, hopefully someone can correct me.
If I drew my scene with SDL_Surfaces all to 1 surface, then bound that surface to a GL quad, could I then use my shader on that quad and draw the sky with openGL?