SDL is a media layer as DirectX is. It covers 2d, 3d, sound, network, etc, etc and it is cross platform.Originally Posted by Crisp_N_Dry
afaik, for 2D it uses whatever tecnology is present on the system: directdraw, software, 2d opengl, etc. If i'm correct, future version could start using opengl for 2d in all environments. For 3D, instead of reinventing the wheel, they plugged-in OpenGL, so the 3D part of SDL relies completely on Opengl. Also, instead of making another "layer" to hide the implementation, they did no layer at all. You can just use OpenGL directly. This is an important point. SDL take care of preparing you the window, handling input events etc, then you can call opengl api seamlessy for rendering.
I've always found this a cool feature.
Please correct me if i'm wrong.
bye
Bookmarks