45e9809aff7304721fddb95654901b32195c9c7avboxsync * Mesa 3-D graphics library
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Version: 7.1
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included
45e9809aff7304721fddb95654901b32195c9c7avboxsync * in all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
45e9809aff7304721fddb95654901b32195c9c7avboxsync * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \mainpage Mesa GL API Module
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \section GLAPIIntroduction Introduction
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The Mesa GL API module is responsible for dispatching all the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * gl*() functions. All GL functions are dispatched by jumping through
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the current dispatch table (basically a struct full of function
45e9809aff7304721fddb95654901b32195c9c7avboxsync * pointers.)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * A per-thread current dispatch table and per-thread current context
45e9809aff7304721fddb95654901b32195c9c7avboxsync * pointer are managed by this module too.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This module is intended to be non-Mesa-specific so it can be used
45e9809aff7304721fddb95654901b32195c9c7avboxsync * with the X/DRI libGL also.
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*_glapi_proc)(void); /* generic function pointer */
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Number of extension functions which we can dynamically add at runtime.
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Define the GET_CURRENT_CONTEXT() macro.
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** \param C local variable which will hold the current context.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncconst extern void *_glapi_Context;
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) _glapi_tls_Context
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) (_glapi_Context ? _glapi_Context : _glapi_get_context())
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) _glapi_Context
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* defined (GLX_USE_TLS) */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** GL API public functions
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void *
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern struct _glapi_table *
45e9809aff7304721fddb95654901b32195c9c7avboxsync_glapi_begin_dispatch_override(struct _glapi_table *override);
45e9809aff7304721fddb95654901b32195c9c7avboxsync_glapi_check_table(const struct _glapi_table *table);
45e9809aff7304721fddb95654901b32195c9c7avboxsync_glapi_add_dispatch( const char * const * function_names,
45e9809aff7304721fddb95654901b32195c9c7avboxsync const char * parameter_signature );
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern const char *