eglGetConfigAttrib - return information about an EGL frame buffer configuration
EGLBoolean eglGetConfigAttrib(EGLDisplay display,
EGLConfig config,
EGLint attribute,
EGLint * value)displaySpecifies the EGL display connection.
configSpecifies the EGL frame buffer configuration to be queried.
attributeSpecifies the EGL rendering context attribute to be returned.
valueReturns the requested value.
eglGetConfigAttrib returns in value the value of attribute for config. attribute can be one of the following:
EGL_BUFFER_SIZEReturns the depth of the color buffer. It is the sum of EGL_RED_SIZE, EGL_GREEN_SIZE, EGL_BLUE_SIZE, and EGL_ALPHA_SIZE.
EGL_RED_SIZEReturns the number of bits of red stored in the color buffer.
EGL_GREEN_SIZEReturns the number of bits of green stored in the color buffer.
EGL_BLUE_SIZEReturns the number of bits of blue stored in the color buffer.
EGL_ALPHA_SIZEReturns the number of bits of alpha stored in the color buffer.
EGL_CONFIG_CAVEATReturns the caveats for the frame buffer configuration. Possible caveat values are EGL_NONE, EGL_SLOW_CONFIG, and EGL_NON_CONFORMANT.
EGL_CONFIG_IDReturns the ID of the frame buffer configuration.
EGL_DEPTH_SIZEReturns the number of bits in the depth buffer.
EGL_LEVELReturns the frame buffer level. Level zero is the default frame buffer. Positive levels correspond to frame buffers that overlay the default buffer and negative levels correspond to frame buffers that underlay the default buffer.
EGL_MAX_PBUFFER_WIDTHReturns the maximum width of a pixel buffer surface in pixels.
EGL_MAX_PBUFFER_HEIGHTReturns the maximum height of a pixel buffer surface in pixels.
EGL_MAX_PBUFFER_PIXELSReturns the maximum size of a pixel buffer surface in pixels.
EGL_NATIVE_RENDERABLEReturns EGL_TRUE if native rendering APIs can render into the surface, EGL_FALSE otherwise.
EGL_NATIVE_VISUAL_IDReturns the ID of the associated native visual.
EGL_NATIVE_VISUAL_TYPEReturns the type of the associated native visual.
EGL_PRESERVED_RESOURCESReturns EGL_TRUE if resources are preserved across power management events, EGL_FALSE otherwise.
EGL_SAMPLE_BUFFERSReturns the number of multisample buffers.
EGL_SAMPLESReturns the number of samples per pixel.
EGL_STENCIL_BITSReturns the number of bits in the stencil buffer.
EGL_SURFACE_TYPEReturns the types of supported EGL surfaces.
EGL_TRANSPARENT_TYPEReturns the type of supported transparency. Possible transparency values are: EGL_NONE, and EGL_TRANSPARENT_RGB.
EGL_TRANSPARENT_REDReturns the transparent red value.
EGL_TRANSPARENT_GREENReturns the transparent green value.
EGL_TRANSPARENT_BLUEReturns the transparent blue value.
EGL_FALSE is returned on failure, EGL_TRUE otherwise. value is not modified when EGL_FALSE is returned.
EGL_BAD_DISPLAY is generated if display is not an EGL display connection.
EGL_NOT_INITIALIZED is generated if display has not been initialized.
EGL_BAD_CONFIG is generated if config is not an EGL frame buffer configuration.
EGL_BAD_ATTRIBUTE is generated if attribute is not a valid frame buffer configuration attribute.
Copyright © 2003 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.