OLD | NEW |
1 #ifndef __eglplatform_h_ | 1 #ifndef __eglplatform_h_ |
2 #define __eglplatform_h_ | 2 #define __eglplatform_h_ |
3 | 3 |
4 /* | 4 /* |
5 ** Copyright (c) 2007-2009 The Khronos Group Inc. | 5 ** Copyright (c) 2007-2009 The Khronos Group Inc. |
6 ** | 6 ** |
7 ** Permission is hereby granted, free of charge, to any person obtaining a | 7 ** Permission is hereby granted, free of charge, to any person obtaining a |
8 ** copy of this software and/or associated documentation files (the | 8 ** copy of this software and/or associated documentation files (the |
9 ** "Materials"), to deal in the Materials without restriction, including | 9 ** "Materials"), to deal in the Materials without restriction, including |
10 ** without limitation the rights to use, copy, modify, merge, publish, | 10 ** without limitation the rights to use, copy, modify, merge, publish, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 typedef struct ANativeWindow* EGLNativeWindowType; | 93 typedef struct ANativeWindow* EGLNativeWindowType; |
94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; | 94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; |
95 typedef void* EGLNativeDisplayType; | 95 typedef void* EGLNativeDisplayType; |
96 | 96 |
97 #elif defined(USE_OZONE) | 97 #elif defined(USE_OZONE) |
98 | 98 |
99 typedef int EGLNativeDisplayType; | 99 typedef int EGLNativeDisplayType; |
100 typedef intptr_t EGLNativeWindowType; | 100 typedef intptr_t EGLNativeWindowType; |
101 typedef intptr_t EGLNativePixmapType; | 101 typedef intptr_t EGLNativePixmapType; |
102 | 102 |
| 103 #elif defined(USE_WAYLAND) |
| 104 |
| 105 typedef struct wl_display *EGLNativeDisplayType; |
| 106 typedef struct wl_egl_pixmap *EGLNativePixmapType; |
| 107 typedef struct wl_egl_window *EGLNativeWindowType; |
| 108 |
103 #elif defined(__unix__) | 109 #elif defined(__unix__) |
104 | 110 |
105 /* X11 (tentative) */ | 111 /* X11 (tentative) */ |
106 #include <X11/Xlib.h> | 112 #include <X11/Xlib.h> |
107 #include <X11/Xutil.h> | 113 #include <X11/Xutil.h> |
108 | 114 |
109 typedef Display *EGLNativeDisplayType; | 115 typedef Display *EGLNativeDisplayType; |
110 typedef Pixmap EGLNativePixmapType; | 116 typedef Pixmap EGLNativePixmapType; |
111 typedef Window EGLNativeWindowType; | 117 typedef Window EGLNativeWindowType; |
112 | 118 |
(...skipping 23 matching lines...) Expand all Loading... |
136 /* Define EGLint. This must be a signed integral type large enough to contain | 142 /* Define EGLint. This must be a signed integral type large enough to contain |
137 * all legal attribute names and values passed into and out of EGL, whether | 143 * all legal attribute names and values passed into and out of EGL, whether |
138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, | 144 * their type is boolean, bitmask, enumerant (symbolic constant), integer, |
139 * handle, or other. While in general a 32-bit integer will suffice, if | 145 * handle, or other. While in general a 32-bit integer will suffice, if |
140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit | 146 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit |
141 * integer type. | 147 * integer type. |
142 */ | 148 */ |
143 typedef khronos_int32_t EGLint; | 149 typedef khronos_int32_t EGLint; |
144 | 150 |
145 #endif /* __eglplatform_h */ | 151 #endif /* __eglplatform_h */ |
OLD | NEW |