source: trunk/src/opengl/mesa/GL/mesa_wgl.h

Last change on this file was 2938, checked in by sandervl, 26 years ago

created

File size: 3.8 KB
Line 
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
38extern "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
48WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
49WGLAPI int GLAPIENTRY wglMakeCurrent(HDC,HGLRC);
50WGLAPI int GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *);
51WGLAPI int GLAPIENTRY wglSwapBuffers(HDC hdc);
52WGLAPI HDC GLAPIENTRY wglGetCurrentDC(void);
53WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC);
54WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int);
55WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void);
56WGLAPI PROC GLAPIENTRY wglGetProcAddress(const char*);
57WGLAPI int GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *);
58WGLAPI int GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int);
59WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
60WGLAPI int GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR);
61WGLAPI int GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR);
62WGLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *);
63WGLAPI int GLAPIENTRY wglGetPixelFormat(HDC hdc);
64WGLAPI int GLAPIENTRY wglMakeCurrent(HDC, HGLRC);
65WGLAPI int GLAPIENTRY wglRealizeLayerPalette(HDC, int, int);
66WGLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *);
67WGLAPI int GLAPIENTRY wglShareLists(HGLRC, HGLRC);
68WGLAPI int GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int);
69WGLAPI int GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long);
70WGLAPI int GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long);
71WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
72WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
73WGLAPI int GLAPIENTRY SwapBuffers(HDC);
74WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
75WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
76WGLAPI int GLAPIENTRY GetPixelFormat(HDC);
77WGLAPI 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_ */
Note: See TracBrowser for help on using the repository browser.