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