X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_internal_android.h;h=445251f6ca5dd263f1fc80646005399c8a0fe877;hb=99d53f15a4216240088132f6af9cb194b519b1cc;hp=83373de556ddc5819d7d85746b62f38ad34c0d3b;hpb=7fbb15bc63c7937cab772bd942883e3811acbabf;p=freeglut diff --git a/src/android/fg_internal_android.h b/src/android/fg_internal_android.h index 83373de..445251f 100644 --- a/src/android/fg_internal_android.h +++ b/src/android/fg_internal_android.h @@ -1,5 +1,5 @@ /* - * freeglut_internal_android.h + * fg_internal_android.h * * The freeglut library private include file. * @@ -31,6 +31,25 @@ /* Android OpenGL ES is accessed through EGL */ #include "egl/fg_internal_egl.h" +/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */ +/* The structure used by display initialization in freeglut_init.c */ +typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay; +struct android_app; +struct tagSFG_PlatformDisplay +{ + struct tagSFG_PlatformDisplayEGL egl; + EGLNativeWindowType single_native_window; + struct android_app* app; +}; + +typedef struct tagSFG_PlatformContext SFG_PlatformContext; +/* SFG_PlatformContext is used for SFG_Window.Window */ +struct tagSFG_PlatformContext +{ + struct tagSFG_PlatformContextEGL egl; +}; + + /** * Virtual PAD (spots on touchscreen that simulate keys) */ @@ -83,4 +102,11 @@ struct tagSFG_PlatformJoystick int fd; }; +/* Window's state description. This structure should be kept portable. */ +typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState; +struct tagSFG_PlatformWindowState +{ + char unused; +}; + #endif /* FREEGLUT_INTERNAL_ANDROID_H */