diff options
author | Brian Paul <[email protected]> | 2005-04-22 21:09:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-04-22 21:09:39 +0000 |
commit | adbff7e977c7c768e752a24fb643d68bdf961bfe (patch) | |
tree | 8ad42d96c55f25fe05921792507bc9b69d82e8f3 /src/egl/main/eglmode.h | |
parent | a661654a33ba38990719ac9f5aea2910a5d5bf77 (diff) |
initial EGL code
Diffstat (limited to 'src/egl/main/eglmode.h')
-rw-r--r-- | src/egl/main/eglmode.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/egl/main/eglmode.h b/src/egl/main/eglmode.h new file mode 100644 index 00000000000..b3c268d1fb2 --- /dev/null +++ b/src/egl/main/eglmode.h @@ -0,0 +1,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 */ |