Returns XVisualInfo structure for the X visual associated with a specified GLX FBConfig.
OpenGL C bindings library: libGL.a
XVisualInfo *glXGetVisualFromFBConfig(Display *dpy
GLXFBConfig config)
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.
dpy | Specifies the connection to the X server. |
config | Specifies the GLX FBConfig to be used. |
XVisualInfo is defined in the Xutil.h file. It is a structure that includes Visual, VisualID, Screen, and Depth elements.
NULL | is returned if config does not have an associated X visual or if config is not a valid GLX FBConfig. |
/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 glXChooseFBConfig subroutine, the glXGetFBConfigs subroutine and the glXGetFBConfigAttrib subroutine.
OpenGL in the AIXwindows (GLX) Environment.