test version of startmenu root with big icons
[reactos.git] / reactos / lib / mesa32 / src / main / dispatch.c
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 4.1
5 *
6 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
7 *
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:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
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.
24 */
25
26
27 /*
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.
31 *
32 * NOTE: This file should _not_ be used when compiling Mesa for a DRI-
33 * based device driver.
34 *
35 */
36
37
38 #include "glheader.h"
39 #include "glapi.h"
40 #include "glapitable.h"
41 #include "glthread.h"
42
43
44 #if !(defined(USE_X86_ASM) || defined(USE_SPARC_ASM))
45
46 #if defined(WIN32)
47 #define KEYWORD1 GLAPI
48 #else
49 #define KEYWORD1
50 #endif
51
52 #define KEYWORD2 GLAPIENTRY
53
54 #if defined(USE_MGL_NAMESPACE)
55 #define NAME(func) mgl##func
56 #else
57 #define NAME(func) gl##func
58 #endif
59
60 #if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */
61
62 #define F stdout
63 #define DISPATCH(FUNC, ARGS, MESSAGE) \
64 fprintf MESSAGE; \
65 GL_CALL(FUNC) ARGS;
66
67 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
68 fprintf MESSAGE; \
69 return GL_CALL(FUNC) ARGS;
70
71 #else
72
73 #define DISPATCH(FUNC, ARGS, MESSAGE) \
74 GL_CALL(FUNC) ARGS;
75
76 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
77 return GL_CALL(FUNC) ARGS;
78
79 #endif /* logging */
80
81
82 #ifndef GLAPIENTRY
83 #define GLAPIENTRY
84 #endif
85
86 #include "glapitemp.h"
87
88
89 #endif /* USE_X86_ASM */