2005-04-22 21:09:39 +00:00
|
|
|
#ifndef EGLGLOBALS_INCLUDED
|
|
|
|
#define EGLGLOBALS_INCLUDED
|
|
|
|
|
|
|
|
#include "egltypedefs.h"
|
2009-08-14 17:47:00 +08:00
|
|
|
#include "egldisplay.h"
|
2009-07-17 11:41:02 -06:00
|
|
|
#include "eglcurrent.h"
|
2009-08-10 17:35:20 +08:00
|
|
|
#include "eglmutex.h"
|
2005-12-10 17:54:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global library data
|
|
|
|
*/
|
2005-04-22 21:09:39 +00:00
|
|
|
struct _egl_global
|
|
|
|
{
|
2009-08-10 17:35:20 +08:00
|
|
|
_EGLMutex *Mutex;
|
2009-08-14 17:47:00 +08:00
|
|
|
|
|
|
|
/* the list of all displays */
|
|
|
|
_EGLDisplay *DisplayList;
|
|
|
|
|
2005-05-04 03:33:21 +00:00
|
|
|
EGLScreenMESA FreeScreenHandle;
|
|
|
|
|
2008-05-30 14:50:33 -06:00
|
|
|
EGLint NumDrivers;
|
|
|
|
_EGLDriver *Drivers[10];
|
2009-08-10 17:35:20 +08:00
|
|
|
|
|
|
|
EGLint NumAtExitCalls;
|
|
|
|
void (*AtExitCalls[10])(void);
|
2005-04-22 21:09:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern struct _egl_global _eglGlobal;
|
|
|
|
|
|
|
|
|
2009-08-10 17:35:20 +08:00
|
|
|
extern void
|
|
|
|
_eglAddAtExitCall(void (*func)(void));
|
|
|
|
|
|
|
|
|
2005-04-22 21:09:39 +00:00
|
|
|
#endif /* EGLGLOBALS_INCLUDED */
|