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/eglscreen.h | |
parent | a661654a33ba38990719ac9f5aea2910a5d5bf77 (diff) |
initial EGL code
Diffstat (limited to 'src/egl/main/eglscreen.h')
-rw-r--r-- | src/egl/main/eglscreen.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/egl/main/eglscreen.h b/src/egl/main/eglscreen.h new file mode 100644 index 00000000000..1dbb766dc69 --- /dev/null +++ b/src/egl/main/eglscreen.h @@ -0,0 +1,61 @@ +#ifndef EGLSCREEN_INCLUDED +#define EGLSCREEN_INCLUDED + + +/* NOTE: there is no public EGLScreen type, we refers to screens with + * an integer. + */ + +struct _egl_screen +{ + _EGLMode *CurrentMode; + _EGLSurface *CurrentSurface; + EGLint OriginX, OriginY; + + EGLint NumModes; + _EGLMode *Modes; /* array [NumModes] */ +}; + + +extern _EGLScreen * +_eglLookupScreen(EGLDisplay dpy, GLint screenNumber); + + +extern EGLSurface +_eglCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list); + + +extern EGLBoolean +_eglShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen, EGLSurface surface); + + +extern EGLBoolean +_eglScreenModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, EGLModeMESA mode); + + +extern EGLBoolean +_eglScreenPositionMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, EGLint x, EGLint y); + + +extern EGLBoolean +_eglQueryDisplayMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint attribute, EGLint *value); + + +extern EGLBoolean +_eglQueryScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, + EGLint screen_number, EGLSurface *surface); + + +extern EGLBoolean +_eglQueryScreenModeMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, EGLModeMESA *mode); + + +extern EGLBoolean +_eglQueryScreenMESA(_EGLDriver *drv, EGLDisplay dpy, EGLint screen_number, EGLint attribute, EGLint *value); + + +extern void +_eglDeleteScreen(_EGLScreen *scrn); + + +#endif /* EGLSCREEN_INCLUDED */ |