21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_ANDROID 26 #define SDL_ANDROID_BLOCK_ON_PAUSE 1 32 #if !SDL_AUDIO_DISABLED 43 android_egl_context_restore()
57 android_egl_context_backup()
69 static int isPaused = 0;
70 #if SDL_ANDROID_BLOCK_ON_PAUSE 71 static int isPausing = 0;
80 #if SDL_ANDROID_BLOCK_ON_PAUSE 81 if (isPaused && !isPausing) {
83 android_egl_context_backup();
94 android_egl_context_restore();
99 #if SDL_ANDROID_BLOCK_ON_PAUSE 113 android_egl_context_backup();
#define SDL_GL_CreateContext
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_sem * Android_PauseSem
void * SDL_GLContext
An opaque handle to an OpenGL context.
SDL_Window * Android_Window
void Android_PumpEvents(_THIS)
#define SDL_GL_GetCurrentContext
void ANDROIDAUDIO_ResumeDevices(void)
#define SDL_GL_MakeCurrent
SDL_sem * Android_ResumeSem
void ANDROIDAUDIO_PauseDevices(void)