eglmode.h revision e32ac5b8a963202dcdfb91354f77979765083000
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 */
16struct _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
31extern _EGLMode *
32_eglLookupMode(EGLModeMESA mode, _EGLDisplay *dpy);
33
34
35extern 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
41extern EGLBoolean
42_eglGetModesMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLScreen *scrn,
43                 EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
44
45
46extern EGLBoolean
47_eglGetModeAttribMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLMode *m,
48                      EGLint attribute, EGLint *value);
49
50
51extern const char *
52_eglQueryModeStringMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLMode *m);
53
54
55#endif /* EGL_MESA_screen_surface */
56
57
58#endif /* EGLMODE_INCLUDED */
59