Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygengld_dispatch.c
Go to the documentation of this file.
00001 /**************************************************************************** 00002 * 00003 * Mesa 3-D graphics library 00004 * Direct3D Driver Interface 00005 * 00006 * ======================================================================== 00007 * 00008 * Copyright (C) 1991-2004 SciTech Software, Inc. All rights reserved. 00009 * 00010 * Permission is hereby granted, free of charge, to any person obtaining a 00011 * copy of this software and associated documentation files (the "Software"), 00012 * to deal in the Software without restriction, including without limitation 00013 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00014 * and/or sell copies of the Software, and to permit persons to whom the 00015 * Software is furnished to do so, subject to the following conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be included 00018 * in all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00021 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00022 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00023 * SCITECH SOFTWARE INC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00024 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 00025 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00026 * SOFTWARE. 00027 * 00028 * ====================================================================== 00029 * 00030 * Language: ANSI C 00031 * Environment: Windows 9x/2000/XP/XBox (Win32) 00032 * 00033 * Description: Thread-aware dispatch table. 00034 * 00035 ****************************************************************************/ 00036 00037 #include "glheader.h" 00038 #include "glapi.h" 00039 #include "glapitable.h" 00040 #include "mtypes.h" 00041 #include "context.h" 00042 00043 #define KEYWORD1 00044 #define KEYWORD2 GLAPIENTRY 00045 #if defined(USE_MGL_NAMESPACE) 00046 #define NAME(func) mgl##func 00047 #else 00048 #define NAME(func) gl##func 00049 #endif 00050 00051 #if 0 00052 // Altered these to get the dispatch table from 00053 // the current context of the calling thread. 00054 #define DISPATCH(FUNC, ARGS, MESSAGE) \ 00055 GET_CURRENT_CONTEXT(gc); \ 00056 (gc->CurrentDispatch->FUNC) ARGS 00057 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ 00058 GET_CURRENT_CONTEXT(gc); \ 00059 return (gc->CurrentDispatch->FUNC) ARGS 00060 #else // #if 0 00061 #define DISPATCH(FUNC, ARGS, MESSAGE) \ 00062 GET_CURRENT_CONTEXT(gc); \ 00063 (_glapi_Dispatch->FUNC) ARGS 00064 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ 00065 GET_CURRENT_CONTEXT(gc); \ 00066 return (_glapi_Dispatch->FUNC) ARGS 00067 #endif // #if 0 00068 00069 #ifndef GLAPIENTRY 00070 #define GLAPIENTRY 00071 #endif 00072 00073 #include "glapitemp.h" Generated on Mon May 28 2012 04:19:47 for ReactOS by
1.7.6.1
|