I would like to have a standard android View (such as Button), and render its graphics onto a texture. I can create a bitmap, create a canvas for the bitmap, and have the view draw onto the bitmap through the canvas. Then, I can take the bitmap and turn it into a texture. This works fine. However I am having difficulties with updating that texture later (button was pressed, text changed, etc). Of course I cannot create a new texture each time it changes.
I thought the solution was to change the render target of the framebuffer to the texture, and then blit the bitmap onto it. However, this doesn't seem to work.
I think the problem is that I am using OpenGL ES 1.0. What is the minimum version of OpenGL ES I need to do this? What is the optimum way of doing this? One framebuffer per texture? Or one framebuffer that gets passed around? The javadoc says that blit(int[]) is slow, is there an alternative without having to create a new texture every time the android view changes?