我使用OpenGL来完成所有的绘图,因为它提供了最好的性能。然而,有几个地方,我需要渲染到纹理,然后使用纹理。安卓平台支持OpenGLES1.0,但似乎忽略了处理框架缓冲区的关键功能。我无法找到将纹理绑定到框架缓冲区并使用OpenGL绘制它的方法。下面是我通常在iPhone上做的事情:
// generate a secondary framebuffer and bind it to OpenGL so we don't mess with existi
buffer couldn't be constructed: unsupported combination of formatsat com.badlogic.gdx.graphics.glutils.FrameBuffer.<init>(FrameBuffer.java:116)
at com.badlogic.gdx.graphics.gl