Destroys a GLX pbuffer.
OpenGL C bindings library: libGL.a
void glXDestroyPbuffer(Display *dpy,
GLXPbuffer Pbuffer)
If GLX pbuffer Pbuffer is not current to any client, the glXDestroyPbuffer subroutine destroys it immediately. Otherwise, Pbuffer is destroyed when it is no longer current to any client. In either case, the resource ID is freed immediately.
dpy | Specifies the connection to the X server. |
Pbuffer | Specifies the GLX pbuffer to be destroyed. |
GLXBadPbuffer | Is generated if Pbuffer is not a valid GLX pbuffer. |
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
/usr/include/GL/glx.h | Contains C language constants, variable type definitions, and ANSI function prototypes for GLX. |
The glXCreatePbuffer subroutine, glXMakeContextCurrent subroutine.