X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_internal_egl.h;h=efe014724d914097398d15a4085e8f6937dec822;hb=207c3128bf025b5e025bace5c0425d380dd72aa9;hp=1a4def8b8aa60588513f89b3a701a5e2c788abb4;hpb=7fbb15bc63c7937cab772bd942883e3811acbabf;p=freeglut diff --git a/src/egl/fg_internal_egl.h b/src/egl/fg_internal_egl.h index 1a4def8..efe0147 100644 --- a/src/egl/fg_internal_egl.h +++ b/src/egl/fg_internal_egl.h @@ -1,5 +1,5 @@ /* - * freeglut_internal_android.h + * fg_internal_android.h * * The freeglut library private include file. * @@ -29,17 +29,14 @@ #include /* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */ -/* The structure used by display initialization in freeglut_init.c */ -typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay; +/* The structure used by display initialization in fg_init.c */ struct tagSFG_Window; -struct tagSFG_PlatformDisplay +struct tagSFG_PlatformDisplayEGL { /* Used to initialize and deinitialize EGL */ - EGLDisplay eglDisplay; - EGLContext eglContext; - EGLConfig eglContextConfig; - EGLint eglContextFormat; - struct tagSFG_Window* single_window; + EGLDisplay Display; + EGLint MajorVersion; + EGLint MinorVersion; }; @@ -49,20 +46,10 @@ struct tagSFG_PlatformDisplay */ typedef EGLNativeWindowType SFG_WindowHandleType ; typedef EGLContext SFG_WindowContextType ; -typedef struct tagSFG_PlatformContext SFG_PlatformContext; -/* SFG_PlatformContext is used for SFG_Window.Window */ -struct tagSFG_PlatformContext +struct tagSFG_PlatformContextEGL { - EGLSurface eglSurface; -}; - - -/* Window's state description. This structure should be kept portable. */ -typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState; -struct tagSFG_PlatformWindowState -{ - int OldWidth; /* Window width from before a resize */ - int OldHeight; /* " height " " " " */ + EGLSurface Surface; + EGLConfig Config; }; #endif