/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
/* The structure used by display initialization in freeglut_init.c */
-typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;
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;
};
*/
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