sdl2_frt/src/video/android
Sam Lantinga 54748a39be Fixed bug 4890 - Add hint for SDL that the graphics context is externally managed
Aaron Barany

Add SDL_HINT_VIDEO_EXTERNAL_CONTEXT hint to notify SDL that the graphics context is external. This disables the automatic context save/restore behavior on Android and avoids using OpenGL by default when SDL_WINDOW_VUKLAN isn't set.

When the application wishes to manage the OpenGL contexts on Android, this avoids cases where SDL unbinds the context and creates new contexts, which can interfere with the application's operation.

When using Vulkan and Metal renderer implementations, this avoids SDL forcing OpenGL to be enabled on certain platforms. While using the SDL_WINDOW_VULKAN flag can be used to achieve the same thing, it also causes Vulkan to be loaded. If the application uses Vulkan directly, this is not necessary, and fails window creation when using Metal due to Vulkan not being present. (assuming MoltenVK isn't installed)
2019-12-08 11:33:06 -08:00
..
SDL_androidclipboard.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidclipboard.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidevents.c Fixed bug 4890 - Add hint for SDL that the graphics context is externally managed 2019-12-08 11:33:06 -08:00
SDL_androidevents.h Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE 2019-04-05 09:16:30 +02:00
SDL_androidgl.c Android: concurrency issues, make sure Activity is in running State when calling 2019-06-28 16:38:42 +02:00
SDL_androidgl.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidkeyboard.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidkeyboard.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidmessagebox.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidmessagebox.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidmouse.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidmouse.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidtouch.c Android: some readability: redundant casts, deads stores, redundant control flow 2019-10-31 15:53:10 +01:00
SDL_androidtouch.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidvideo.c Android: resize with software rendering, reverted again (Bug 4669) 2019-06-18 18:53:58 +02:00
SDL_androidvideo.h Android: resize with software rendering, reverted again (Bug 4669) 2019-06-18 18:53:58 +02:00
SDL_androidvulkan.c Android: some readability: redundant casts, deads stores, redundant control flow 2019-10-31 15:53:10 +01:00
SDL_androidvulkan.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_androidwindow.c Fixed bug 4890 - Add hint for SDL that the graphics context is externally managed 2019-12-08 11:33:06 -08:00
SDL_androidwindow.h Android: add MinimizeWindow function (Bug 4580, 4657) 2019-06-10 21:58:03 +02:00