Multitexturing and rendering font on a texture

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

Multitexturing and rendering font on a texture

Postby manopolist » Fri Sep 07, 2018 8:54 pm

I have a problem: I have a basic texture and want to add something to it in the code. So, how can I render multiple textures on one model? I also want to add a color at a specific point. How do I do that? And last: On the texture should be text from my BitMapFont. So how do I render a text on a texture? I tried meshBuilder and MeshParts, but it doesn't work. The Class:

Thank you for helping
Posts: 1
Joined: Fri Sep 07, 2018 8:34 pm

Re: Multitexturing and rendering font on a texture

Postby akarso » Sat Jul 13, 2019 1:25 pm

I have an implementation currently that stores each letter as it's own separate texture, usually only a couple pixels in width and height. So this has some problems as i am unable to do a batch render, i can only batch render the same characters. I am stuck with this format, all i can do is try and process it into something better at runtime. I was thinking of creating a single larger texture from all the little ones instead.

Sarkari Result Pnr Status
Posts: 2
Joined: Sat Jul 13, 2019 1:24 pm

Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 0 guests