PDA

View Full Version : OpenGl vs sdl



code_glitch
26-09-2010, 07:40 PM
I have been looking into moving towards opengl for better performance, but have no idea what to expect from opengl when compared to sdl. Also, would moving to pure opengl be worth leaving the friendliness of sdl behind?

cheers,
code_glitch

PS. I have had some debug woes before, so just how easy/hard is debugging opengl?

chronozphere
26-09-2010, 08:27 PM
SDL 1.2 Can be combined with openGL. You can do the windowing, events and audio with SDL while rendering your graphics with OpenGL. As far as I know, OpenGL is alot faster and more flexible than SDL, but also harder to use. In OpenGL you can render a lot of alpha-blended/rotated/colorized images. This would be a problem in SDL I guess.

AFAIK, SDL 1.3 will be a lot better/faster and will use hardware accelleration as opposed to SDL 1.2. But I don't know when it will be released (looking forward to it for a long time now).