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

glXDestroyContext Subroutine

Purpose

Destroys a GLX context.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glXDestroyContext(Display *dpy,
                       GLXContext Context)

Description

If the Context parameter is not current to any thread, the glXDestroyContext subroutine destroys it immediately. If Context is current, the glXDestroyContext subroutine destroys it when it becomes not current to any thread. In either case, the resource ID referenced by Context is freed immediately.

Parameters

dpy Specifies the connection to the X server.
Context Specifies the GLX context to be destroyed.

Error Codes

GLXBadContext Is generated if Context is not a valid GLX context.

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 glXCreateContext subroutine, glXMakeCurrent subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.


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