2 #ifndef EGLCONTEXT_INCLUDED
3 #define EGLCONTEXT_INCLUDED
6 #include "egltypedefs.h"
10 * "Base" class for device driver contexts.
14 _EGLDisplay
*Display
; /* who do I belong to? */
18 _EGLSurface
*DrawSurface
;
19 _EGLSurface
*ReadSurface
;
22 EGLBoolean DeletePending
;
24 EGLint ClientAPI
; /**< EGL_OPENGL_ES_API, EGL_OPENGL_API, EGL_OPENVG_API */
25 EGLint ClientVersion
; /**< 1 = OpenGLES 1.x, 2 = OpenGLES 2.x */
30 _eglInitContext(_EGLDriver
*drv
, EGLDisplay dpy
, _EGLContext
*ctx
,
31 EGLConfig config
, const EGLint
*attrib_list
);
35 _eglSaveContext(_EGLContext
*ctx
);
39 _eglRemoveContext(_EGLContext
*ctx
);
43 _eglGetContextHandle(_EGLContext
*ctx
);
47 _eglLookupContext(EGLContext ctx
);
51 _eglGetCurrentContext(void);
55 _eglCreateContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLConfig config
, EGLContext share_list
, const EGLint
*attrib_list
);
59 _eglDestroyContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext ctx
);
63 _eglQueryContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext ctx
, EGLint attribute
, EGLint
*value
);
67 _eglMakeCurrent(_EGLDriver
*drv
, EGLDisplay dpy
, EGLSurface draw
, EGLSurface read
, EGLContext ctx
);
71 _eglCopyContextMESA(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext source
, EGLContext dest
, EGLint mask
);
73 #endif /* EGLCONTEXT_INCLUDED */