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

glXGetVisualFromFBConfig Subroutine

Purpose

Returns XVisualInfo structure for the X visual associated with a specified GLX FBConfig.

Library

OpenGL C bindings library: libGL.a

C Syntax

XVisualInfo *glXGetVisualFromFBConfig(Display *dpy

                                      GLXFBConfig config)

Description

The glXGetVisualFromFBConfig subroutine returns an XVisualInfo structure for the X visual associated with a specified GLX FBConfig, if one exists. If the GLX FBConfig does not have an associated X visual or if an error occurs (due to an invalid GLX FBConfig) then NULL is returned.

The data in the returned XVisualInfo structure can be used to create X drawables that will be be needed to create GLX drawables. Use XFree to free the returned data.

Parameters

dpy Specifies the connection to the X server.
config Specifies the GLX FBConfig to be used.

Notes

XVisualInfo is defined in the Xutil.h file. It is a structure that includes Visual, VisualID, Screen, and Depth elements.

Return Values

NULL is returned if config does not have an associated X visual or if config is not a valid GLX FBConfig.

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 glXChooseFBConfig subroutine, the glXGetFBConfigs subroutine and the glXGetFBConfigAttrib subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.


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