Wiki update request - Procedural texture atlas
Opened this issue · 0 comments
yuripourre commented
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));