Thread: OpenGL Shader in SDL Platform Game?

  1. #1
    Registered User
    Join Date
    May 2014
    Posts
    1

    Thumbs up OpenGL Shader in SDL Platform Game?

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

    OpenGL Shader in SDL Platform Game?-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.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    How do I set up OpenGL fragment shaders so that they will shade what SDL renders?
    O_o

    That may be too far removed from the regulars.

    Have you read the documentation and all that good stuff?

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Vertex Shader
    By synhyborex in forum C++ Programming
    Replies: 1
    Last Post: 11-04-2012, 07:03 PM
  2. C++ cross-platform game engine ??
    By beach king in forum C++ Programming
    Replies: 5
    Last Post: 07-27-2011, 07:36 PM
  3. platform game logic, problem
    By Akkernight in forum Game Programming
    Replies: 7
    Last Post: 02-23-2009, 10:49 AM
  4. Platform game gravity problem
    By Akkernight in forum Game Programming
    Replies: 33
    Last Post: 02-22-2009, 01:10 PM
  5. cross platform game programming
    By xddxogm3 in forum Game Programming
    Replies: 13
    Last Post: 08-22-2004, 09:40 AM

Tags for this Thread