| 1 | // GLX Functions implemented by primus |
| 2 | DEF_GLX_PROTO(GLXContext, glXCreateContext, (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct)) |
| 3 | DEF_GLX_PROTO(GLXContext, glXCreateNewContext, (Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, Bool direct)) |
| 4 | DEF_GLX_PROTO(void, glXDestroyContext, (Display *dpy, GLXContext ctx)) |
| 5 | DEF_GLX_PROTO(Bool, glXMakeCurrent, (Display *dpy, GLXDrawable drawable, GLXContext ctx)) |
| 6 | DEF_GLX_PROTO(Bool, glXMakeContextCurrent,(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)) |
| 7 | DEF_GLX_PROTO(void, glXSwapBuffers, (Display *dpy, GLXDrawable drawable)) |
| 8 | |
| 9 | DEF_GLX_PROTO(__GLXextFuncPtr, glXGetProcAddressARB, (const GLubyte *)) |
| 10 | DEF_GLX_PROTO(__GLXextFuncPtr, glXGetProcAddress, (const GLubyte *)) |
| 11 | |
| 12 | DEF_GLX_PROTO(const char*, glXGetClientString, (Display *dpy, int name),name) |
| 13 | DEF_GLX_PROTO(const char*, glXQueryExtensionsString, (Display *dpy, int screen),screen) |
| 14 | |
| 15 | DEF_GLX_PROTO(GLXWindow, glXCreateWindow, (Display *dpy, GLXFBConfig config, Window win, const int *attribList),config,win,attribList) |
| 16 | DEF_GLX_PROTO(void, glXDestroyWindow, (Display *dpy, GLXWindow window),window) |
| 17 | DEF_GLX_PROTO(GLXPbuffer, glXCreatePbuffer, (Display *dpy, GLXFBConfig config, const int *attribList),config,attribList) |
| 18 | DEF_GLX_PROTO(void, glXDestroyPbuffer, (Display *dpy, GLXPbuffer pbuf),pbuf) |
| 19 | DEF_GLX_PROTO(GLXPixmap, glXCreatePixmap, (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attribList),config,pixmap,attribList) |
| 20 | DEF_GLX_PROTO(void, glXDestroyPixmap, (Display *dpy, GLXPixmap pixmap),pixmap) |
| 21 | DEF_GLX_PROTO(GLXPixmap, glXCreateGLXPixmap, (Display *dpy, XVisualInfo *visual, Pixmap pixmap),visual,pixmap) |
| 22 | DEF_GLX_PROTO(void, glXDestroyGLXPixmap, (Display *dpy, GLXPixmap pixmap),pixmap) |
| 23 | DEF_GLX_PROTO(XVisualInfo*, glXGetVisualFromFBConfig, (Display *dpy, GLXFBConfig config),config) |
| 24 | DEF_GLX_PROTO(int, glXGetFBConfigAttrib, (Display *dpy, GLXFBConfig config, int attribute, int *value),config,attribute,value) |
| 25 | DEF_GLX_PROTO(void, glXQueryDrawable, (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value),draw,attribute,value) |
| 26 | |
| 27 | DEF_GLX_PROTO(XVisualInfo*, glXChooseVisual, (Display *dpy, int screen, int *attribList),screen,attribList) |
| 28 | DEF_GLX_PROTO(int, glXGetConfig, (Display *dpy, XVisualInfo *visual, int attrib, int *value),visual,attrib,value) |
| 29 | |
| 30 | DEF_GLX_PROTO(void, glXUseXFont, (Font font, int first, int count, int list)) |
| 31 | DEF_GLX_PROTO(GLXContext, glXGetCurrentContext, (void)) |
| 32 | DEF_GLX_PROTO(GLXDrawable, glXGetCurrentDrawable, (void)) |
| 33 | DEF_GLX_PROTO(void, glXWaitGL, (void)) |
| 34 | DEF_GLX_PROTO(void, glXWaitX, (void)) |
| 35 | DEF_GLX_PROTO(Display*, glXGetCurrentDisplay, (void)) |
| 36 | DEF_GLX_PROTO(GLXDrawable, glXGetCurrentReadDrawable,(void)) |