TerraLib 4.1
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/mesa_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 #define _mesa_wgl_h_
00030 
00031 #ifndef _mesa_wgl_h_
00032 #define _mesa_wgl_h_
00033 
00034 
00035 #include <GL/gl.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 
00042 #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__))
00043 #  if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
00044 #    define GLAPI __declspec(dllexport)
00045 #    define WGLAPI __declspec(dllexport)
00046 #  elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
00047 #    define GLAPI __declspec(dllimport)
00048 #    define WGLAPI __declspec(dllimport)
00049 #  else /* for use with static link lib build of Win32 edition only */
00050 #    define GLAPI extern
00051 #    define WGLAPI __declspec(dllimport)
00052 #  endif /* _STATIC_MESA support */
00053 #  define GLAPIENTRY __stdcall
00054 #else
00055 /* non-Windows compilation */
00056 #  define GLAPI extern
00057 #  define GLAPIENTRY
00058 #endif /* WIN32 / CYGWIN32 bracket */
00059 
00060 
00061 #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP)
00062 #ifndef _GNU_H_WINDOWS32_FUNCTIONS
00063 #          ifdef UNICODE
00064 #                     define wglUseFontBitmaps  wglUseFontBitmapsW
00065 #                     define wglUseFontOutlines  wglUseFontOutlinesW
00066 #          else
00067 #                     define wglUseFontBitmaps  wglUseFontBitmapsA
00068 #                     define wglUseFontOutlines  wglUseFontOutlinesA
00069 #          endif /* !UNICODE */
00070 #endif /* _GNU_H_WINDOWS32_FUNCTIONS */
00071 typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR;
00072 typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT;
00073 typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR;
00074 #endif
00075 
00076 
00077 #ifdef _MSC_VER
00078 #  pragma warning( disable : 4615 ) /* pragma warning : unknown user warning type*/
00079 #  pragma warning( push )
00080 #  pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */
00081 #endif
00082 
00083 WGLAPI int   GLAPIENTRY wglDeleteContext(HGLRC);
00084 WGLAPI int   GLAPIENTRY wglMakeCurrent(HDC,HGLRC);
00085 WGLAPI int   GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *);
00086 WGLAPI int   GLAPIENTRY wglSwapBuffers(HDC hdc);
00087 WGLAPI HDC   GLAPIENTRY wglGetCurrentDC(void);
00088 WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC);
00089 WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int);
00090 WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void);
00091 WGLAPI PROC  GLAPIENTRY wglGetProcAddress(const char*);
00092 WGLAPI int   GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *);
00093 WGLAPI int   GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int);
00094 WGLAPI int   GLAPIENTRY wglDeleteContext(HGLRC);
00095 WGLAPI int   GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR);
00096 WGLAPI int   GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR);
00097 WGLAPI int   GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *);
00098 WGLAPI int   GLAPIENTRY wglGetPixelFormat(HDC hdc);
00099 WGLAPI int   GLAPIENTRY wglMakeCurrent(HDC, HGLRC);
00100 WGLAPI int   GLAPIENTRY wglRealizeLayerPalette(HDC, int, int);
00101 WGLAPI int   GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *);
00102 WGLAPI int   GLAPIENTRY wglShareLists(HGLRC, HGLRC);
00103 WGLAPI int   GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int);
00104 WGLAPI int   GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long);
00105 WGLAPI int   GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long);
00106 WGLAPI int   GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
00107 WGLAPI int   GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
00108 WGLAPI int   GLAPIENTRY SwapBuffers(HDC);
00109 WGLAPI int   GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
00110 WGLAPI int   GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
00111 WGLAPI int   GLAPIENTRY GetPixelFormat(HDC);
00112 WGLAPI int   GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
00113 
00114 
00115 #ifndef WGL_ARB_extensions_string
00116 #define WGL_ARB_extensions_string 1
00117 
00118 WGLAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc);
00119 
00120 #endif /* WGL_ARB_extensions_string */
00121 
00122 
00123 #ifdef _MSC_VER
00124 #  pragma warning( pop )
00125 #endif
00126 
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130 
00131 
00132 #endif /* _mesa_wgl_h_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines