C SPECIFICATION

       int glXGetFBConfigAttrib( Display *dpy,
                                 GLXFBConfig confi )
       int glXGetFBConfigAttrib( Display *,
                                 GLXFBConfig GLXFBConfig,
                                 int int,
                                 int * )



PARAMETERS

       Specifies the connection to the X server.

       GLXFBConfig  Specifies  the  GLX  frame  buffer  configuration  to   be
                    queried.

       int          Specifies the attribute to be returned.


       Returns the requested value.


DESCRIPTION

       glXGetFBConfigAttrib  sets   to  the int value of GLX drawables created
       with respect to GLXFBConfig.   glXGetFBConfigAttrib  returns  an  error
       code if it fails for any reason.  Otherwise, Success is returned.

       int is one of the following:


       GLX_FBCONFIG_ID       XID of the given GLXFBConfig.

       GLX_BUFFER_SIZE       Number  of  bits  per color buffer.  If the frame
                             buffer configuration supports RGBA contexts, then
                             GLX_BUFFER_SIZE   is  the  sum  of  GLX_RED_SIZE,
                             GLX_GREEN_SIZE,        GLX_BLUE_SIZE,         and
                             GLX_ALPHA_SIZE.   If  the frame buffer configura-
                             tion  supports   only   color   index   contexts,
                             GLX_BUFFER_SIZE is the size of the color indexes.

       GLX_LEVEL             Frame buffer level of the  configuration.   Level
                             zero  is the default frame buffer.  Positive lev-
                             els correspond to frame buffers that overlay  the
                             default buffer, and negative levels correspond to
                             frame buffers that underlie the default buffer.

       GLX_DOUBLEBUFFER      True if color buffers exist in  front/back  pairs
                             that can be swapped, False otherwise.

       GLX_STEREO            True  if color buffers exist in left/right pairs,
                             False otherwise.

                             ported by the frame buffer configuration.

       GLX_ALPHA_SIZE        Number of bits of  alpha  stored  in  each  color
                             buffer.   Undefined if RGBA contexts are not sup-
                             ported by the frame buffer configuration.

       GLX_DEPTH_SIZE        Number of bits in the depth buffer.

       GLX_STENCIL_SIZE      Number of bits in the stencil buffer.

       GLX_ACCUM_RED_SIZE    Number of bits of red stored in the  accumulation
                             buffer.

       GLX_ACCUM_GREEN_SIZE  Number  of  bits of green stored in the accumula-
                             tion buffer.

       GLX_ACCUM_BLUE_SIZE   Number of bits of blue stored in the accumulation
                             buffer.

       GLX_ACCUM_ALPHA_SIZE  Number  of  bits of alpha stored in the accumula-
                             tion buffer.

       GLX_RENDER_TYPE       Mask indicating what type of GLX contexts can  be
                             made  current  to the frame buffer configuration.
                             Valid     bits     are      GLX_RGBA_BIT      and
                             GLX_COLOR_INDEX_BIT.

       GLX_DRAWABLE_TYPE     Mask  indicating  what  drawable  types the frame
                             buffer configuration  supports.  Valid  bits  are
                             GLX_WINDOW_BIT,        GLX_PIXMAP_BIT,        and
                             GLX_PBUFFER_BIT.

       GLX_X_RENDERABLE      True if drawables created with the  frame  buffer
                             configuration can be rendered to by X.

       GLX_VISUAL_ID         XID of the corresponding visual, or zero if there
                             is    no    associated    visual    (i.e.,     if
                             GLX_X_RENDERABLE  is  False  or GLX_DRAWABLE_TYPE
                             does not have the GLX_WINDOW_BIT bit set.)

       GLX_X_VISUAL_TYPE     Visual type of associated  visual.  The  returned
                             value    will    be   one   of:   GLX_TRUE_COLOR,
                             GLX_DIRECT_COLOR,               GLX_PSEUDO_COLOR,
                             GLX_STATIC_COLOR,                 GLX_GRAY_SCALE,
                             GLX_STATIC_GRAY, or  GLX_NONE,  if  there  is  no
                             associated  visual  (i.e., if GLX_X_RENDERABLE is
                             False or  GLX_DRAWABLE_TYPE  does  not  have  the
                             GLX_WINDOW_BIT bit set.)

       GLX_CONFIG_CAVEAT     One     of    GLX_NONE,    GLX_SLOW_CONFIG,    or
                             GLX_NON_CONFORMANT_CONFIG,  indicating  that  the
                             frame  buffer  configuration has no caveats, some
                             buffer  value  for indices, indicating the trans-
                             parent index value for the frame buffer  configu-
                             ration.  Undefined if GLX_TRANSPARENT_TYPE is not
                             GLX_TRANSPARENT_INDEX.

       GLX_TRANSPARENT_RED_VALUE
                             Integer value between 0  and  the  maximum  frame
                             buffer  value for red, indicating the transparent
                             red value for  the  frame  buffer  configuration.
                             Undefined    if   GLX_TRANSPARENT_TYPE   is   not
                             GLX_TRANSPARENT_RGB.

       GLX_TRANSPARENT_GREEN_VALUE
                             Integer value between 0  and  the  maximum  frame
                             buffer  value for green, indicating the transpar-
                             ent green value for the frame  buffer  configura-
                             tion.   Undefined  if GLX_TRANSPARENT_TYPE is not
                             GLX_TRANSPARENT_RGB.

       GLX_TRANSPARENT_BLUE_VALUE
                             Integer value between 0  and  the  maximum  frame
                             buffer value for blue, indicating the transparent
                             blue value for the  frame  buffer  configuration.
                             Undefined    if   GLX_TRANSPARENT_TYPE   is   not
                             GLX_TRANSPARENT_RGB.

       GLX_TRANSPARENT_ALPHA_VALUE
                             Integer value between 0  and  the  maximum  frame
                             buffer  value for alpha, indicating the transpar-
                             ent blue value for the  frame  buffer  configura-
                             tion.   Undefined  if GLX_TRANSPARENT_TYPE is not
                             GLX_TRANSPARENT_RGB.

       GLX_MAX_PBUFFER_WIDTH The  maximum  width  that  can  be  specified  to
                             glCreateGLXPbuffer.

       GLX_MAX_PBUFFER_HEIGHT
                             The  maximum  height  that  can  be  specified to
                             glCreateGLXPbuffer.

       GLX_MAX_PBUFFER_PIXELS
                             The maximum number of pixels (width times height)
                             for  a  pixel buffer. Note that this value may be
                             less     than     GLX_MAX_PBUFFER_WIDTH     times
                             GLX_MAX_PBUFFER_HEIGHT.   Also,   this  value  is
                             static and assumes that no other pixel buffers or
                             X  resources  are contending for the frame buffer
                             memory.  As a result, it may not be  possible  to
                             allocate  a  pixel  buffer  of  the size given by
                             GLX_MAX_PBUFFER_PIXELS.

       Applications should choose the frame  buffer  configuration  that  most
       GLX_BAD_ATTRIBUTE is returned if int is not a valid GLX attribute.


SEE ALSO

       glXGetFBConfigs,      glXChooseFBConfig,      glXGetVisualFromFBConfig,
       glXGetConfig



                                                      GLXGETFBCONFIGATTRIB(3G)

Man(1) output converted with man2html