How do I split a texture into differently shaped pieces with libgdx?

Posted by VictorB on Game Development See other posts from Game Development or by VictorB
Published on 2014-04-08T14:59:57Z Indexed on 2014/06/08 9:42 UTC
Read the original article Hit count: 133

Filed under:
|
|

I want to split a texture into variously shaped pieces with libgdx, like the pieces of a puzzle game. TextureRegion.split() is not an option, as it splits into equally sized rectangular texture regions.

The "Similar Questions" section here is helpful (particularly this question How do I break an image into 6 or 8 pieces of different shapes?), but I'm not sure yet if it's possible to implement the solution with libgdx.

Any pointers?

© Game Development or respective owner

Related posts about java

Related posts about textures