14642e01fSmrg#ifdef HAVE_DIX_CONFIG_H
24642e01fSmrg#include <dix-config.h>
34642e01fSmrg#endif
44642e01fSmrg
54642e01fSmrg#ifndef _glxext_h_
64642e01fSmrg#define _glxext_h_
74642e01fSmrg
84642e01fSmrg/*
94642e01fSmrg * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
104642e01fSmrg * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
114642e01fSmrg *
124642e01fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
134642e01fSmrg * copy of this software and associated documentation files (the "Software"),
144642e01fSmrg * to deal in the Software without restriction, including without limitation
154642e01fSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
164642e01fSmrg * and/or sell copies of the Software, and to permit persons to whom the
174642e01fSmrg * Software is furnished to do so, subject to the following conditions:
184642e01fSmrg *
194642e01fSmrg * The above copyright notice including the dates of first publication and
204642e01fSmrg * either this permission notice or a reference to
214642e01fSmrg * http://oss.sgi.com/projects/FreeB/
224642e01fSmrg * shall be included in all copies or substantial portions of the Software.
234642e01fSmrg *
244642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
254642e01fSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
264642e01fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
274642e01fSmrg * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
284642e01fSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
294642e01fSmrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
304642e01fSmrg * SOFTWARE.
314642e01fSmrg *
324642e01fSmrg * Except as contained in this notice, the name of Silicon Graphics, Inc.
334642e01fSmrg * shall not be used in advertising or otherwise to promote the sale, use or
344642e01fSmrg * other dealings in this Software without prior written authorization from
354642e01fSmrg * Silicon Graphics, Inc.
364642e01fSmrg */
374642e01fSmrg
3835c4bbdfSmrg/* doing #include <GL/glx.h> & #include <GL/glxext.h> could cause problems
3935c4bbdfSmrg * with overlapping definitions, so let's use the easy way
4035c4bbdfSmrg */
4135c4bbdfSmrg#ifndef GLX_RGBA_FLOAT_BIT_ARB
4235c4bbdfSmrg#define GLX_RGBA_FLOAT_BIT_ARB             0x00000004
4335c4bbdfSmrg#endif
4435c4bbdfSmrg#ifndef GLX_RGBA_FLOAT_TYPE_ARB
4535c4bbdfSmrg#define GLX_RGBA_FLOAT_TYPE_ARB            0x20B9
4635c4bbdfSmrg#endif
4735c4bbdfSmrg#ifndef GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT
4835c4bbdfSmrg#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT    0x00000008
4935c4bbdfSmrg#endif
5035c4bbdfSmrg#ifndef GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT
5135c4bbdfSmrg#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT   0x20B1
5235c4bbdfSmrg#endif
53ed6184dfSmrg#ifndef GLX_CONTEXT_RELEASE_BEHAVIOR_ARB
54ed6184dfSmrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB   0x2097
55ed6184dfSmrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
56ed6184dfSmrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
57ed6184dfSmrg#endif
5835c4bbdfSmrg
594642e01fSmrgextern void __glXFlushContextCache(void);
604642e01fSmrg
6135c4bbdfSmrgextern Bool __glXAddContext(__GLXcontext * cx);
624642e01fSmrgextern void __glXErrorCallBack(GLenum code);
634642e01fSmrgextern void __glXClearErrorOccured(void);
644642e01fSmrgextern GLboolean __glXErrorOccured(void);
654642e01fSmrg
664642e01fSmrgextern const char GLServerVersion[];
6735c4bbdfSmrgextern int DoGetString(__GLXclientState * cl, GLbyte * pc, GLboolean need_swap);
684642e01fSmrg
691b5d61b8Smrgextern int
701b5d61b8SmrgxorgGlxMakeCurrent(ClientPtr client, GLXContextTag tag, XID drawId, XID readId,
711b5d61b8Smrg                   XID contextId, GLXContextTag newContextTag);
721b5d61b8Smrg
7335c4bbdfSmrg#endif                          /* _glxext_h_ */
74