For the moment, I would recommend you to use Pixmap
s. You see, there are not many functions written for them, but apparently you can write a Pixmap
(with alpha channel) to another one (pm1.drawPixmap(pm2, srcx, srcy, w, h, ...)
), providing that you don't want to scale it (you may scale the composition later, but the proportion the pictures used in the composition won't be resized... unless you write a resizing function).
If you want to do more complex stuff (like writing a string using a BitmapFont
into a Texture
for later manipulation, or writing it into a Pixmap
and then uploading it to the video memory), then... then tell me if you succeed (as I want to go into that direction to optimize). I think that the best would be to add the needed functions to libgdx...
Anyway, don't take anything I wrote here as an undeniable truth- if I get further, I will update.
The documentation I found is somewhat limited -I'm sure you've gone through it already. There's information in the badlogic's blog and in the googlecode project page -and also there's a relatively good book written by Mario, "Beginning Android Games". Also, there are a few (very basic) videos. And don't forget that you can consult source and the beautiful examples...
Also, you can always ask in the forum: http://badlogicgames.com/forum/
UPDATE: Your answer using the FrameBuffer
and TextureRegion
is undeniably much better. I leave this one just because it mentions the documentation.