2 #ifndef EGLCONTEXT_INCLUDED
3 #define EGLCONTEXT_INCLUDED
6 #include "egltypedefs.h"
10 * "Base" class for device driver contexts.
14 /* Managed by EGLDisplay for linking */
20 _EGLSurface
*DrawSurface
;
21 _EGLSurface
*ReadSurface
;
24 EGLBoolean DeletePending
;
26 EGLint ClientAPI
; /**< EGL_OPENGL_ES_API, EGL_OPENGL_API, EGL_OPENVG_API */
27 EGLint ClientVersion
; /**< 1 = OpenGLES 1.x, 2 = OpenGLES 2.x */
32 _eglInitContext(_EGLDriver
*drv
, EGLDisplay dpy
, _EGLContext
*ctx
,
33 EGLConfig config
, const EGLint
*attrib_list
);
37 _eglSaveContext(_EGLContext
*ctx
);
41 _eglRemoveContext(_EGLContext
*ctx
);
45 _eglCreateContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLConfig config
, EGLContext share_list
, const EGLint
*attrib_list
);
49 _eglDestroyContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext ctx
);
53 _eglQueryContext(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext ctx
, EGLint attribute
, EGLint
*value
);
57 _eglMakeCurrent(_EGLDriver
*drv
, EGLDisplay dpy
, EGLSurface draw
, EGLSurface read
, EGLContext ctx
);
61 _eglCopyContextMESA(_EGLDriver
*drv
, EGLDisplay dpy
, EGLContext source
, EGLContext dest
, EGLint mask
);
63 #endif /* EGLCONTEXT_INCLUDED */