From 353479fa8a63aebc21825ad614115b7b5434fe0d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 19 Apr 2000 01:40:00 +0000 Subject: added GLX_EXT_import_context, 1.3 misc clean-up --- include/GL/glx.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/include/GL/glx.h b/include/GL/glx.h index e9f8cbf50f..ead38a91a0 100644 --- a/include/GL/glx.h +++ b/include/GL/glx.h @@ -1,4 +1,4 @@ -/* $Id: glx.h,v 1.19 2000/04/10 21:12:20 brianp Exp $ */ +/* $Id: glx.h,v 1.20 2000/04/19 01:40:00 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -108,8 +108,6 @@ extern "C" { /* * GLX 1.3 and later: - * XXX don't know the values of some of these enums! - * XXX some 1.3 enums may be missing! */ #define GLX_CONFIG_CAVEAT 0x20 #define GLX_DONT_CARE 0xFFFFFFFF @@ -193,11 +191,20 @@ extern "C" { #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D +/* + * 47. GLX_EXT_import_context + */ +#define GLX_SHARE_CONTEXT_EXT 0x800A +#define GLX_VISUAL_ID_EXT 0x800B +#define GLX_SCREEN_EXT 0x800C + + /* * Compile-time extension tests */ #define GLX_EXT_visual_info 1 #define GLX_EXT_visual_rating 1 +#define GLX_EXT_import_context 1 #define GLX_MESA_pixmap_colormap 1 #define GLX_MESA_release_buffers 1 #define GLX_MESA_copy_sub_buffer 1 @@ -355,6 +362,21 @@ extern int glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count); + +/* GLX_EXT_import_context */ +extern void glXFreeContextEXT(Display *dpy, GLXContext context); + +extern GLXContextID glXGetContextIDEXT(const GLXContext context); + +extern Display *glXGetCurrentDisplayEXT(void); + +extern GLXContext glXImportContextEXT(Display *dpy, GLXContextID contextID); + +extern int glXQueryContextInfoEXT(Display *dpy, GLXContext context, + int attribute,int *value); + + + /* GLX_ARB_get_proc_address */ extern void (*glXGetProcAddressARB(const GLubyte *procName))(); -- cgit v1.2.3