summaryrefslogtreecommitdiff
path: root/src/egl/main/eglmode.h
blob: b3c268d1fb2cdb6851d073319e8745eb32e0483c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef EGLMODE_INCLUDED
#define EGLMODE_INCLUDED

#include "egltypedefs.h"

struct _egl_mode
{
   EGLConfig Handle;       /* the public/opaque handle which names this mode */
   EGLint Width, Height;   /* size in pixels */
   EGLint Depth;           /* bits per pixel */
   EGLint RefreshRate;     /* rate * 1000.0 */
   EGLBoolean Stereo;

   /* Other possible attributes */
   /* interlaced */
   /* external sync */
};


extern _EGLMode *
_eglLookupMode(EGLDisplay dpy, EGLModeMESA mode);


extern EGLBoolean
_eglChooseModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number,
                   const EGLint *attrib_list, EGLModeMESA *modes,
                   EGLint modes_size, EGLint *num_modes);


extern EGLBoolean
_eglGetModesMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number,
                 EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);


extern EGLBoolean
_eglGetModeAttribMESA(_EGLDriver *drv, EGLDisplay dpy, EGLModeMESA mode,
                      EGLint attribute, EGLint *value);



#endif /* EGLMODE_INCLUDED */