Class TextureAtlas

java.lang.Object
com.toxicrain.rainengine.texture.TextureAtlas

public class TextureAtlas extends Object
  • Constructor Details

    • TextureAtlas

      public TextureAtlas(int atlasSize)
  • Method Details

    • buildAtlas

      public void buildAtlas(String directory)
    • getRegion

      public TextureRegion getRegion(Resource resource)
    • saveAtlasAsImage

      public void saveAtlasAsImage(String filePath)
      Saves the current texture atlas to an image file.
      Parameters:
      filePath - the path to save the image.