diff options
author | Brian Paul <[email protected]> | 2005-05-04 03:33:21 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-05-04 03:33:21 +0000 |
commit | c22990c29a5cdff89e6e3914aa565acc88a6a407 (patch) | |
tree | 5f8d766790274560d6e5be12c75877480beb798d /src/egl/main/eglmode.h | |
parent | 3aeae2068510a369ba5c90ae1355d0b0ed89d5f5 (diff) |
sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)
Diffstat (limited to 'src/egl/main/eglmode.h')
-rw-r--r-- | src/egl/main/eglmode.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/egl/main/eglmode.h b/src/egl/main/eglmode.h index b3c268d1fb2..fa6d8e48fc1 100644 --- a/src/egl/main/eglmode.h +++ b/src/egl/main/eglmode.h @@ -3,9 +3,13 @@ #include "egltypedefs.h" + +/** + * Data structure which corresponds to an EGLModeMESA. + */ struct _egl_mode { - EGLConfig Handle; /* the public/opaque handle which names this mode */ + EGLModeMESA 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 */ @@ -21,14 +25,19 @@ extern _EGLMode * _eglLookupMode(EGLDisplay dpy, EGLModeMESA mode); +extern _EGLMode * +_eglAddMode(_EGLScreen *screen, EGLint width, EGLint height, + EGLint depth, EGLint refreshRate); + + extern EGLBoolean -_eglChooseModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, +_eglChooseModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, const EGLint *attrib_list, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes); extern EGLBoolean -_eglGetModesMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, +_eglGetModesMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes); |