Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendglwgl.h
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 (Win32) 00032 * 00033 * Description: OpenGL window functions (wgl*). 00034 * 00035 ****************************************************************************/ 00036 00037 #ifndef __DGLWGL_H 00038 #define __DGLWGL_H 00039 00040 // Disable compiler complaints about DLL linkage 00041 #pragma warning (disable:4273) 00042 00043 // Macros to control compilation 00044 #define STRICT 00045 #define WIN32_LEAN_AND_MEAN 00046 00047 #include <windows.h> 00048 #include <GL\gl.h> 00049 00050 #include "dglcontext.h" 00051 #include "dglglobals.h" 00052 #include "dglmacros.h" 00053 #include "ddlog.h" 00054 #include "dglpf.h" 00055 00056 /*---------------------- Macros and type definitions ----------------------*/ 00057 00058 typedef struct { 00059 PROC proc; 00060 char *name; 00061 } DGL_extension; 00062 00063 #ifndef __MINGW32__ 00064 /* XXX why is this here? 00065 * It should probaby be somewhere in src/mesa/drivers/windows/ 00066 */ 00067 #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_WINGDI_H) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) && !defined(BUILD_FOR_SNAP) 00068 # define WGL_FONT_LINES 0 00069 # define WGL_FONT_POLYGONS 1 00070 #ifndef _GNU_H_WINDOWS32_FUNCTIONS 00071 # ifdef UNICODE 00072 # define wglUseFontBitmaps wglUseFontBitmapsW 00073 # define wglUseFontOutlines wglUseFontOutlinesW 00074 # else 00075 # define wglUseFontBitmaps wglUseFontBitmapsA 00076 # define wglUseFontOutlines wglUseFontOutlinesA 00077 # endif /* !UNICODE */ 00078 #endif /* _GNU_H_WINDOWS32_FUNCTIONS */ 00079 typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; 00080 typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; 00081 typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; 00082 #if !defined(GLX_USE_MESA) 00083 #include <GL/mesa_wgl.h> 00084 #endif 00085 #endif 00086 #endif /* !__MINGW32__ */ 00087 00088 /*------------------------- Function Prototypes ---------------------------*/ 00089 00090 #ifdef __cplusplus 00091 extern "C" { 00092 #endif 00093 00094 #ifndef _USE_GLD3_WGL 00095 int APIENTRY DGL_ChoosePixelFormat(HDC a, CONST PIXELFORMATDESCRIPTOR *ppfd); 00096 BOOL APIENTRY DGL_CopyContext(HGLRC a, HGLRC b, UINT c); 00097 HGLRC APIENTRY DGL_CreateContext(HDC a); 00098 HGLRC APIENTRY DGL_CreateLayerContext(HDC a, int b); 00099 BOOL APIENTRY DGL_DeleteContext(HGLRC a); 00100 BOOL APIENTRY DGL_DescribeLayerPlane(HDC a, int b, int c, UINT d, LPLAYERPLANEDESCRIPTOR e); 00101 int APIENTRY DGL_DescribePixelFormat(HDC a, int b, UINT c, LPPIXELFORMATDESCRIPTOR d); 00102 HGLRC APIENTRY DGL_GetCurrentContext(void); 00103 HDC APIENTRY DGL_GetCurrentDC(void); 00104 PROC APIENTRY DGL_GetDefaultProcAddress(LPCSTR a); 00105 int APIENTRY DGL_GetLayerPaletteEntries(HDC a, int b, int c, int d, COLORREF *e); 00106 int APIENTRY DGL_GetPixelFormat(HDC a); 00107 PROC APIENTRY DGL_GetProcAddress(LPCSTR a); 00108 BOOL APIENTRY DGL_MakeCurrent(HDC a, HGLRC b); 00109 BOOL APIENTRY DGL_RealizeLayerPalette(HDC a, int b, BOOL c); 00110 int APIENTRY DGL_SetLayerPaletteEntries(HDC a, int b, int c, int d, CONST COLORREF *e); 00111 BOOL APIENTRY DGL_SetPixelFormat(HDC a, int b, CONST PIXELFORMATDESCRIPTOR *c); 00112 BOOL APIENTRY DGL_ShareLists(HGLRC a, HGLRC b); 00113 BOOL APIENTRY DGL_SwapBuffers(HDC a); 00114 BOOL APIENTRY DGL_SwapLayerBuffers(HDC a, UINT b); 00115 BOOL APIENTRY DGL_UseFontBitmapsA(HDC a, DWORD b, DWORD c, DWORD d); 00116 BOOL APIENTRY DGL_UseFontBitmapsW(HDC a, DWORD b, DWORD c, DWORD d); 00117 BOOL APIENTRY DGL_UseFontOutlinesA(HDC a, DWORD b, DWORD c, DWORD d, FLOAT e, FLOAT f, int g, LPGLYPHMETRICSFLOAT h); 00118 BOOL APIENTRY DGL_UseFontOutlinesW(HDC a, DWORD b, DWORD c, DWORD d, FLOAT e, FLOAT f, int g, LPGLYPHMETRICSFLOAT h); 00119 #endif //_USE_GLD3_WGL 00120 00121 BOOL dglWglResizeBuffers(GLcontext *ctx, BOOL bDefaultDriver); 00122 00123 #ifdef __cplusplus 00124 } 00125 #endif 00126 00127 #endif Generated on Sun May 27 2012 04:19:58 for ReactOS by
1.7.6.1
|