summaryrefslogtreecommitdiff
path: root/eagle.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-10-13 17:20:18 -0400
committerKristian Høgsberg <krh@redhat.com>2008-10-13 17:20:18 -0400
commit19fa1ec4c36dac6e19bcbac9fc19878bcd8180df (patch)
treeafc7148f1b1dd834da2373033a6e0914dd73debb /eagle.h
parent81d5b0c13580b9655dc31e2a07365ec02c25e810 (diff)
Refactor the backend architechture.
This lets us do different types of backends more easily. Specifically this sets us up for a X11/DRI2 backend.
Diffstat (limited to 'eagle.h')
-rw-r--r--eagle.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/eagle.h b/eagle.h
index fffe782..4dfcb39 100644
--- a/eagle.h
+++ b/eagle.h
@@ -168,7 +168,11 @@ typedef int EGLenum; /* FIXME: is this part of EGL? */
extern EGLint eglGetError(void);
-extern EGLDisplay eglCreateDisplay(const char *device, const char *driver);
+extern EGLDisplay eglCreateDisplayNative(const char *device,
+ const char *driver);
+extern EGLSurface eglCreateSurfaceNative(EGLDisplay display,
+ EGLConfig config,
+ int x, int y, int width, int height);
extern EGLBoolean eglInitialize(EGLDisplay display,
EGLint *major,
@@ -195,18 +199,6 @@ extern EGLBoolean eglGetConfigAttrib(EGLDisplay display,
EGLint attribute,
EGLint *value);
-extern EGLSurface eglCreateSurface(EGLDisplay display,
- EGLConfig config,
- int x,
- int y,
- int width,
- int height);
-
-extern EGLSurface eglGetFullscreenSurface(EGLDisplay display,
- EGLConfig config,
- int *width,
- int *height);
-
extern EGLSurface eglCreateWindowSurface(EGLDisplay dpy,
EGLConfig config,
EGLNativeWindowType win,