Merge branch 'gallium-vertex-linear' into gallium-0.1
[mesa.git] / src / egl / main / egldisplay.h
1 #ifndef EGLDISPLAY_INCLUDED
2 #define EGLDISPLAY_INCLUDED
3
4 #ifdef _EGL_PLATFORM_X
5 #include <X11/Xlib.h>
6 #endif
7
8 #include "egltypedefs.h"
9
10
11 struct _egl_display
12 {
13 EGLNativeDisplayType NativeDisplay;
14 EGLDisplay Handle;
15
16 const char *DriverName;
17 _EGLDriver *Driver;
18
19 EGLint NumScreens;
20 _EGLScreen **Screens; /* array [NumScreens] */
21
22 EGLint NumConfigs;
23 _EGLConfig *Configs; /* array [NumConfigs] */
24
25 #ifdef _EGL_PLATFORM_X
26 Display *Xdpy;
27 #endif
28 };
29
30
31 extern _EGLDisplay *
32 _eglNewDisplay(NativeDisplayType displayName);
33
34
35 EGLDisplay
36 _eglGetDisplayHandle(_EGLDisplay *display);
37
38
39 extern _EGLDisplay *
40 _eglLookupDisplay(EGLDisplay dpy);
41
42
43 extern void
44 _eglSaveDisplay(_EGLDisplay *dpy);
45
46
47 extern _EGLDisplay *
48 _eglGetCurrentDisplay(void);
49
50
51 extern void
52 _eglCleanupDisplay(_EGLDisplay *disp);
53
54
55 extern EGLBoolean
56 _eglQueryDisplayMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint attrib, EGLint *value);
57
58
59
60 #endif /* EGLDISPLAY_INCLUDED */