[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 for AIX: Reference Manual

glXDestroyPbuffer Subroutine

Purpose

Destroys a GLX pbuffer.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glXDestroyPbuffer(Display *dpy,

                       GLXPbuffer Pbuffer)

Description

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.

Parameters

dpy Specifies the connection to the X server.
Pbuffer Specifies the GLX pbuffer to be destroyed.

Error Codes

GLXBadPbuffer Is generated if Pbuffer is not a valid GLX pbuffer.

Files

/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.

Related Information

The glXCreatePbuffer subroutine, glXMakeContextCurrent subroutine.

OpenGL Overview.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]