EGL_KHR_gl_texture_2D_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 basic 2D 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.
Registry Link#
http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_gl_image.txt
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 Texture. The context which contains the OpenGL ES
// texture must be specified, as OpenGL ES is supported by an EGLContext.
EGLImageKHR eglImage = eglCreateImageKHR(eglDisplay, eglOpenGLESContext, EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer)anOpenGLTexture, imageAttributes);