Move all the EGL API function pointers into a new _egl_api struct.
[mesa.git] / src / egl / main / eglmode.h
1 #ifndef EGLMODE_INCLUDED
2 #define EGLMODE_INCLUDED
3
4 #include "egltypedefs.h"
5
6
7 /**
8 * Data structure which corresponds to an EGLModeMESA.
9 */
10 struct _egl_mode
11 {
12 EGLModeMESA Handle; /* the public/opaque handle which names this mode */
13 EGLint Width, Height; /* size in pixels */
14 EGLint RefreshRate; /* rate * 1000.0 */
15 EGLBoolean Stereo;
16 const char *Name;
17
18 /* Other possible attributes */
19 /* interlaced */
20 /* external sync */
21 };
22
23
24 extern _EGLMode *
25 _eglLookupMode(EGLDisplay dpy, EGLModeMESA mode);
26
27
28 extern _EGLMode *
29 _eglAddMode(_EGLScreen *screen, EGLint width, EGLint height,
30 EGLint refreshRate, const char *name);
31
32
33 extern EGLBoolean
34 _eglChooseModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
35 const EGLint *attrib_list, EGLModeMESA *modes,
36 EGLint modes_size, EGLint *num_modes);
37
38
39 extern EGLBoolean
40 _eglGetModesMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
41 EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
42
43
44 extern EGLBoolean
45 _eglGetModeAttribMESA(_EGLDriver *drv, EGLDisplay dpy, EGLModeMESA mode,
46 EGLint attribute, EGLint *value);
47
48
49 extern const char *
50 _eglQueryModeStringMESA(_EGLDriver *drv, EGLDisplay dpy, EGLModeMESA mode);
51
52
53 #endif /* EGLMODE_INCLUDED */