diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-23 10:31:21 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-23 10:33:03 +0800 |
commit | 092841892228c7b71dd5d6d463f1e0a37033eae9 (patch) | |
tree | 15cdcba8586d90591197c9e4d0037b4dedaafeb9 /progs/egl/segl/segl.h | |
parent | 4b770d1a11c289914bf54f4b3365f21615661c29 (diff) |
Revert "add segl"
This reverts commit fe33b7083b0081b91ee338acbe966400c6b9a7b9. It was
not supposed to be pushed yet.
Diffstat (limited to 'progs/egl/segl/segl.h')
-rw-r--r-- | progs/egl/segl/segl.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/progs/egl/segl/segl.h b/progs/egl/segl/segl.h deleted file mode 100644 index 20faf6ef02..0000000000 --- a/progs/egl/segl/segl.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef _SEGL_H_ -#define _SEGL_H_ - -#include <stdarg.h> -#include <EGL/egl.h> - -struct segl_winsys { - EGLNativeDisplayType dpy; - - EGLNativeWindowType (*create_window)(struct segl_winsys *winsys, - const char *name, - EGLint width, EGLint height, - EGLint visual); - void (*destroy_window)(struct segl_winsys *winsys, EGLNativeWindowType win); - - EGLNativePixmapType (*create_pixmap)(struct segl_winsys *winsys, - EGLint width, EGLint height, - EGLint depth); - void (*destroy_pixmap)(struct segl_winsys *winsys, EGLNativePixmapType pix); - - /* get current time in seconds */ - double (*now)(struct segl_winsys *winsys); - /* log a message. OPTIONAL */ - void (*vlog)(struct segl_winsys *winsys, const char *format, va_list ap); -}; - -struct segl { - EGLBoolean verbose; - - struct segl_winsys *winsys; - - EGLint major, minor; - EGLDisplay dpy; - EGLConfig conf; -}; - -struct segl_winsys * -segl_get_winsys(EGLNativeDisplayType dpy); - -struct segl * -segl_new(struct segl_winsys *winsys, const EGLint *attribs); - -void -segl_destroy(struct segl *segl); - -EGLBoolean -segl_create_window(struct segl *segl, const char *name, - EGLint width, EGLint height, const EGLint *attribs, - EGLNativeWindowType *win_ret, EGLSurface *surf_ret); - -EGLBoolean -segl_create_pixmap(struct segl *segl, - EGLint width, EGLint height, const EGLint *attribs, - EGLNativePixmapType *pix_ret, EGLSurface *surf_ret); - -void -segl_benchmark(struct segl *segl, double seconds, - void (*draw_frame)(void *), void *draw_data); - -#endif /* _SEGL_H_ */ |