1706f2543Smrg#ifndef _glxext_h_ 2706f2543Smrg#define _glxext_h_ 3706f2543Smrg 4706f2543Smrg/* 5706f2543Smrg * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) 6706f2543Smrg * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved. 7706f2543Smrg * 8706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a 9706f2543Smrg * copy of this software and associated documentation files (the "Software"), 10706f2543Smrg * to deal in the Software without restriction, including without limitation 11706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 12706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the 13706f2543Smrg * Software is furnished to do so, subject to the following conditions: 14706f2543Smrg * 15706f2543Smrg * The above copyright notice including the dates of first publication and 16706f2543Smrg * either this permission notice or a reference to 17706f2543Smrg * http://oss.sgi.com/projects/FreeB/ 18706f2543Smrg * shall be included in all copies or substantial portions of the Software. 19706f2543Smrg * 20706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 21706f2543Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 23706f2543Smrg * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 24706f2543Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 25706f2543Smrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26706f2543Smrg * SOFTWARE. 27706f2543Smrg * 28706f2543Smrg * Except as contained in this notice, the name of Silicon Graphics, Inc. 29706f2543Smrg * shall not be used in advertising or otherwise to promote the sale, use or 30706f2543Smrg * other dealings in this Software without prior written authorization from 31706f2543Smrg * Silicon Graphics, Inc. 32706f2543Smrg */ 33706f2543Smrg 34706f2543Smrg/* 35706f2543Smrg * Added by VA Linux for XFree86 4.0.x 36706f2543Smrg */ 37706f2543Smrgtypedef struct { 38706f2543Smrg int type; 39706f2543Smrg void (*resetExtension)(void); 40706f2543Smrg Bool (*initVisuals)( 41706f2543Smrg VisualPtr * visualp, 42706f2543Smrg DepthPtr * depthp, 43706f2543Smrg int * nvisualp, 44706f2543Smrg int * ndepthp, 45706f2543Smrg int * rootDepthp, 46706f2543Smrg VisualID * defaultVisp, 47706f2543Smrg unsigned long sizes, 48706f2543Smrg int bitsPerRGB 49706f2543Smrg ); 50706f2543Smrg void (*setVisualConfigs)( 51706f2543Smrg int nconfigs, 52706f2543Smrg __GLXvisualConfig *configs, 53706f2543Smrg void **privates 54706f2543Smrg ); 55706f2543Smrg} __GLXextensionInfo; 56706f2543Smrg 57706f2543Smrgextern GLboolean __glXFreeContext(__GLXcontext *glxc); 58706f2543Smrgextern void __glXFlushContextCache(void); 59706f2543Smrg 60706f2543Smrgextern void __glXFreeGLXWindow(__glXWindow *pGlxWindow); 61706f2543Smrgextern void __glXFreeGLXPixmap( __GLXpixmap *pGlxPixmap ); 62706f2543Smrg 63706f2543Smrgextern void __glXNoSuchRenderOpcode(GLbyte*); 64706f2543Smrgextern int __glXNoSuchSingleOpcode(__GLXclientState*, GLbyte*); 65706f2543Smrgextern void __glXErrorCallBack(GLenum code); 66706f2543Smrgextern void __glXClearErrorOccured(void); 67706f2543Smrgextern GLboolean __glXErrorOccured(void); 68706f2543Smrgextern void __glXResetLargeCommandStatus(__GLXclientState*); 69706f2543Smrg 70706f2543Smrgextern int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc); 71706f2543Smrgextern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc); 72706f2543Smrg 73706f2543Smrgextern void GlxExtensionInit(void); 74706f2543Smrg 75706f2543Smrgextern Bool __glXCoreType(void); 76706f2543Smrg 77706f2543Smrg#endif /* _glxext_h_ */ 78706f2543Smrg 79