21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_ANDROID 26 #define SDL_ANDROID_BLOCK_ON_PAUSE 1 33 void android_egl_context_backup();
34 void android_egl_context_restore();
36 #if SDL_AUDIO_DRIVER_ANDROID 37 void ANDROIDAUDIO_ResumeDevices(
void);
38 void ANDROIDAUDIO_PauseDevices(
void);
40 static void ANDROIDAUDIO_ResumeDevices(
void) {}
41 static void ANDROIDAUDIO_PauseDevices(
void) {}
45 android_egl_context_restore()
59 android_egl_context_backup()
71 static int isPaused = 0;
72 #if SDL_ANDROID_BLOCK_ON_PAUSE 73 static int isPausing = 0;
82 #if SDL_ANDROID_BLOCK_ON_PAUSE 83 if (isPaused && !isPausing) {
85 android_egl_context_backup();
86 ANDROIDAUDIO_PauseDevices();
93 ANDROIDAUDIO_ResumeDevices();
96 android_egl_context_restore();
101 #if SDL_ANDROID_BLOCK_ON_PAUSE 115 android_egl_context_backup();
116 ANDROIDAUDIO_PauseDevices();
#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
#define SDL_GL_MakeCurrent
SDL_sem * Android_ResumeSem