How to fill region with repeated texture? Now I'm using next method:
spriteBatch.begin();
final int tWidth = texture.getWidth();
final int tHeight = texture.getHeight();
for (int i = 0; i < regionWidth / tWidth; i++) {
for (int k = 0; k < regionHeight / tHeight; k++) {
spriteBatch.draw(texture, i*tWidth, k);
}
}
spriteBatch.end();
It's very obvious. Maybe is there any built in method?
