summaryrefslogtreecommitdiff
path: root/src/egl/main/eglglobals.h
blob: 1a6f12d174ee65b36d7220391be5c2e4450382c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 */