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
Including and linking modern (3.1+) OpenGL With SDL2.0
Walrus


Joined: 18 Jul 2014
Posts: 1
Hey guys - bit of a noob to modern OpenGL here with a couple of quick questions since I can't seem to find a reliable, definitive answer on google. What is the recommended way to include and link OpenGL 3.1+ with SDL2.0? I can't seem to find a straight answer. The prevailing wisdom seems to be to use GLEW in general, but SDL seems to provide some slightly overlapping functionality. For example, what are SDL_opengl.h and SDL_GL_LoadLibrary() for? I like to do things the idiomatic way wherever possible, but I'm having a hard time figuring out what that is...