Search code examples
c++openglmultiplatformsdl-2

SDL 3D platform consistency


The simple direct media layer (SDL) provides a layer that allows the same code to compile into a consistent multiplatform application. However for 3D graphics SDL uses OpenGL. OpenGL has a known history for being inconsistent across platforms, even on just the PC platforms (Windows, Linux and Mac) so my question is does this still apply when using OpenGL with SDL? Or has SDL provided a solution for this inconsistency?


Solution

  • Does this still apply when using OpenGL with SDL?

    Yes.

    Or has SDL provided a solution for this inconsistency?

    No. Closest they have is the 2D accelerated rendering API which wraps OpenGL/OpenGL ES/DirectX as necessary.