4c221b0da1816acf2ca302b10092df059484468dvboxsync#ifndef _glxext_h_
4c221b0da1816acf2ca302b10092df059484468dvboxsync#define _glxext_h_
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync/*
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
4c221b0da1816acf2ca302b10092df059484468dvboxsync * copy of this software and associated documentation files (the "Software"),
4c221b0da1816acf2ca302b10092df059484468dvboxsync * to deal in the Software without restriction, including without limitation
4c221b0da1816acf2ca302b10092df059484468dvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * and/or sell copies of the Software, and to permit persons to whom the
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Software is furnished to do so, subject to the following conditions:
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * The above copyright notice including the dates of first publication and
4c221b0da1816acf2ca302b10092df059484468dvboxsync * either this permission notice or a reference to
4c221b0da1816acf2ca302b10092df059484468dvboxsync * http://oss.sgi.com/projects/FreeB/
4c221b0da1816acf2ca302b10092df059484468dvboxsync * shall be included in all copies or substantial portions of the Software.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4c221b0da1816acf2ca302b10092df059484468dvboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
4c221b0da1816acf2ca302b10092df059484468dvboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SOFTWARE.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
4c221b0da1816acf2ca302b10092df059484468dvboxsync * shall not be used in advertising or otherwise to promote the sale, use or
4c221b0da1816acf2ca302b10092df059484468dvboxsync * other dealings in this Software without prior written authorization from
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Silicon Graphics, Inc.
4c221b0da1816acf2ca302b10092df059484468dvboxsync */
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync/*
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Added by VA Linux for XFree86 4.0.x
4c221b0da1816acf2ca302b10092df059484468dvboxsync */
4c221b0da1816acf2ca302b10092df059484468dvboxsynctypedef struct {
4c221b0da1816acf2ca302b10092df059484468dvboxsync int type;
4c221b0da1816acf2ca302b10092df059484468dvboxsync void (*resetExtension)(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsync Bool (*initVisuals)(
4c221b0da1816acf2ca302b10092df059484468dvboxsync VisualPtr * visualp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync DepthPtr * depthp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int * nvisualp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int * ndepthp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int * rootDepthp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync VisualID * defaultVisp,
4c221b0da1816acf2ca302b10092df059484468dvboxsync unsigned long sizes,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int bitsPerRGB
4c221b0da1816acf2ca302b10092df059484468dvboxsync );
4c221b0da1816acf2ca302b10092df059484468dvboxsync void (*setVisualConfigs)(
4c221b0da1816acf2ca302b10092df059484468dvboxsync int nconfigs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync __GLXvisualConfig *configs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync void **privates
4c221b0da1816acf2ca302b10092df059484468dvboxsync );
4c221b0da1816acf2ca302b10092df059484468dvboxsync} __GLXextensionInfo;
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern GLboolean __glXFreeContext(__GLXcontext *glxc);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXFlushContextCache(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXFreeGLXWindow(__glXWindow *pGlxWindow);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXFreeGLXPixmap( __GLXpixmap *pGlxPixmap );
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXNoSuchRenderOpcode(GLbyte*);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern int __glXNoSuchSingleOpcode(__GLXclientState*, GLbyte*);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXErrorCallBack(GLenum code);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXClearErrorOccured(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern GLboolean __glXErrorOccured(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void __glXResetLargeCommandStatus(__GLXclientState*);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc);
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern void GlxExtensionInit(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsyncextern Bool __glXCoreType(void);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync#endif /* _glxext_h_ */
4c221b0da1816acf2ca302b10092df059484468dvboxsync