OLD | NEW |
1 /* | 1 /* |
2 * Mesa 3-D graphics library | 2 * Mesa 3-D graphics library |
3 * Version: 6.3 | 3 * Version: 6.3 |
4 * | 4 * |
5 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. | 5 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. |
6 * | 6 * |
7 * Permission is hereby granted, free of charge, to any person obtaining a | 7 * Permission is hereby granted, free of charge, to any person obtaining a |
8 * copy of this software and associated documentation files (the "Software"), | 8 * copy of this software and associated documentation files (the "Software"), |
9 * to deal in the Software without restriction, including without limitation | 9 * to deal in the Software without restriction, including without limitation |
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #define NAME(func) gl##func | 58 #define NAME(func) gl##func |
59 #endif | 59 #endif |
60 | 60 |
61 #if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */ | 61 #if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */ |
62 | 62 |
63 #define F stdout | 63 #define F stdout |
64 #define DISPATCH(FUNC, ARGS, MESSAGE) \ | 64 #define DISPATCH(FUNC, ARGS, MESSAGE) \ |
65 fprintf MESSAGE; \ | 65 fprintf MESSAGE; \ |
66 CALL_ ## FUNC(GET_DISPATCH(), ARGS); | 66 CALL_ ## FUNC(GET_DISPATCH(), ARGS); |
67 | 67 |
68 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) » \ | 68 #define RETURN_DISPATCH(TYPE, FUNC, ARGS, MESSAGE) » \ |
69 fprintf MESSAGE; \ | 69 fprintf MESSAGE; \ |
70 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); | 70 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); |
71 | 71 |
72 #else | 72 #else |
73 | 73 |
74 #define DISPATCH(FUNC, ARGS, MESSAGE) \ | 74 #define DISPATCH(FUNC, ARGS, MESSAGE) \ |
75 CALL_ ## FUNC(GET_DISPATCH(), ARGS); | 75 CALL_ ## FUNC(GET_DISPATCH(), ARGS); |
76 | 76 |
77 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) » \ | 77 #define RETURN_DISPATCH(TYPE, FUNC, ARGS, MESSAGE) » \ |
78 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); | 78 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); |
79 | 79 |
80 #endif /* logging */ | 80 #endif /* logging */ |
81 | 81 |
82 | 82 |
83 #ifndef GLAPIENTRY | 83 #ifndef GLAPIENTRY |
84 #define GLAPIENTRY | 84 #define GLAPIENTRY |
85 #endif | 85 #endif |
86 | 86 |
87 #ifdef GLX_INDIRECT_RENDERING | 87 #ifdef GLX_INDIRECT_RENDERING |
88 /* those link to libglapi.a should provide the entry points */ | 88 /* those link to libglapi.a should provide the entry points */ |
89 #define _GLAPI_SKIP_PROTO_ENTRY_POINTS | 89 #define _GLAPI_SKIP_PROTO_ENTRY_POINTS |
90 #endif | 90 #endif |
91 #include "glapi/glapitemp.h" | 91 #include "glapi/glapitemp.h" |
92 | 92 |
93 #endif /* USE_X86_ASM */ | 93 #endif /* USE_X86_ASM */ |
OLD | NEW |