1#include "glxclient.h"
2#include "glxextensions.h"
3#include "glxconfig.h"
4
5/*
6** GLX_SGI_swap_control
7*/
8int
9glXSwapIntervalSGI(int interval)
10{
11   (void) interval;
12   return 0;
13}
14
15
16/*
17** GLX_MESA_swap_control
18*/
19int
20glXSwapIntervalMESA(unsigned int interval)
21{
22   (void) interval;
23   return GLX_BAD_CONTEXT;
24}
25
26
27int
28glXGetSwapIntervalMESA(void)
29{
30   return 0;
31}
32
33
34/*
35** GLX_SGI_video_sync
36*/
37int
38glXGetVideoSyncSGI(unsigned int *count)
39{
40   (void) count;
41   return GLX_BAD_CONTEXT;
42}
43
44int
45glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
46{
47   (void) count;
48   return GLX_BAD_CONTEXT;
49}
50
51
52/*
53** GLX_SGIX_swap_group
54*/
55void
56glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member)
57{
58   (void) dpy;
59   (void) drawable;
60   (void) member;
61}
62
63
64/*
65** GLX_SGIX_swap_barrier
66*/
67void
68glXBindSwapBarrierSGIX(Display * dpy, GLXDrawable drawable, int barrier)
69{
70   (void) dpy;
71   (void) drawable;
72   (void) barrier;
73}
74
75Bool
76glXQueryMaxSwapBarriersSGIX(Display * dpy, int screen, int *max)
77{
78   (void) dpy;
79   (void) screen;
80   (void) max;
81   return False;
82}
83
84
85/*
86** GLX_OML_sync_control
87*/
88Bool
89glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
90                    int64_t * ust, int64_t * msc, int64_t * sbc)
91{
92   (void) dpy;
93   (void) drawable;
94   (void) ust;
95   (void) msc;
96   (void) sbc;
97   return False;
98}
99
100int64_t
101glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
102                     int64_t target_msc, int64_t divisor, int64_t remainder)
103{
104   (void) dpy;
105   (void) drawable;
106   (void) target_msc;
107   (void) divisor;
108   (void) remainder;
109   return 0;
110}
111
112
113Bool
114glXWaitForMscOML(Display * dpy, GLXDrawable drawable,
115                 int64_t target_msc, int64_t divisor,
116                 int64_t remainder, int64_t * ust,
117                 int64_t * msc, int64_t * sbc)
118{
119   (void) dpy;
120   (void) drawable;
121   (void) target_msc;
122   (void) divisor;
123   (void) remainder;
124   (void) ust;
125   (void) msc;
126   (void) sbc;
127   return False;
128}
129
130
131Bool
132glXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
133                 int64_t target_sbc, int64_t * ust,
134                 int64_t * msc, int64_t * sbc)
135{
136   (void) dpy;
137   (void) drawable;
138   (void) target_sbc;
139   (void) ust;
140   (void) msc;
141   (void) sbc;
142   return False;
143}
144
145
146Bool
147glXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
148{
149   (void) dpy;
150   (void) d;
151   return False;
152}
153
154
155_X_EXPORT GLXPixmap
156glXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
157                       Pixmap pixmap, Colormap cmap)
158{
159   (void) dpy;
160   (void) visual;
161   (void) pixmap;
162   (void) cmap;
163   return 0;
164}
165
166
167/**
168 * GLX_MESA_copy_sub_buffer
169 */
170void
171glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
172                     int x, int y, int width, int height)
173{
174   (void) dpy;
175   (void) drawable;
176   (void) x;
177   (void) y;
178   (void) width;
179   (void) height;
180}
181
182
183_X_EXPORT int
184glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
185                       int attribute, unsigned int *value)
186{
187   (void) dpy;
188   (void) drawable;
189   (void) attribute;
190   (void) value;
191   return 0;
192}
193
194_X_EXPORT GLXDrawable
195glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
196                        unsigned int width, unsigned int height,
197                        int *attrib_list)
198{
199   (void) dpy;
200   (void) config;
201   (void) width;
202   (void) height;
203   (void) attrib_list;
204   return None;
205}
206
207#if 0
208/* GLX_SGIX_fbconfig */
209_X_EXPORT int
210glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
211{
212   (void) dpy;
213   (void) config;
214   (void) a;
215   (void) b;
216   return 0;
217}
218
219_X_EXPORT void *
220glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
221{
222   (void) dpy;
223   (void) a;
224   (void) b;
225   (void) c;
226   return NULL;
227}
228
229_X_EXPORT GLXPixmap
230glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
231{
232   (void) dpy;
233   (void) config;
234   (void) p;
235   return None;
236}
237
238_X_EXPORT GLXContext
239glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
240                               GLXContext b, Bool c)
241{
242   (void) dpy;
243   (void) config;
244   (void) a;
245   (void) b;
246   (void) c;
247   return NULL;
248}
249
250_X_EXPORT XVisualInfo *
251glXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
252{
253   (void) dpy;
254   (void) config;
255   return NULL;
256}
257
258_X_EXPORT void *
259glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
260{
261   (void) dpy;
262   (void) visinfo;
263   return NULL;
264}
265#endif
266
267
268_X_EXPORT
269GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX,
270               (Display * dpy, GLXDrawable pbuf),
271               (dpy, pbuf), glXDestroyPbuffer)
272
273     _X_EXPORT GLX_ALIAS_VOID(glXSelectEventSGIX,
274                           (Display * dpy, GLXDrawable drawable,
275                            unsigned long mask), (dpy, drawable, mask),
276                           glXSelectEvent)
277
278     _X_EXPORT GLX_ALIAS_VOID(glXGetSelectedEventSGIX,
279                           (Display * dpy, GLXDrawable drawable,
280                            unsigned long *mask), (dpy, drawable, mask),
281                           glXGetSelectedEvent)
282