b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/GL/glx/glxext.h,v 1.4 2001/03/21 16:29:36 dawes Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef _glxext_h_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define _glxext_h_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** License Applicability. Except to the extent portions of this file are
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** made subject to an alternative license as permitted in the SGI Free
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Software License B, Version 1.1 (the "License"), the contents of this
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** file are subject only to the provisions of the License. You may not use
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** this file except in compliance with the License. You may obtain a copy
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** http://oss.sgi.com/projects/FreeB
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Note that, as provided in the License, the Software is distributed on an
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Original Code. The Original Code is: OpenGL Sample Implementation,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Copyright in any portions created by third parties is as indicated
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** elsewhere herein. All Rights Reserved.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Additional Notice Provisions: The application programming interfaces
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** established by SGI in conjunction with the Original Code are The
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** Window System(R) (Version 1.3), released October 19, 1998. This software
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** was created using the OpenGL(R) version 1.2.1 Sample Implementation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** published by SGI, but has not been independently verified as being
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync** compliant with the OpenGL(R) version 1.2.1 Specification.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Added by VA Linux for XFree86 4.0.x
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int type;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void (*resetExtension)(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync Bool (*initVisuals)(
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync VisualPtr * visualp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync DepthPtr * depthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * nvisualp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * ndepthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * rootDepthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync VisualID * defaultVisp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long sizes,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int bitsPerRGB
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void (*setVisualConfigs)(
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int nconfigs,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync __GLXvisualConfig *configs,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void **privates
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} __GLXextensionInfo;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern GLboolean __glXFreeContext(__GLXcontext *glxc);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXFlushContextCache(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXFreeGLXWindow(__glXWindow *pGlxWindow);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXFreeGLXPixmap( __GLXpixmap *pGlxPixmap );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXNoSuchRenderOpcode(GLbyte*);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int __glXNoSuchSingleOpcode(__GLXclientState*, GLbyte*);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXErrorCallBack(__GLinterface *gc, GLenum code);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXClearErrorOccured(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern GLboolean __glXErrorOccured(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void __glXResetLargeCommandStatus(__GLXclientState*);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void GlxExtensionInit(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool __glXCoreType(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int GlxInitVisuals(
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#if NeedFunctionPrototypes
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync VisualPtr * visualp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync DepthPtr * depthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * nvisualp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * ndepthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * rootDepthp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync VisualID * defaultVisp,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long sizes,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int bitsPerRGB,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int preferredVis
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* _glxext_h_ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync