eglQuerySurface - return EGL surface information
EGLBoolean eglQuerySurface(EGLDisplay display,
EGLSurface surface,
EGLint attribute,
EGLint * value)displaySpecifies the EGL display connection.
surfaceSpecifies the EGL surface to query.
attributeSpecifies the EGL surface attribute to be returned.
valueReturns the requested value.
eglQuerySurface returns in value the value of attribute for surface. attribute can be one of the following:
EGL_CONFIG_IDReturns the ID of the EGL frame buffer configuration with respect to which the surface was created.
EGL_WIDTHReturns the width of the surface in pixels.
EGL_HEIGHTReturns the height of the surface in pixels.
EGL_LARGEST_PBUFFERReturns the same attribute value specified when the surface was created with eglCreatePbufferSurface. For a window or pixmap surface, value is not modified.
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_SURFACE is generated if surface is not an EGL surface.
EGL_BAD_ATTRIBUTE is generated if attribute is not a valid surface 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/.
eglCreatePbufferSurface, eglCreatePixmapSurface, eglCreateWindowSurface