2
#ifndef EGLCONTEXT_INCLUDED
3
#define EGLCONTEXT_INCLUDED
6
#include "egltypedefs.h"
10
* "Base" class for device driver contexts.
14
EGLContext Handle; /* The public/opaque handle which names this object */
16
_EGLDisplay *Display; /* who do I belong to? */
20
_EGLSurface *DrawSurface;
21
_EGLSurface *ReadSurface;
24
EGLBoolean DeletePending;
25
#ifdef EGL_VERSION_1_2
26
EGLint ClientAPI; /* Either EGL_OPENGL_ES_API or EGL_OPENVG_API */
27
#endif /* EGL_VERSION_1_2 */
32
_eglInitContext(_EGLDriver *drv, EGLDisplay dpy, _EGLContext *ctx,
33
EGLConfig config, const EGLint *attrib_list);
37
_eglSaveContext(_EGLContext *ctx);
41
_eglRemoveContext(_EGLContext *ctx);
45
_eglLookupContext(EGLContext ctx);
49
_eglGetCurrentContext(void);
53
_eglCreateContext(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, EGLContext share_list, const EGLint *attrib_list);
57
_eglDestroyContext(_EGLDriver *drv, EGLDisplay dpy, EGLContext ctx);
61
_eglQueryContext(_EGLDriver *drv, EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
65
_eglMakeCurrent(_EGLDriver *drv, EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
69
_eglCopyContextMESA(_EGLDriver *drv, EGLDisplay dpy, EGLContext source, EGLContext dest, EGLint mask);
71
#endif /* EGLCONTEXT_INCLUDED */