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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 #include <android/native_window.h> | 89 #include <android/native_window.h> |
90 | 90 |
91 struct egl_native_pixmap_t; | 91 struct egl_native_pixmap_t; |
92 | 92 |
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 intptr_t EGLNativeDisplayType; |
Nico
2016/10/10 16:58:03
why is this intptr_t instead of void*? The typedef
| |
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(__unix__) | 103 #elif defined(__unix__) |
104 | 104 |
105 /* X11 (tentative) */ | 105 /* X11 (tentative) */ |
106 #include <X11/Xlib.h> | 106 #include <X11/Xlib.h> |
107 #include <X11/Xutil.h> | 107 #include <X11/Xutil.h> |
108 | 108 |
109 typedef Display *EGLNativeDisplayType; | 109 typedef Display *EGLNativeDisplayType; |
(...skipping 26 matching lines...) Expand all Loading... | |
136 /* Define EGLint. This must be a signed integral type large enough to contain | 136 /* 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 | 137 * all legal attribute names and values passed into and out of EGL, whether |
138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, | 138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, |
139 * handle, or other. While in general a 32-bit integer will suffice, if | 139 * 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 | 140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit |
141 * integer type. | 141 * integer type. |
142 */ | 142 */ |
143 typedef khronos_int32_t EGLint; | 143 typedef khronos_int32_t EGLint; |
144 | 144 |
145 #endif /* __eglplatform_h */ | 145 #endif /* __eglplatform_h */ |
OLD | NEW |