diff options
author | Brian Paul <[email protected]> | 2006-01-30 00:10:55 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-01-30 00:10:55 +0000 |
commit | b2006a40eb22899d38cd31691640555228e36975 (patch) | |
tree | 4a54cd2f8b638936f7f24d842ab34106a6094a80 /src/egl/main/eglglobals.h | |
parent | daf3093f28353b27d277da4406324fbc41676a5b (diff) |
some initial EGL 1.2 work
Diffstat (limited to 'src/egl/main/eglglobals.h')
-rw-r--r-- | src/egl/main/eglglobals.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h index c25ab3e35b5..c16baa2d6bd 100644 --- a/src/egl/main/eglglobals.h +++ b/src/egl/main/eglglobals.h @@ -12,6 +12,7 @@ struct _egl_thread_info { EGLint LastError; _EGLContext *CurrentContext; + EGLenum CurrentAPI; }; @@ -28,8 +29,12 @@ struct _egl_global EGLScreenMESA FreeScreenHandle; - /* XXX temporary */ - _EGLThreadInfo ThreadInfo; + /* XXX these may be temporary */ + EGLBoolean OpenGLESAPISupported; + EGLBoolean OpenVGAPISupported; + + /* XXX temporary - should be thread-specific data (TSD) */ + _EGLThreadInfo *ThreadInfo; }; @@ -45,6 +50,14 @@ _eglDestroyGlobals(void); extern _EGLThreadInfo * +_eglNewThreadInfo(void); + + +extern void +_eglDeleteThreadData(_EGLThreadInfo *t); + + +extern _EGLThreadInfo * _eglGetCurrentThread(void); |