1 #ifndef EGLGLOBALS_INCLUDED
2 #define EGLGLOBALS_INCLUDED
4 #include "egltypedefs.h"
11 struct _egl_thread_info
14 _EGLContext
*CurrentContext
;
24 EGLBoolean Initialized
;
26 _EGLHashtable
*Displays
;
27 _EGLHashtable
*Surfaces
;
29 EGLScreenMESA FreeScreenHandle
;
31 /* XXX these may be temporary */
32 EGLBoolean OpenGLAPISupported
;
33 EGLBoolean OpenGLESAPISupported
;
34 EGLBoolean OpenVGAPISupported
;
36 /* XXX temporary - should be thread-specific data (TSD) */
37 _EGLThreadInfo
*ThreadInfo
;
41 extern struct _egl_global _eglGlobal
;
45 _eglInitGlobals(void);
49 _eglDestroyGlobals(void);
52 extern _EGLThreadInfo
*
53 _eglNewThreadInfo(void);
57 _eglDeleteThreadData(_EGLThreadInfo
*t
);
60 extern _EGLThreadInfo
*
61 _eglGetCurrentThread(void);
65 _eglError(EGLint errCode
, const char *msg
);
68 #endif /* EGLGLOBALS_INCLUDED */