Merge remote branch 'origin/master' into pipe-video
[mesa.git] / src / egl / main / eglmode.h
1 #ifndef EGLMODE_INCLUDED
2 #define EGLMODE_INCLUDED
3
4 #include "egltypedefs.h"
5
6
7 #ifdef EGL_MESA_screen_surface
8
9
10 #define EGL_NO_MODE_MESA 0
11
12
13 /**
14 * Data structure which corresponds to an EGLModeMESA.
15 */
16 struct _egl_mode
17 {
18 EGLModeMESA Handle; /* the public/opaque handle which names this mode */
19 EGLint Width, Height; /* size in pixels */
20 EGLint RefreshRate; /* rate * 1000.0 */
21 EGLint Optimal;
22 EGLint Interlaced;
23 const char *Name;
24
25 /* Other possible attributes */
26 /* interlaced */
27 /* external sync */
28 };
29
30
31 extern _EGLMode *
32 _eglLookupMode(EGLModeMESA mode, _EGLDisplay *dpy);
33
34
35 extern EGLBoolean
36 _eglChooseModeMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLScreen *scrn,
37 const EGLint *attrib_list, EGLModeMESA *modes,
38 EGLint modes_size, EGLint *num_modes);
39
40
41 extern EGLBoolean
42 _eglGetModesMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLScreen *scrn,
43 EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
44
45
46 extern EGLBoolean
47 _eglGetModeAttribMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLMode *m,
48 EGLint attribute, EGLint *value);
49
50
51 extern const char *
52 _eglQueryModeStringMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLMode *m);
53
54
55 #endif /* EGL_MESA_screen_surface */
56
57
58 #endif /* EGLMODE_INCLUDED */