talos icon indicating copy to clipboard operation
talos copied to clipboard

Wiki update request - Procedural texture atlas

Open yuripourre opened this issue 3 years ago • 0 comments

Is also possible to create a Texture Atlas dynamically, may be worth mentioning that in the wiki.

TextureAtlas textureAtlas = new TextureAtlas();
Texture fire = new Texture("assets/fire.png");
textureAtlas.addRegion("fire", new TextureRegion(fire));

Texture spot = new Texture("assets/spot.png");
textureAtlas.addRegion("spot", new TextureRegion(spot));

yuripourre avatar May 07 '22 02:05 yuripourre