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