1 /* $Id: realglx.h,v 1.2 1999/11/22 21:52:23 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
36 #include <X11/Xutil.h>
41 extern XVisualInfo
*Real_glXChooseVisual( Display
*dpy
,
42 int screen
, int *list
);
45 extern int Real_glXGetConfig( Display
*dpy
, XVisualInfo
*visinfo
,
46 int attrib
, int *value
);
49 extern GLXContext
Real_glXCreateContext( Display
*dpy
, XVisualInfo
*visinfo
,
50 GLXContext shareList
, Bool direct
);
53 extern void Real_glXDestroyContext( Display
*dpy
, GLXContext ctx
);
56 extern void Real_glXCopyContext( Display
*dpy
, GLXContext src
, GLXContext dst
,
60 extern Bool
Real_glXMakeCurrent( Display
*dpy
, GLXDrawable drawable
,
64 extern GLXContext
Real_glXGetCurrentContext( void );
67 extern GLXDrawable
Real_glXGetCurrentDrawable( void );
70 extern GLXPixmap
Real_glXCreateGLXPixmap( Display
*dpy
, XVisualInfo
*visinfo
,
74 extern void Real_glXDestroyGLXPixmap( Display
*dpy
, GLXPixmap pixmap
);
77 extern Bool
Real_glXQueryExtension( Display
*dpy
, int *errorb
, int *event
);
80 extern Bool
Real_glXIsDirect( Display
*dpy
, GLXContext ctx
);
83 extern void Real_glXSwapBuffers( Display
*dpy
, GLXDrawable drawable
);
86 extern Bool
Real_glXQueryVersion( Display
*dpy
, int *maj
, int *min
);
89 extern void Real_glXUseXFont( Font font
, int first
, int count
, int listBase
);
92 extern void Real_glXWaitGL( void );
95 extern void Real_glXWaitX( void );
98 /* GLX 1.1 and later */
99 extern const char *Real_glXQueryExtensionsString( Display
*dpy
, int screen
);
102 /* GLX 1.1 and later */
103 extern const char *Real_glXQueryServerString( Display
*dpy
, int screen
,
107 /* GLX 1.1 and later */
108 extern const char *Real_glXGetClientString( Display
*dpy
, int name
);
111 /* GLX 1.2 and later */
112 extern Display
*Real_glXGetCurrentDisplay( void );