OSDN Git Service

egl_xdri: Implement eglCreateImageKHR.
[android-x86/external-mesa.git] / include / EGL / internal / eglimage_dri.h
1 #ifndef EGLIMAGE_DRI_INCLUDED
2 #define EGLIMAGE_DRI_INCLUDED
3
4 #include "GL/internal/dri_interface.h"
5
6 #define __DRI_EGL_IMAGE_MAGIC \
7    (('D' << 24) | \
8     ('R' << 16) | \
9     ('I' <<  8) | \
10     ('0'))
11
12 typedef void *__DRIEGLImageHandle;
13 typedef struct __DRIEGLImageRec __DRIEGLImage;
14
15 struct __DRIEGLImageRec {
16    GLint magic;
17
18    __DRIdrawable *drawable;
19
20    GLboolean texture_format_rgba;
21    GLint level;
22    GLint __pad[4];
23 };
24
25 extern __DRIEGLImage *_eglClientGetImageData(__DRIEGLImageHandle handle);
26
27 #endif /* EGLIMAGE_DRI_INCLUDED */