Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendispatch.c
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 6.3 00004 * 00005 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00025 00040 #ifndef GLX_USE_APPLEGL 00041 00042 #include "main/glheader.h" 00043 #include "glapi/glapi.h" 00044 #include "glapi/glapitable.h" 00045 #include "glapi/glthread.h" 00046 00047 00048 #if !(defined(USE_X86_ASM) || defined(USE_X86_64_ASM) || defined(USE_SPARC_ASM)) 00049 00050 #if defined(WIN32) 00051 #define KEYWORD1 GLAPI 00052 #else 00053 #define KEYWORD1 PUBLIC 00054 #endif 00055 00056 #define KEYWORD2 GLAPIENTRY 00057 00058 #if defined(USE_MGL_NAMESPACE) 00059 #define NAME(func) mgl##func 00060 #else 00061 #define NAME(func) gl##func 00062 #endif 00063 00064 #if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */ 00065 00066 #define F stdout 00067 #define DISPATCH(FUNC, ARGS, MESSAGE) \ 00068 fprintf MESSAGE; \ 00069 CALL_ ## FUNC(GET_DISPATCH(), ARGS); 00070 00071 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ 00072 fprintf MESSAGE; \ 00073 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); 00074 00075 #else 00076 00077 #define DISPATCH(FUNC, ARGS, MESSAGE) \ 00078 CALL_ ## FUNC(GET_DISPATCH(), ARGS); 00079 00080 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ 00081 return CALL_ ## FUNC(GET_DISPATCH(), ARGS); 00082 00083 #endif /* logging */ 00084 00085 00086 #ifndef GLAPIENTRY 00087 #define GLAPIENTRY 00088 #endif 00089 00090 #include "glapi/dispatch.h" 00091 #include "glapi/glapitemp.h" 00092 00093 #endif /* USE_X86_ASM */ 00094 00095 #endif /* !GLX_USE_APPLEGL */ Generated on Sat May 26 2012 04:19:00 for ReactOS by
1.7.6.1
|