Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_ANDROID
26 #include "../SDL_sysvideo.h"
27 #include "../../events/SDL_keyboard_c.h"
28 #include "../../events/SDL_mouse_c.h"
29 #include "../../events/SDL_windowevents_c.h"
30 #include "../../core/android/SDL_android.h"
73 if (!
data->native_window) {
84 ANativeWindow_release(
data->native_window);
86 return SDL_SetError(
"Could not create GLES window surface");
106 if (!
window->is_destroying) {
122 if (!
data || !
data->native_window) {
129 int new_w = ANativeWindow_getWidth(
data->native_window);
130 int new_h = ANativeWindow_getHeight(
data->native_window);
132 if (old_w != new_w || old_h != new_h) {
152 SDL_EGL_DestroySurface(
_this,
data->egl_surface);
154 if (
data->native_window) {
155 ANativeWindow_release(
data->native_window);
void Android_JNI_SetOrientation(int w, int h, int resizable, const char *hint)
void Android_JNI_SetActivityTitle(const char *title)
void Android_JNI_SetWindowStyle(SDL_bool fullscreen)
#define SDL_CreateSemaphore
@ SDL_WINDOWEVENT_RESIZED
void SDL_SetKeyboardFocus(SDL_Window *window)
void SDL_SetMouseFocus(SDL_Window *window)
void Android_SetWindowTitle(_THIS, SDL_Window *window)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
The type used to identify a window.
void Android_DestroyWindow(_THIS, SDL_Window *window)
int Android_SurfaceHeight
static SDL_VideoDevice * _this
#define SDL_MINOR_VERSION
EGLSurface EGLNativeWindowType * window
union SDL_SysWMinfo::@18 info
SDL_bool SDL_IsChromebook(void)
void Android_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
SDL_sem * Android_PauseSem
int Android_CreateWindow(_THIS, SDL_Window *window)
#define SDL_OutOfMemory()
SDL_bool SDL_IsDeXMode(void)
#define SDL_HINT_ORIENTATIONS
A variable controlling which orientations are allowed on iOS/Android.
ANativeWindow * Android_JNI_GetNativeWindow(void)
SDL_bool Android_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
int SDL_SendWindowEvent(SDL_Window *window, Uint8 windowevent, int data1, int data2)
#define SDL_DestroySemaphore
#define SDL_MAJOR_VERSION
SDL_Window * Android_Window
struct wl_surface * surface
SDL_sem * Android_ResumeSem