I am having a dilemma right now. I am making a GUI system for my game, and all GUI need some kind of text. Some things might be able to have a static text, but others need dynamic text. So, I just use libGdx’s built-in BitmapFont. My problem now is that I want to use only one Pixmap for all of my GUI components/widgets. So I got rid of my widgets draw function, because they don’t need to update every second. But now the BitmapFont won’t work, because I don’t know how to draw text to them. I see two options right now:
- Bring back the draw function.
- Make my own texture holding the alphabet and make my own renderer.
I’m leaning toward option 2, but if there is a better way, I would rather not draw 26 characters (All caps). What do you suggest I do?