how to draw custom shapes using a simple texture in libgdx?
I want to draw custom static shapes in my game just like the angry birds done: but the problem is that the texture is in square shape. how we can tell to the "SpriteBatch" to draw shapes with some vertices? does anybody has some ideas? According to the docs : A SpriteBatch is used to draw 2D rectangles that reference a texture (region) So essentially, this method does not allow you to specify any other geometry than a rectangle. However, there is a draw method that allows you to specify the four coordinates of the "rectangle" and turn it into something else. You'd've to decompose the geometry