include/SDL_syswm.h
changeset 8799 e2fd743d84ea
parent 8744 8c0fafc6b438
child 8812 b0f96c169c97
     1.1 --- a/include/SDL_syswm.h	Mon Jun 02 09:01:10 2014 -0700
     1.2 +++ b/include/SDL_syswm.h	Mon Jun 02 09:01:26 2014 -0700
     1.3 @@ -98,6 +98,11 @@
     1.4  #endif
     1.5  #endif
     1.6  
     1.7 +#if defined(SDL_VIDEO_DRIVER_ANDROID)
     1.8 +typedef struct ANativeWindow ANativeWindow;
     1.9 +typedef void *EGLSurface;
    1.10 +#endif
    1.11 +
    1.12  /**
    1.13   *  These are the various supported windowing subsystems
    1.14   */
    1.15 @@ -111,7 +116,8 @@
    1.16      SDL_SYSWM_UIKIT,
    1.17      SDL_SYSWM_WAYLAND,
    1.18      SDL_SYSWM_MIR,
    1.19 -    SDL_SYSWM_WINRT
    1.20 +    SDL_SYSWM_WINRT,
    1.21 +    SDL_SYSWM_ANDROID
    1.22  } SDL_SYSWM_TYPE;
    1.23  
    1.24  /**
    1.25 @@ -225,6 +231,14 @@
    1.26          } mir;
    1.27  #endif
    1.28  
    1.29 +#if defined(SDL_VIDEO_DRIVER_ANDROID)
    1.30 +        struct
    1.31 +        {
    1.32 +            ANativeWindow *window;
    1.33 +            EGLSurface surface;
    1.34 +        } android;
    1.35 +#endif
    1.36 +
    1.37          /* Can't have an empty union */
    1.38          int dummy;
    1.39      } info;