EGL_KHR_gl_texture_cubemap_image#

Supported Hardware#

Series5, Series5XT, Series6, Series6XE, Series6XT

Valid APIs#

EGL 1.2, 1.3, 1.4

Description#

This extension extends EGL_KHR_image_base and enables EGLImages to be created from a source texture from OpenGL. This particular extension string denotes that an EGLImage can be created from a cubemap texture. This extension is also required to create an OpenGL texture from an EGLImage when GL_KHR_image is supported in the implementation.

Note#

This functionality is core to EGL 1.5, so the extension is no longer needed.

Example#

// Attributes that tell the CreateImage command to use the first level of the texture
// (NB: This is the default and doesn't actually need to be specified, it's just for
// illustration.)
EGLint imageAttributes[] =
{
    EGL_GL_TEXTURE_LEVEL,   0,
    EGL_NONE
};
// Create an EGLImageKHR from an OpenGL ES Cubemap Texture. The target in this case specifies
// that the image is created from the positive X face of the cubemap, as EGLImages are 2D only.
EGLImageKHR eglImage = eglCreateImageKHR(eglDisplay, eglOpenGLESContext, EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR , (EGLClientBuffer)anOpenGLCubeMap, imageAttributes);