The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Mipmap level for a render target

Hello all,

I am a newbie in EGL and English.
What is "mipmap level of eglSurfaceAttrib in EGL?
I can't find any description of this parameter in the specification.
So I tried to find about mipmap level and then I found FrameBuffer Object(FBO) at the GLES Extension spec.

Is the mipmap level described in FrameBuffer Object same with the mipmap level described in eglSurfaceAttrib of EGL?
So When it does, it is necessary to specify the mipmap level which is specified by eglSurfaceAttrib for a render target in eglMakeCurrent?

Re: Mipmap level for a render target

Originally Posted by EGL 1.2 Specification

For OpenGL ES mipmap textures, the EGL_MIPMAP_LEVEL attribute indicates which level of the mipmap should be rendered. If the value of this attribute is outside the range of supported mipmap levels, the closest valid mipmap level is selected for rendering. The default value of this attribute is 0.

If you create a pbuffer with the EGL_MIPMAP_TEXTURE attribute set, you can render to each individual mipmap level. You can use eglSurfaceAttrib to change which mipmap level to render to. EGL_MIPMAP_LEVEL defaults to 0, so you only have to set it if you need to render to one of the lower mipmap levels.