VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/glxext.h@ 33428

Last change on this file since 33428 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1#ifdef HAVE_DIX_CONFIG_H
2#include <dix-config.h>
3#endif
4
5#ifndef _glxext_h_
6#define _glxext_h_
7
8/*
9** License Applicability. Except to the extent portions of this file are
10** made subject to an alternative license as permitted in the SGI Free
11** Software License B, Version 1.1 (the "License"), the contents of this
12** file are subject only to the provisions of the License. You may not use
13** this file except in compliance with the License. You may obtain a copy
14** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16**
17** http://oss.sgi.com/projects/FreeB
18**
19** Note that, as provided in the License, the Software is distributed on an
20** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24**
25** Original Code. The Original Code is: OpenGL Sample Implementation,
26** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28** Copyright in any portions created by third parties is as indicated
29** elsewhere herein. All Rights Reserved.
30**
31** Additional Notice Provisions: The application programming interfaces
32** established by SGI in conjunction with the Original Code are The
33** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
34** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
35** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
36** Window System(R) (Version 1.3), released October 19, 1998. This software
37** was created using the OpenGL(R) version 1.2.1 Sample Implementation
38** published by SGI, but has not been independently verified as being
39** compliant with the OpenGL(R) version 1.2.1 Specification.
40**
41*/
42
43/*
44 * Added by VA Linux for XFree86 4.0.x
45 */
46typedef struct {
47 int type;
48 void (*resetExtension)(void);
49 Bool (*initVisuals)(
50 VisualPtr * visualp,
51 DepthPtr * depthp,
52 int * nvisualp,
53 int * ndepthp,
54 int * rootDepthp,
55 VisualID * defaultVisp,
56 unsigned long sizes,
57 int bitsPerRGB
58 );
59 void (*setVisualConfigs)(
60 int nconfigs,
61 __GLXvisualConfig *configs,
62 void **privates
63 );
64} __GLXextensionInfo;
65
66extern GLboolean __glXFreeContext(__GLXcontext *glxc);
67extern void __glXFlushContextCache(void);
68
69extern void __glXErrorCallBack(__GLinterface *gc, GLenum code);
70extern void __glXClearErrorOccured(void);
71extern GLboolean __glXErrorOccured(void);
72extern void __glXResetLargeCommandStatus(__GLXclientState*);
73
74extern int DoMakeCurrent( __GLXclientState *cl, GLXDrawable drawId,
75 GLXDrawable readId, GLXContextID contextId, GLXContextTag tag );
76extern int DoGetVisualConfigs(__GLXclientState *cl, unsigned screen,
77 GLboolean do_swap);
78extern int DoGetFBConfigs(__GLXclientState *cl, unsigned screen,
79 GLboolean do_swap);
80extern int DoCreateContext(__GLXclientState *cl, GLXContextID gcId,
81 GLXContextID shareList, VisualID visual, GLuint screen, GLboolean isDirect);
82extern int DoCreateGLXPixmap(__GLXclientState *cl, XID fbconfigId,
83 GLuint screenNum, XID pixmapId, XID glxpixmapId);
84extern int DoDestroyPixmap(__GLXclientState *cl, XID glxpixmapId);
85
86extern int DoQueryContext(__GLXclientState *cl, GLXContextID gcId);
87
88extern int DoRender(__GLXclientState *cl, GLbyte *pc, int do_swap);
89extern int DoRenderLarge(__GLXclientState *cl, GLbyte *pc, int do_swap);
90
91extern void GlxExtensionInit(void);
92
93extern const char GLServerVersion[];
94extern int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap);
95
96extern int GlxInitVisuals(
97 VisualPtr * visualp,
98 DepthPtr * depthp,
99 int * nvisualp,
100 int * ndepthp,
101 int * rootDepthp,
102 VisualID * defaultVisp,
103 unsigned long sizes,
104 int bitsPerRGB,
105 int preferredVis
106);
107
108typedef struct {
109 void * (* queryHyperpipeNetworkFunc)(int, int *, int *);
110 void * (* queryHyperpipeConfigFunc)(int, int, int *, int *);
111 int (* destroyHyperpipeConfigFunc)(int, int);
112 void * (* hyperpipeConfigFunc)(int, int, int *, int *, void *);
113} __GLXHyperpipeExtensionFuncs;
114
115extern void __glXHyperpipeInit(int screen, __GLXHyperpipeExtensionFuncs *funcs);
116
117extern __GLXHyperpipeExtensionFuncs *__glXHyperpipeFuncs;
118
119typedef struct {
120 int (* bindSwapBarrierFunc)(int, XID, int);
121 int (* queryMaxSwapBarriersFunc)(int);
122} __GLXSwapBarrierExtensionFuncs;
123
124extern void __glXSwapBarrierInit(int screen, __GLXSwapBarrierExtensionFuncs *funcs);
125
126extern __GLXSwapBarrierExtensionFuncs *__glXSwapBarrierFuncs;
127
128#endif /* _glxext_h_ */
129
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette