Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmesa_wgl.h
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 3.1 00004 * 00005 * Copyright (C) 1999 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 00026 /* prototypes for the Mesa WGL functions */ 00027 /* relocated here so that I could make GLUT get them properly */ 00028 00029 #ifndef _mesa_wgl_h_ 00030 #define _mesa_wgl_h_ 00031 00032 #if defined(__MINGW32__) 00033 # define __W32API_USE_DLLIMPORT__ 00034 #endif 00035 00036 #include <GL/gl.h> 00037 00038 #ifdef __cplusplus 00039 extern "C" { 00040 #endif 00041 00042 00043 #ifndef WGLAPI 00044 #define WGLAPI GLAPI 00045 #endif 00046 00047 #if defined(__MINGW32__) 00048 # ifndef WIN32_LEAN_AND_MEAN 00049 # define WIN32_LEAN_AND_MEAN 1 00050 # endif 00051 # include <windows.h> 00052 #endif 00053 00054 00055 #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) 00056 #ifndef _GNU_H_WINDOWS32_FUNCTIONS 00057 # ifdef UNICODE 00058 # define wglUseFontBitmaps wglUseFontBitmapsW 00059 # define wglUseFontOutlines wglUseFontOutlinesW 00060 # else 00061 # define wglUseFontBitmaps wglUseFontBitmapsA 00062 # define wglUseFontOutlines wglUseFontOutlinesA 00063 # endif /* !UNICODE */ 00064 #endif /* _GNU_H_WINDOWS32_FUNCTIONS */ 00065 typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; 00066 typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; 00067 typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; 00068 #endif 00069 00070 00071 #ifdef _MSC_VER 00072 # pragma warning( disable : 4615 ) /* pragma warning : unknown user warning type*/ 00073 # pragma warning( push ) 00074 # pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */ 00075 #endif 00076 00077 00078 WGLAPI int GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *); 00079 WGLAPI int GLAPIENTRY wglSwapBuffers(HDC hdc); 00080 WGLAPI int GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *); 00081 WGLAPI int GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR); 00082 WGLAPI int GLAPIENTRY wglGetPixelFormat(HDC hdc); 00083 00084 WGLAPI int GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int); 00085 WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC); 00086 WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int); 00087 WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC); 00088 WGLAPI int GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR); 00089 WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void); 00090 WGLAPI HDC GLAPIENTRY wglGetCurrentDC(void); 00091 WGLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *); 00092 WGLAPI PROC GLAPIENTRY wglGetProcAddress(const char*); 00093 WGLAPI int GLAPIENTRY wglMakeCurrent(HDC,HGLRC); 00094 WGLAPI int GLAPIENTRY wglRealizeLayerPalette(HDC, int, int); 00095 WGLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *); 00096 WGLAPI int GLAPIENTRY wglShareLists(HGLRC, HGLRC); 00097 WGLAPI int GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int); 00098 WGLAPI int GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long); 00099 WGLAPI int GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long); 00100 WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT); 00101 WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT); 00102 00103 #ifndef __MINGW32__ 00104 WGLAPI int GLAPIENTRY SwapBuffers(HDC); 00105 WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *); 00106 WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR); 00107 WGLAPI int GLAPIENTRY GetPixelFormat(HDC); 00108 WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *); 00109 #endif 00110 00111 #ifndef WGL_ARB_extensions_string 00112 #define WGL_ARB_extensions_string 1 00113 00114 WGLAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc); 00115 00116 #endif /* WGL_ARB_extensions_string */ 00117 00118 00119 #ifdef _MSC_VER 00120 # pragma warning( pop ) 00121 #endif 00122 00123 #ifdef __cplusplus 00124 } 00125 #endif 00126 00127 00128 #endif /* _mesa_wgl_h_ */ Generated on Wed May 23 2012 04:18:04 for ReactOS by
1.7.6.1
|