Mobile

GLFW

  • An unfortunate disadvantage is GLFW doesn’t work in Android or iOS; it is a desktop-only solution.

  • SDL does offer mobile support; however, mobile windowing support is best done by interfacing with the Operating system such as using the JNI  in Android.

  • While mobile is beyond the scope of this initial tutorial, plans exist to eventually cover it in detail, and Google has excellent documentation .

Pre-Rotation

  • .

  • .

    • You can only query surfaceCapabilities.currentTransform , you cannot set it.

    • If they don't match, the presentation engine will have to do the pre-rotation for you, which has a performance cost.

  • Implementing a full pre-rotate system is reportedly difficult, so many engines avoid it.

  • .

  • .

    • This is a simpler option to implement.

    • "Many engines already do a blit to the final image to the swapchain image, so this is the perfect place to do the pre-rotation".

      • "Basically free and you get performance benefits".