diff options
Diffstat (limited to 'xc/extras/Mesa/src/context.h')
-rw-r--r-- | xc/extras/Mesa/src/context.h | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/xc/extras/Mesa/src/context.h b/xc/extras/Mesa/src/context.h index 36f8e164f..a123b317b 100644 --- a/xc/extras/Mesa/src/context.h +++ b/xc/extras/Mesa/src/context.h @@ -1,7 +1,7 @@ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.1 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * @@ -52,9 +52,7 @@ /* - * Create/destroy a GLvisual. A GLvisual is like a GLX visual. It describes - * the colorbuffer, depth buffer, stencil buffer and accum buffer which will - * be used by the GL context and framebuffer. + * Create/destroy a GLvisual. */ extern GLvisual * _mesa_create_visual( GLboolean rgbFlag, @@ -97,9 +95,7 @@ _mesa_destroy_visual( GLvisual *vis ); /* - * Create/destroy a GLframebuffer. A GLframebuffer is like a GLX drawable. - * It bundles up the depth buffer, stencil buffer and accum buffers into a - * single entity. + * Create/destroy a GLframebuffer. */ extern GLframebuffer * _mesa_create_framebuffer( const GLvisual *visual, @@ -125,14 +121,13 @@ _mesa_destroy_framebuffer( GLframebuffer *buffer ); /* - * Create/destroy a GLcontext. A GLcontext is like a GLX context. It - * contains the rendering state. + * Create/destroy a GLcontext. */ extern GLcontext * _mesa_create_context( const GLvisual *visual, GLcontext *share_list, void *driver_ctx, - GLboolean direct); + GLboolean direct ); extern GLboolean _mesa_initialize_context( GLcontext *ctx, @@ -181,47 +176,64 @@ _mesa_get_current_context(void); -extern void -_mesa_swapbuffers(GLcontext *ctx); +/* OpenGL SI-style export functions. */ +extern GLboolean +_mesa_destroyContext(__GLcontext *gc); -extern struct _glapi_table * -_mesa_get_dispatch(GLcontext *ctx); +extern GLboolean +_mesa_loseCurrent(__GLcontext *gc); +extern GLboolean +_mesa_makeCurrent(__GLcontext *gc); +extern GLboolean +_mesa_shareContext(__GLcontext *gc, __GLcontext *gcShare); -/* - * Miscellaneous - */ +extern GLboolean +_mesa_copyContext(__GLcontext *dst, const __GLcontext *src, GLuint mask); + +extern GLboolean +_mesa_forceCurrent(__GLcontext *gc); + +extern GLboolean +_mesa_notifyResize(__GLcontext *gc); extern void -_mesa_problem( const GLcontext *ctx, const char *s ); +_mesa_notifyDestroy(__GLcontext *gc); extern void -_mesa_warning( const GLcontext *ctx, const char *s ); +_mesa_notifySwapBuffers(__GLcontext *gc); + +extern struct __GLdispatchStateRec * +_mesa_dispatchExec(__GLcontext *gc); extern void -_mesa_error( GLcontext *ctx, GLenum error, const char *s ); +_mesa_beginDispatchOverride(__GLcontext *gc); extern void -_mesa_compile_error( GLcontext *ctx, GLenum error, const char *s ); +_mesa_endDispatchOverride(__GLcontext *gc); -extern void -_mesa_Finish( void ); +extern struct _glapi_table * +_mesa_get_dispatch(GLcontext *ctx); -extern void -_mesa_Flush( void ); +/* + * Miscellaneous + */ extern void -_mesa_read_config_file(GLcontext *ctx); +_mesa_record_error( GLcontext *ctx, GLenum error ); + extern void -_mesa_register_config_var(const char *name, - void (*notify)( const char *, int )); +_mesa_Finish( void ); + +extern void +_mesa_Flush( void ); #endif |