Name

eglQueryContext - return EGL rendering context information

C Specification

EGLBoolean eglQueryContext(EGLDisplay display,
    EGLContext context,
    EGLint attribute,
    EGLint * value)

Parameters

display

Specifies the EGL display connection.

context

Specifies the EGL rendering context to query.

attribute

Specifies the EGL rendering context attribute to be returned.

value

Returns the requested value.

Description

eglQueryContext returns in value the value of attribute for context. attribute can be one of the following:

EGL_CONFIG_ID

Returns the ID of the EGL frame buffer configuration with respect to which the context was created.

Errors

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_CONTEXT is generated if context is not an EGL rendering context.

EGL_BAD_ATTRIBUTE is generated if attribute is not a valid context attribute.

Copyright

Copyright © 2003-2004 Silicon Graphics, Inc.

This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

See Also

eglCreateContext