1 #ifndef __eglplatform_h_
2 #define __eglplatform_h_
50 #define EGLAPI KHRONOS_APICALL
54 #define EGLAPIENTRY KHRONOS_APIENTRY
56 #define EGLAPIENTRYP EGLAPIENTRY*
70 #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
71 #ifndef WIN32_LEAN_AND_MEAN
72 #define WIN32_LEAN_AND_MEAN 1
76 typedef HDC EGLNativeDisplayType;
77 typedef HBITMAP EGLNativePixmapType;
78 typedef HWND EGLNativeWindowType;
80 #elif defined(__WINSCW__) || defined(__SYMBIAN32__)
82 typedef int EGLNativeDisplayType;
83 typedef void *EGLNativeWindowType;
84 typedef void *EGLNativePixmapType;
86 #elif defined(WL_EGL_PLATFORM)
88 typedef struct wl_display *EGLNativeDisplayType;
89 typedef struct wl_egl_pixmap *EGLNativePixmapType;
90 typedef struct wl_egl_window *EGLNativeWindowType;
92 #elif defined(__unix__) && !defined(ANDROID)
96 #include <X11/Xutil.h>
98 typedef Display *EGLNativeDisplayType;
99 typedef Pixmap EGLNativePixmapType;
100 typedef Window EGLNativeWindowType;
102 #elif defined(ANDROID)
104 struct egl_native_pixmap_t;
106 typedef struct ANativeWindow* EGLNativeWindowType;
107 typedef struct egl_native_pixmap_t* EGLNativePixmapType;
108 typedef void* EGLNativeDisplayType;
111 #error "Platform not recognized"
typedef HDC(WINAPI *PFNWGLGETCURRENTREADDCARBPROC)(VOID)