Hi everybody,
I would like to use FBO's on android. I know it's possible because of GLES20.glGenFrameBuffers() and the other related methods. However, I can't find GL_MAX_COLOR_ATTACHMENTS anywhere?
Do I have to define it myself? Is it contained in some other class which I need to import?
Thanks!
GL_MAX_COLOR_ATTACHMENTS definition on android?
GLES2 specification does not support writing out to multiple offscreen color targets from a pixel shader. The GL_MAX_COLOR_ATTACHMENTS state does not exist (the spec functions as if GL_MAX_COLOR_ATTACHMENTS==1). Bind the color image to the GL_COLOR_ATTACHMENT0 attachment point of the FBO. See the GLES2.0.25 spec for details.
NVidia has registered an extension GL_NV_fbo_color_attachments, which copies the desktop OpenGL feature for multiple color targets to GLES2. Both Tegra2 and Tegra3 support this extension, although I don't know what value they report for GL_MAX_COLOR_ATTACHMENTS.
NVidia has registered an extension GL_NV_fbo_color_attachments, which copies the desktop OpenGL feature for multiple color targets to GLES2. Both Tegra2 and Tegra3 support this extension, although I don't know what value they report for GL_MAX_COLOR_ATTACHMENTS.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement