PDA

View Full Version : Using OpenGL with SDL



Aliii
04-20-2014, 05:47 AM
I want to move my project from Win to Linux. It seems like on Linux its not easy to set up the basic window, message loop, input handling, ...so I was thinking about using SDL.
Im hearing things like "SDL provides an abstraction above OpenGL, but you can also use OpenGL normally".
Now what does this mean? Can I use OpenGL with SDL exactly the same native way I was using it (apart from setting up the context and swap-buffers), or would I have to use it through SDL functions?

boulbo
04-25-2014, 09:33 AM
Hi,
using openGL with SDL (or SDL2 lastly) is more easier. in general SDL wrap all openGL functions and more.
SDL allows OOP, since your program is structured in easy to update.
However, setting up the environment on Linux is very simple.