Merge commit 'origin/master' into gallium-0.2
[mesa.git] / include / GLES / egltypes.h
1 /*
2 ** egltypes.h for Mesa
3 **
4 ** ONLY egl.h SHOULD INCLUDE THIS FILE!
5 **
6 ** See comments about egltypes.h in the standard egl.h file.
7 */
8
9
10 #include <sys/types.h>
11
12
13 /*
14 ** These opaque EGL types are implemented as unsigned 32-bit integers:
15 */
16 typedef uint32_t EGLDisplay;
17 typedef uint32_t EGLConfig;
18 typedef uint32_t EGLSurface;
19 typedef uint32_t EGLContext;
20
21 /* EGL_MESA_screen_surface */
22 typedef uint32_t EGLModeMESA;
23 typedef uint32_t EGLScreenMESA;
24
25
26 /*
27 ** Other basic EGL types:
28 */
29 typedef uint8_t EGLBoolean;
30 typedef int32_t EGLint;
31
32 typedef void * NativeDisplayType;
33 typedef int NativePixmapType;
34 typedef int NativeWindowType;
35
36 /*
37 ** EGL and native handle null values:
38 */
39 #define EGL_DEFAULT_DISPLAY ((NativeDisplayType) 0)
40 #define EGL_NO_CONTEXT ((EGLContext) 0)
41 #define EGL_NO_DISPLAY ((EGLDisplay) 0)
42 #define EGL_NO_SURFACE ((EGLSurface) 0)
43
44 /* EGL_MESA_screen_surface */
45 #define EGL_NO_MODE_MESA ((EGLModeMESA) 0)