3 * Mesa 3-D graphics library
6 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 * This file generates all the gl* function entyrpoints.
29 * But if we're using X86-optimized dispatch (X86/glapi_x86.S) then
30 * we don't use this code.
32 * NOTE: This file should _not_ be used when compiling Mesa for a DRI-
33 * based device driver.
40 #include "glapitable.h"
44 #if !(defined(USE_X86_ASM) || defined(USE_SPARC_ASM)) || defined(__SCITECH_SNAP__)
47 #define KEYWORD1 GLAPI
52 #define KEYWORD2 GLAPIENTRY
54 #if defined(USE_MGL_NAMESPACE)
55 #define NAME(func) mgl##func
57 #define NAME(func) gl##func
61 #if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */
64 #define DISPATCH(FUNC, ARGS, MESSAGE) \
66 (_glapi_Dispatch->FUNC) ARGS;
68 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
70 return (_glapi_Dispatch->FUNC) ARGS
74 #define DISPATCH(FUNC, ARGS, MESSAGE) \
75 (_glapi_Dispatch->FUNC) ARGS;
77 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
78 return (_glapi_Dispatch->FUNC) ARGS
87 #include "glapitemp.h"
90 #endif /* USE_X86_ASM */