aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h')
-rw-r--r--nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h b/nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h
new file mode 100644
index 000000000..1a6f12d17
--- /dev/null
+++ b/nx-X11/extras/Mesa_6.4.1/src/egl/main/eglglobals.h
@@ -0,0 +1,44 @@
+#ifndef EGLGLOBALS_INCLUDED
+#define EGLGLOBALS_INCLUDED
+
+#include "egltypedefs.h"
+#include "eglhash.h"
+
+
+struct _egl_global
+{
+ EGLBoolean Initialized;
+
+ _EGLHashtable *Displays;
+ _EGLHashtable *Contexts;
+ _EGLHashtable *Surfaces;
+
+ EGLScreenMESA FreeScreenHandle;
+
+ EGLint LastError;
+
+ /* XXX this should be per-thread someday */
+ _EGLContext *CurrentContext;
+};
+
+
+extern struct _egl_global _eglGlobal;
+
+
+extern void
+_eglInitGlobals(void);
+
+
+extern void
+_eglDestroyGlobals(void);
+
+
+extern void
+_eglError(EGLint errCode, const char *msg);
+
+
+extern EGLScreenMESA
+_eglAllocScreenHandle(void);
+
+
+#endif /* EGLGLOBALS_INCLUDED */