Results 1 to 6 of 6

Thread: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    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 ?

  2. #2
    Senior Member
    Join Date
    May 2008
    Posts
    104

    Re: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    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);

  3. #3
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    EGL_GL_TEXTURE_2D_KHR is defined in EGL_KHR_gl_image.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    Re: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    Quote Originally Posted by jpilon
    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.

  5. #5
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    Re: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    Quote Originally Posted by Xmas
    EGL_GL_TEXTURE_2D_KHR is defined in EGL_KHR_gl_image.
    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.

  6. #6
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: What's mean of EGL_GL_TEXTURE_2D in EGLImage extension

    Seems like a typo. That should be GL_TEXTURE_2D.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. EGLImage on Android NDK
    By smiyax73 in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 01-20-2013, 12:09 PM
  2. EGLImage Extensions
    By niallm in forum Cross API and window system integration
    Replies: 1
    Last Post: 06-15-2009, 08:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •