1 #ifndef EGLDRIVER_INCLUDED
2 #define EGLDRIVER_INCLUDED
5 #include "egltypedefs.h"
7 #include "egldefines.h"
11 * Optional EGL extensions info.
13 struct _egl_extensions
15 EGLBoolean MESA_screen_surface
;
16 EGLBoolean MESA_copy_context
;
18 char String
[_EGL_MAX_EXTENSIONS_LEN
];
23 * Base class for device drivers.
27 EGLBoolean Initialized
; /**< set by driver after initialized */
29 void *LibHandle
; /**< dlopen handle */
31 const char *Name
; /**< name of this driver */
33 int APImajor
, APIminor
; /**< as returned by eglInitialize() */
34 char Version
[1000]; /**< initialized from APImajor/minor, Name */
36 const char *ClientAPIs
;
38 _EGLAPI API
; /**< EGL API dispatch table */
40 _EGLExtensions Extensions
;
44 extern _EGLDriver
*_eglMain(_EGLDisplay
*dpy
, const char *args
);
48 _eglChooseDriver(_EGLDisplay
*dpy
);
52 _eglOpenDriver(_EGLDisplay
*dpy
, const char *driverName
, const char *args
);
56 _eglCloseDriver(_EGLDriver
*drv
, EGLDisplay dpy
);
60 _eglLookupDriver(EGLDisplay d
);
64 _eglInitDriverFallbacks(_EGLDriver
*drv
);
67 #endif /* EGLDRIVER_INCLUDED */