Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


OpenGL Shader in SDL Platform Game?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 GoldStud   Members   -  Reputation: 107

Like
0Likes
Like

Posted 10 May 2014 - 08:18 PM

Hello! I am new to SDL and just got a simple platform game with wall jumping and music to run:

Screen.jpg

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 have an OpenGL context successfully 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?

My plan is to use a "God Ray" fragment shader, like the one used here.



Sponsor:

#2 lask1   Members   -  Reputation: 1030

Like
0Likes
Like

Posted 16 May 2014 - 06:24 PM

Looks like this was answered on Stack Overflow.

 

http://stackoverflow.com/questions/23588175/opengl-shader-in-sdl-platform-game






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS