projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EGL: separate config and context code
[freeglut]
/
src
/
egl
/
fg_internal_egl.h
diff --git
a/src/egl/fg_internal_egl.h
b/src/egl/fg_internal_egl.h
index
1a4def8
..
f2015b9
100644
(file)
--- a/
src/egl/fg_internal_egl.h
+++ b/
src/egl/fg_internal_egl.h
@@
-30,16
+30,11
@@
/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
/* The structure used by display initialization in freeglut_init.c */
/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
/* The structure used by display initialization in freeglut_init.c */
-typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;
struct tagSFG_Window;
struct tagSFG_Window;
-struct tagSFG_PlatformDisplay
+struct tagSFG_PlatformDisplayEGL
{
/* Used to initialize and deinitialize EGL */
{
/* Used to initialize and deinitialize EGL */
- EGLDisplay eglDisplay;
- EGLContext eglContext;
- EGLConfig eglContextConfig;
- EGLint eglContextFormat;
- struct tagSFG_Window* single_window;
+ EGLDisplay Display;
};
};
@@
-49,11
+44,10
@@
struct tagSFG_PlatformDisplay
*/
typedef EGLNativeWindowType SFG_WindowHandleType ;
typedef EGLContext SFG_WindowContextType ;
*/
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;
+ EGLSurface Surface;
+ EGLConfig Config;
};
};