1 | /* $Id: mesa_wgl.h,v 1.1 2000-02-29 00:43:32 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Mesa 3-D graphics library
|
---|
5 | * Version: 3.1
|
---|
6 | *
|
---|
7 | * Copyright (C) 1999 Brian Paul All Rights Reserved.
|
---|
8 | *
|
---|
9 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
10 | * copy of this software and associated documentation files (the "Software"),
|
---|
11 | * to deal in the Software without restriction, including without limitation
|
---|
12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
13 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
14 | * Software is furnished to do so, subject to the following conditions:
|
---|
15 | *
|
---|
16 | * The above copyright notice and this permission notice shall be included
|
---|
17 | * in all copies or substantial portions of the Software.
|
---|
18 | *
|
---|
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
22 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
23 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | /* prototypes for the Mesa WGL functions */
|
---|
29 | /* relocated here so that I could make GLUT get them properly */
|
---|
30 |
|
---|
31 | #ifndef _mesa_wgl_h_
|
---|
32 | #define _mesa_wgl_h_
|
---|
33 |
|
---|
34 |
|
---|
35 | #include <gl/gl.h>
|
---|
36 |
|
---|
37 | #ifdef __cplusplus
|
---|
38 | extern "C" {
|
---|
39 | #endif
|
---|
40 |
|
---|
41 |
|
---|
42 | #ifdef _MSC_VER
|
---|
43 | # pragma warning( disable : 4615 ) /* pragma warning : unknown user warning type*/
|
---|
44 | # pragma warning( push )
|
---|
45 | # pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
|
---|
49 | WGLAPI int GLAPIENTRY wglMakeCurrent(HDC,HGLRC);
|
---|
50 | WGLAPI int GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *);
|
---|
51 | WGLAPI int GLAPIENTRY wglSwapBuffers(HDC hdc);
|
---|
52 | WGLAPI HDC GLAPIENTRY wglGetCurrentDC(void);
|
---|
53 | WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC);
|
---|
54 | WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int);
|
---|
55 | WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void);
|
---|
56 | WGLAPI PROC GLAPIENTRY wglGetProcAddress(const char*);
|
---|
57 | WGLAPI int GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *);
|
---|
58 | WGLAPI int GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int);
|
---|
59 | WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
|
---|
60 | WGLAPI int GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR);
|
---|
61 | WGLAPI int GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR);
|
---|
62 | WGLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *);
|
---|
63 | WGLAPI int GLAPIENTRY wglGetPixelFormat(HDC hdc);
|
---|
64 | WGLAPI int GLAPIENTRY wglMakeCurrent(HDC, HGLRC);
|
---|
65 | WGLAPI int GLAPIENTRY wglRealizeLayerPalette(HDC, int, int);
|
---|
66 | WGLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *);
|
---|
67 | WGLAPI int GLAPIENTRY wglShareLists(HGLRC, HGLRC);
|
---|
68 | WGLAPI int GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int);
|
---|
69 | WGLAPI int GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long);
|
---|
70 | WGLAPI int GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long);
|
---|
71 | WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
|
---|
72 | WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
|
---|
73 | WGLAPI int GLAPIENTRY SwapBuffers(HDC);
|
---|
74 | WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
|
---|
75 | WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
|
---|
76 | WGLAPI int GLAPIENTRY GetPixelFormat(HDC);
|
---|
77 | WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
|
---|
78 |
|
---|
79 | #ifdef _MSC_VER
|
---|
80 | # pragma warning( pop )
|
---|
81 | #endif
|
---|
82 |
|
---|
83 | #ifdef __cplusplus
|
---|
84 | }
|
---|
85 | #endif
|
---|
86 |
|
---|
87 |
|
---|
88 | #endif /* _mesa_wgl_h_ */
|
---|