libgdx - Masking areas in OpenGl -
I have a libdgx game that I'm working on. I have found a progress bar and need to fill it in from inside. If this was a square progress bar then it would be easy - but my graphics people want to round the round. Example below
to fill the progress bar with me There is a 1px wide texture that I spread to the required width. Is there a way I can use a mask in OpenLink so that when I make the texture to fill the progress bar, it only fills within the blue line.
Thank you.
You can use Libgdx to render a texture with fixed size corners and a "stretch" Android can use navepath textures.
Comments
Post a Comment