PDA

View Full Version : What's mean of EGL_GL_TEXTURE_2D in EGLImage extension



eternal
11-30-2009, 01:20 AM
When I read the KHR_gl_texture_2D_image extesion spec, I found the following words,
"If <target> is EGL_GL_TEXTURE_2D_KHR, <buffer> must be the name of a nonzero, EGL_GL_TEXTURE_2D target texture object, cast into the type EGLClientBuffer."
I cann't find the definition of EGL_GL_TEXTURE_2D in spec of EGL and GLES. What's mean? Or it means GL_TEXTURE_2D ?

jpilon
11-30-2009, 06:11 PM
I think EGL is just prefixed to the token, since it's an EGL extension and not an GLES extension.

So for example you can use tex_obj as your target in the eglCreateImage():

GenTextures(1, tex_obj);

Xmas
12-01-2009, 03:10 AM
EGL_GL_TEXTURE_2D_KHR is defined in EGL_KHR_gl_image (http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_gl_image.txt).

eternal
12-01-2009, 07:25 PM
I think EGL is just prefixed to the token, since it's an EGL extension and not an GLES extension.

So for example you can use tex_obj as your target in the eglCreateImage():

GenTextures(1, tex_obj);

I do think so! But I can't confirm it from description of the spec.

eternal
12-01-2009, 07:30 PM
EGL_GL_TEXTURE_2D_KHR is defined in EGL_KHR_gl_image (http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_gl_image.txt).

It's just that my question comes from.
In this extesion, it defines an EGL_GL_TEXTURE_2D_KHR for the parameter of eglCreateImageKHR. And when the <targe> is EGL_GL_TEXTURE_2D_KHR, it require the <buffer> parameter is the name of a EGL_GL_TEXTURE_2D target texture object. I want to know what is an EGL_GL_TEXTURE_2D texture object.

Xmas
12-02-2009, 03:27 AM
Seems like a typo. That should be GL_TEXTURE_2D.