added glXGetCurrentDisplay() for GLX 1.2
[mesa.git] / src / mesa / drivers / x11 / realglx.h
1 /* $Id: realglx.h,v 1.2 1999/11/22 21:52:23 brianp 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
29
30
31 #ifndef REALGLX_H
32 #define REALGLX_H
33
34
35 #include <X11/Xlib.h>
36 #include <X11/Xutil.h>
37 #include "GL/glx.h"
38
39
40
41 extern XVisualInfo *Real_glXChooseVisual( Display *dpy,
42 int screen, int *list );
43
44
45 extern int Real_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
46 int attrib, int *value );
47
48
49 extern GLXContext Real_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
50 GLXContext shareList, Bool direct );
51
52
53 extern void Real_glXDestroyContext( Display *dpy, GLXContext ctx );
54
55
56 extern void Real_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
57 GLuint mask );
58
59
60 extern Bool Real_glXMakeCurrent( Display *dpy, GLXDrawable drawable,
61 GLXContext ctx );
62
63
64 extern GLXContext Real_glXGetCurrentContext( void );
65
66
67 extern GLXDrawable Real_glXGetCurrentDrawable( void );
68
69
70 extern GLXPixmap Real_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo,
71 Pixmap pixmap );
72
73
74 extern void Real_glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap );
75
76
77 extern Bool Real_glXQueryExtension( Display *dpy, int *errorb, int *event );
78
79
80 extern Bool Real_glXIsDirect( Display *dpy, GLXContext ctx );
81
82
83 extern void Real_glXSwapBuffers( Display *dpy, GLXDrawable drawable );
84
85
86 extern Bool Real_glXQueryVersion( Display *dpy, int *maj, int *min );
87
88
89 extern void Real_glXUseXFont( Font font, int first, int count, int listBase );
90
91
92 extern void Real_glXWaitGL( void );
93
94
95 extern void Real_glXWaitX( void );
96
97
98 /* GLX 1.1 and later */
99 extern const char *Real_glXQueryExtensionsString( Display *dpy, int screen );
100
101
102 /* GLX 1.1 and later */
103 extern const char *Real_glXQueryServerString( Display *dpy, int screen,
104 int name );
105
106
107 /* GLX 1.1 and later */
108 extern const char *Real_glXGetClientString( Display *dpy, int name );
109
110
111 /* GLX 1.2 and later */
112 extern Display *Real_glXGetCurrentDisplay( void );
113
114
115 #endif