
OpenGL Programming Guide
Appendix DThe OpenGL Extension to the X Window System
GLX Prototypes
Controlling Rendering
Manage or query an OpenGL rendering context:
- GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
void glXDestroyContext (Display *dpy, GLXContext ctx);
void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLuint mask);
Bool glXIsDirect (Display *dpy, GLXContext ctx);
Bool glXMakeCurrent (Display *dpy, GLXDrawable draw, GLXContext ctx);
GLXContext glXGetCurrentContext (void);
GLXDrawable glXGetCurrentDrawable (void);
Perform off-screen rendering:
- GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
Synchronize execution:
- void glXWaitGL (void);
void glXWaitX (void);
Exchange front and back buffers:
- void glXSwapBuffers (Display *dpy, Window window);
Use an X font:
- void glXUseXFont (Font font, int first, int count, int listBase);
OpenGL Programming Guide
Maintained by Maintainer: Send e-mail to .htm">name@address.