diff options
author | Chia-I Wu <[email protected]> | 2010-10-22 16:36:47 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-10-22 17:15:45 +0800 |
commit | 713c8734f45b51b3758ecc95b96cf7b5aecacec8 (patch) | |
tree | 64e49e982ac448dff3992be478de3d08517ece26 /src/egl/main/eglimage.h | |
parent | ecca5571b6df9a35dc16280b3556f4b11a8493a2 (diff) |
egl: Move attributes in _EGLImage to _EGLImageAttribs.
The opaque nature of EGLImage implies that extensions almost always
define their own attributes. Move attributes in _EGLImage to
_EGLImageAttribs and add a helper function to parse attribute lists.
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r-- | src/egl/main/eglimage.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index 2c0fb16d1d3..356395a210a 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -6,6 +6,16 @@ #include "egldisplay.h" +struct _egl_image_attribs +{ + /* EGL_KHR_image_base */ + EGLBoolean ImagePreserved; + + /* EGL_KHR_gl_image */ + EGLint GLTextureLevel; + EGLint GLTextureZOffset; +}; + /** * "Base" class for device driver images. */ @@ -13,15 +23,16 @@ struct _egl_image { /* An image is a display resource */ _EGLResource Resource; - - EGLBoolean Preserved; - EGLint GLTextureLevel; - EGLint GLTextureZOffset; }; +PUBLIC EGLint +_eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, + const EGLint *attrib_list); + + PUBLIC EGLBoolean -_eglInitImage(_EGLImage *img, _EGLDisplay *dpy, const EGLint *attrib_list); +_eglInitImage(_EGLImage *img, _EGLDisplay *dpy); extern _EGLImage * |