mesa: Restore 78-column wrapping of license text in C-style comments.
[mesa.git] / src / mesa / drivers / x11 / realglx.h
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 3.5
5 *
6 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 * OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef REALGLX_H
29 #define REALGLX_H
30
31
32 extern struct _glxapi_table *
33 _real_GetGLXDispatchTable(void);
34
35
36 /*
37 * Basically just need these to prevent compiler warnings.
38 */
39
40
41 extern XVisualInfo *
42 _real_glXChooseVisual( Display *dpy, int screen, int *list );
43
44 extern GLXContext
45 _real_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
46 GLXContext share_list, Bool direct );
47
48 extern GLXPixmap
49 _real_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap );
50
51 extern GLXPixmap
52 _real_glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visinfo,
53 Pixmap pixmap, Colormap cmap );
54
55 extern void
56 _real_glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap );
57
58 extern void
59 _real_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
60 unsigned long mask );
61
62 extern Bool
63 _real_glXMakeCurrent( Display *dpy, GLXDrawable drawable, GLXContext ctx );
64
65 extern Bool
66 _real_glXQueryExtension( Display *dpy, int *errorb, int *event );
67
68 extern void
69 _real_glXDestroyContext( Display *dpy, GLXContext ctx );
70
71 extern Bool
72 _real_glXIsDirect( Display *dpy, GLXContext ctx );
73
74 extern void
75 _real_glXSwapBuffers( Display *dpy, GLXDrawable drawable );
76
77 extern void
78 _real_glXUseXFont( Font font, int first, int count, int listbase );
79
80 extern Bool
81 _real_glXQueryVersion( Display *dpy, int *maj, int *min );
82
83 extern int
84 _real_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
85 int attrib, int *value );
86
87 extern void
88 _real_glXWaitGL( void );
89
90
91 extern void
92 _real_glXWaitX( void );
93
94 /* GLX 1.1 and later */
95 extern const char *
96 _real_glXQueryExtensionsString( Display *dpy, int screen );
97
98 /* GLX 1.1 and later */
99 extern const char *
100 _real_glXQueryServerString( Display *dpy, int screen, int name );
101
102 /* GLX 1.1 and later */
103 extern const char *
104 _real_glXGetClientString( Display *dpy, int name );
105
106
107 /*
108 * GLX 1.3 and later
109 */
110
111 extern GLXFBConfig *
112 _real_glXChooseFBConfig( Display *dpy, int screen,
113 const int *attribList, int *nitems );
114
115 extern int
116 _real_glXGetFBConfigAttrib( Display *dpy, GLXFBConfig config,
117 int attribute, int *value );
118
119 extern GLXFBConfig *
120 _real_glXGetFBConfigs( Display *dpy, int screen, int *nelements );
121
122 extern XVisualInfo *
123 _real_glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config );
124
125 extern GLXWindow
126 _real_glXCreateWindow( Display *dpy, GLXFBConfig config, Window win,
127 const int *attribList );
128
129 extern void
130 _real_glXDestroyWindow( Display *dpy, GLXWindow window );
131
132 extern GLXPixmap
133 _real_glXCreatePixmap( Display *dpy, GLXFBConfig config, Pixmap pixmap,
134 const int *attribList );
135
136 extern void
137 _real_glXDestroyPixmap( Display *dpy, GLXPixmap pixmap );
138
139 extern GLXPbuffer
140 _real_glXCreatePbuffer( Display *dpy, GLXFBConfig config,
141 const int *attribList );
142
143 extern void
144 _real_glXDestroyPbuffer( Display *dpy, GLXPbuffer pbuf );
145
146 extern void
147 _real_glXQueryDrawable( Display *dpy, GLXDrawable draw, int attribute,
148 unsigned int *value );
149
150 extern GLXContext
151 _real_glXCreateNewContext( Display *dpy, GLXFBConfig config,
152 int renderType, GLXContext shareList, Bool direct );
153
154
155 extern Bool
156 _real_glXMakeContextCurrent( Display *dpy, GLXDrawable draw,
157 GLXDrawable read, GLXContext ctx );
158
159 extern int
160 _real_glXQueryContext( Display *dpy, GLXContext ctx, int attribute, int *value );
161
162 extern void
163 _real_glXSelectEvent( Display *dpy, GLXDrawable drawable, unsigned long mask );
164
165 extern void
166 _real_glXGetSelectedEvent( Display *dpy, GLXDrawable drawable,
167 unsigned long *mask );
168
169 #ifdef GLX_SGI_swap_control
170 extern int
171 _real_glXSwapIntervalSGI(int interval);
172 #endif
173
174
175 #ifdef GLX_SGI_video_sync
176 extern int
177 _real_glXGetVideoSyncSGI(unsigned int *count);
178
179 extern int
180 _real_glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count);
181 #endif
182
183
184 #ifdef GLX_SGI_make_current_read
185 extern Bool
186 _real_glXMakeCurrentReadSGI(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
187
188 extern GLXDrawable
189 _real_glXGetCurrentReadDrawableSGI(void);
190 #endif
191
192 #if defined(_VL_H) && defined(GLX_SGIX_video_source)
193 extern GLXVideoSourceSGIX
194 _real_glXCreateGLXVideoSourceSGIX(Display *dpy, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
195
196 extern void
197 _real_glXDestroyGLXVideoSourceSGIX(Display *dpy, GLXVideoSourceSGIX src);
198 #endif
199
200 #ifdef GLX_EXT_import_context
201 extern void
202 _real_glXFreeContextEXT(Display *dpy, GLXContext context);
203
204 extern GLXContextID
205 _real_glXGetContextIDEXT(const GLXContext context);
206
207 extern Display *
208 _real_glXGetCurrentDisplayEXT(void);
209
210 extern GLXContext
211 _real_glXImportContextEXT(Display *dpy, GLXContextID contextID);
212
213 extern int
214 _real_glXQueryContextInfoEXT(Display *dpy, GLXContext context, int attribute, int *value);
215 #endif
216
217 #ifdef GLX_SGIX_fbconfig
218 extern int
219 _real_glXGetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
220
221 extern GLXFBConfigSGIX *
222 _real_glXChooseFBConfigSGIX(Display *dpy, int screen, int *attrib_list, int *nelements);
223
224 extern GLXPixmap
225 _real_glXCreateGLXPixmapWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
226
227 extern GLXContext
228 _real_glXCreateContextWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
229
230 extern XVisualInfo *
231 _real_glXGetVisualFromFBConfigSGIX(Display *dpy, GLXFBConfigSGIX config);
232
233 extern GLXFBConfigSGIX
234 _real_glXGetFBConfigFromVisualSGIX(Display *dpy, XVisualInfo *vis);
235 #endif
236
237 #ifdef GLX_SGIX_pbuffer
238 extern GLXPbufferSGIX
239 _real_glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
240
241 extern void
242 _real_glXDestroyGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf);
243
244 extern int
245 _real_glXQueryGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
246
247 extern void
248 _real_glXSelectEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long mask);
249
250 extern void
251 _real_glXGetSelectedEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long *mask);
252 #endif
253
254 #ifdef GLX_SGI_cushion
255 extern void
256 _real_glXCushionSGI(Display *dpy, Window win, float cushion);
257 #endif
258
259 #ifdef GLX_SGIX_video_resize
260 extern int
261 _real_glXBindChannelToWindowSGIX(Display *dpy, int screen, int channel , Window window);
262
263 extern int
264 _real_glXChannelRectSGIX(Display *dpy, int screen, int channel, int x, int y, int w, int h);
265
266 extern int
267 _real_glXQueryChannelRectSGIX(Display *dpy, int screen, int channel, int *x, int *y, int *w, int *h);
268
269 extern int
270 _real_glXQueryChannelDeltasSGIX(Display *dpy, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
271
272 extern int
273 _real_glXChannelRectSyncSGIX(Display *dpy, int screen, int channel, GLenum synctype);
274 #endif
275
276 #if defined(_DM_BUFFER_H_) && defined(GLX_SGIX_dmbuffer)
277 extern Bool
278 _real_glXAssociateDMPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
279 #endif
280
281 #ifdef GLX_SGIX_swap_group
282 extern void
283 _real_glXJoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable, GLXDrawable member);
284 #endif
285
286 #ifdef GLX_SGIX_swap_barrier
287 extern void
288 _real_glXBindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable, int barrier);
289
290 extern Bool
291 _real_glXQueryMaxSwapBarriersSGIX(Display *dpy, int screen, int *max);
292 #endif
293
294 #ifdef GLX_SUN_get_transparent_index
295 extern Status
296 _real_glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay, long *pTransparent);
297 #endif
298
299 #ifdef GLX_MESA_release_buffers
300 extern Bool
301 _real_glXReleaseBuffersMESA( Display *dpy, GLXDrawable d );
302 #endif
303
304 #ifdef GLX_MESA_set_3dfx_mode
305 extern Bool
306 _real_glXSet3DfxModeMESA( int mode );
307 #endif
308
309 #ifdef GLX_NV_vertex_array_range
310 extern void *
311 _real_glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
312 extern void
313 _real_glXFreeMemoryNV(GLvoid *pointer);
314 #endif
315
316 #ifdef GLX_MESA_agp_offset
317 extern GLuint
318 _real_glXGetAGPOffsetMESA(const GLvoid *pointer);
319 #endif
320
321 #ifdef GLX_MESA_copy_sub_buffer
322 extern void
323 _real_glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable,
324 int x, int y, int width, int height );
325 #endif
326
327 #endif /* REALGLX_H */