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_OML_sync_control 54*/ 55Bool 56glXGetSyncValuesOML(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 67int64_t 68glXSwapBuffersMscOML(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 80Bool 81glXWaitForMscOML(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 98Bool 99glXWaitForSbcOML(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 113Bool 114glXReleaseBuffersMESA(Display * dpy, GLXDrawable d) 115{ 116 (void) dpy; 117 (void) d; 118 return False; 119} 120 121 122_X_EXPORT GLXPixmap 123glXCreateGLXPixmapMESA(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 */ 137void 138glXCopySubBufferMESA(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 int 151glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable, 152 int attribute, unsigned int *value) 153{ 154 (void) dpy; 155 (void) drawable; 156 (void) attribute; 157 (void) value; 158 return 0; 159} 160 161_X_EXPORT GLXDrawable 162glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config, 163 unsigned int width, unsigned int height, 164 int *attrib_list) 165{ 166 (void) dpy; 167 (void) config; 168 (void) width; 169 (void) height; 170 (void) attrib_list; 171 return None; 172} 173 174#if 0 175/* GLX_SGIX_fbconfig */ 176_X_EXPORT int 177glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b) 178{ 179 (void) dpy; 180 (void) config; 181 (void) a; 182 (void) b; 183 return 0; 184} 185 186_X_EXPORT void * 187glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c) 188{ 189 (void) dpy; 190 (void) a; 191 (void) b; 192 (void) c; 193 return NULL; 194} 195 196_X_EXPORT GLXPixmap 197glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p) 198{ 199 (void) dpy; 200 (void) config; 201 (void) p; 202 return None; 203} 204 205_X_EXPORT GLXContext 206glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a, 207 GLXContext b, Bool c) 208{ 209 (void) dpy; 210 (void) config; 211 (void) a; 212 (void) b; 213 (void) c; 214 return NULL; 215} 216 217_X_EXPORT XVisualInfo * 218glXGetVisualFromFBConfigSGIX(Display * dpy, void *config) 219{ 220 (void) dpy; 221 (void) config; 222 return NULL; 223} 224 225_X_EXPORT void * 226glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo) 227{ 228 (void) dpy; 229 (void) visinfo; 230 return NULL; 231} 232#endif 233