diff options
author | Sven Gothel <[email protected]> | 2010-11-04 19:45:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-04 19:45:52 +0100 |
commit | f7212fd20236827c0fca8b5c76486e60de2db535 (patch) | |
tree | 079a81a306d7aed408a35f9ca1f9edf5b33be35b /make/stub_includes/egl/EGL/egl.h | |
parent | 297725b7559d67381ea45460f2a6e4c557ea62de (diff) |
Adding patches for gluegen interoperability and adding some extensions:
- eglplatform.h: if platform not recognized, use 'void pointer' for EGLNativeDisplayType, EGLNativeWindowType and EGLNativePixmapType
- egl.h: adding ifndef core extension for gluegen and eglGetProcAddress
- eglext.h: adding EGL_NV_texture_rectangle, EGL_NV_system_time, EGL_NV_omx_il_sink, EGL_RMSURFACE_NV
Diffstat (limited to 'make/stub_includes/egl/EGL/egl.h')
-rw-r--r-- | make/stub_includes/egl/EGL/egl.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/make/stub_includes/egl/EGL/egl.h b/make/stub_includes/egl/EGL/egl.h index 99ea342a4..1eabe3af2 100644 --- a/make/stub_includes/egl/EGL/egl.h +++ b/make/stub_includes/egl/EGL/egl.h @@ -56,6 +56,8 @@ typedef void *EGLClientBuffer; #define EGL_VERSION_1_3 1 #define EGL_VERSION_1_4 1 +#ifndef EGL_VERSION_1_X + /* EGL Enumerants. Bitmasks and other exceptional cases aside, most * enums are assigned unique values starting at 0x3000. */ @@ -242,7 +244,10 @@ typedef void *EGLClientBuffer; * a bug in Khronos Bugzilla against task "Registry". */ +#endif /* EGL_VERSION_1_X */ +#ifndef EGL_VERSION_1_X +#define EGL_VERSION_1_X 1 /* EGL Functions */ @@ -313,14 +318,10 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target); -/* This is a generic function pointer type, whose name indicates it must - * be cast to the proper type *and calling convention* before use. - */ -typedef void (*__eglMustCastToProperFunctionPointerType)(void); +typedef void (* EGLAPIENTRY __EGLFuncPtr)(void); +EGLAPI __EGLFuncPtr eglGetProcAddress(const char *procname); -/* Now, define eglGetProcAddress using the generic function ptr. type */ -EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY - eglGetProcAddress(const char *procname); +#endif /* EGL_VERSION_1_X */ #ifdef __cplusplus } |