21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_ANDROID
30 #include "../SDL_sysvideo.h"
31 #include "../SDL_pixels_c.h"
32 #include "../../events/SDL_events_c.h"
33 #include "../../events/SDL_windowevents_c.h"
45 #define ANDROID_VID_DRIVER_NAME "Android"
48 static int Android_VideoInit(
_THIS);
49 static void Android_VideoQuit(
_THIS);
50 int Android_GetDisplayDPI(
_THIS,
SDL_VideoDisplay * display,
float * ddpi,
float * hdpi,
float * vdpi);
52 #include "../SDL_egl_c.h"
53 #define Android_GLES_GetProcAddress SDL_EGL_GetProcAddress
54 #define Android_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
55 #define Android_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
56 #define Android_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
57 #define Android_GLES_DeleteContext SDL_EGL_DeleteContext
68 static int Android_ScreenRate = 0;
76 Android_Available(
void)
82 Android_SuspendScreenSaver(
_THIS)
95 Android_CreateDevice(
int devindex)
129 device->
free = Android_DeleteDevice;
170 ANDROID_VID_DRIVER_NAME,
"SDL Android video driver",
171 Android_Available, Android_CreateDevice
176 Android_VideoInit(
_THIS)
202 Android_VideoQuit(
_THIS)
224 Android_ScreenRate = rate;
242 if (Android_Window) {