1 | #ifndef _glxext_h_
|
---|
2 | #define _glxext_h_
|
---|
3 |
|
---|
4 | /*
|
---|
5 | ** License Applicability. Except to the extent portions of this file are
|
---|
6 | ** made subject to an alternative license as permitted in the SGI Free
|
---|
7 | ** Software License B, Version 1.1 (the "License"), the contents of this
|
---|
8 | ** file are subject only to the provisions of the License. You may not use
|
---|
9 | ** this file except in compliance with the License. You may obtain a copy
|
---|
10 | ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
---|
11 | ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
---|
12 | **
|
---|
13 | ** http://oss.sgi.com/projects/FreeB
|
---|
14 | **
|
---|
15 | ** Note that, as provided in the License, the Software is distributed on an
|
---|
16 | ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
---|
17 | ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
---|
18 | ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
---|
19 | ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
---|
20 | **
|
---|
21 | ** Original Code. The Original Code is: OpenGL Sample Implementation,
|
---|
22 | ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
---|
23 | ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
---|
24 | ** Copyright in any portions created by third parties is as indicated
|
---|
25 | ** elsewhere herein. All Rights Reserved.
|
---|
26 | **
|
---|
27 | ** Additional Notice Provisions: The application programming interfaces
|
---|
28 | ** established by SGI in conjunction with the Original Code are The
|
---|
29 | ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
|
---|
30 | ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
|
---|
31 | ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
|
---|
32 | ** Window System(R) (Version 1.3), released October 19, 1998. This software
|
---|
33 | ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
|
---|
34 | ** published by SGI, but has not been independently verified as being
|
---|
35 | ** compliant with the OpenGL(R) version 1.2.1 Specification.
|
---|
36 | **
|
---|
37 | */
|
---|
38 |
|
---|
39 | /*
|
---|
40 | * Added by VA Linux for XFree86 4.0.x
|
---|
41 | */
|
---|
42 | typedef struct {
|
---|
43 | int type;
|
---|
44 | void (*resetExtension)(void);
|
---|
45 | Bool (*initVisuals)(
|
---|
46 | VisualPtr * visualp,
|
---|
47 | DepthPtr * depthp,
|
---|
48 | int * nvisualp,
|
---|
49 | int * ndepthp,
|
---|
50 | int * rootDepthp,
|
---|
51 | VisualID * defaultVisp,
|
---|
52 | unsigned long sizes,
|
---|
53 | int bitsPerRGB
|
---|
54 | );
|
---|
55 | void (*setVisualConfigs)(
|
---|
56 | int nconfigs,
|
---|
57 | __GLXvisualConfig *configs,
|
---|
58 | void **privates
|
---|
59 | );
|
---|
60 | } __GLXextensionInfo;
|
---|
61 |
|
---|
62 | extern GLboolean __glXFreeContext(__GLXcontext *glxc);
|
---|
63 | extern void __glXFlushContextCache(void);
|
---|
64 |
|
---|
65 | extern void __glXFreeGLXWindow(__glXWindow *pGlxWindow);
|
---|
66 | extern void __glXFreeGLXPixmap( __GLXpixmap *pGlxPixmap );
|
---|
67 |
|
---|
68 | extern void __glXNoSuchRenderOpcode(GLbyte*);
|
---|
69 | extern int __glXNoSuchSingleOpcode(__GLXclientState*, GLbyte*);
|
---|
70 | extern void __glXErrorCallBack(GLenum code);
|
---|
71 | extern void __glXClearErrorOccured(void);
|
---|
72 | extern GLboolean __glXErrorOccured(void);
|
---|
73 | extern void __glXResetLargeCommandStatus(__GLXclientState*);
|
---|
74 |
|
---|
75 | extern int __glXQueryContextInfoEXT(__GLXclientState *cl, GLbyte *pc);
|
---|
76 | extern int __glXSwapQueryContextInfoEXT(__GLXclientState *cl, char *pc);
|
---|
77 |
|
---|
78 | extern void GlxExtensionInit(void);
|
---|
79 |
|
---|
80 | extern Bool __glXCoreType(void);
|
---|
81 |
|
---|
82 | extern int GlxInitVisuals(
|
---|
83 | #if NeedFunctionPrototypes
|
---|
84 | VisualPtr * visualp,
|
---|
85 | DepthPtr * depthp,
|
---|
86 | int * nvisualp,
|
---|
87 | int * ndepthp,
|
---|
88 | int * rootDepthp,
|
---|
89 | VisualID * defaultVisp,
|
---|
90 | unsigned long sizes,
|
---|
91 | int bitsPerRGB,
|
---|
92 | int preferredVis
|
---|
93 | #endif
|
---|
94 | );
|
---|
95 |
|
---|
96 | #endif /* _glxext_h_ */
|
---|
97 |
|
---|