Package textures

Class TextureMap

java.lang.Object
textures.TextureMap

public class TextureMap extends Object
  • Method Details

    • getInstance

      public static TextureMap getInstance()
    • getTexture

      public com.badlogic.gdx.graphics.Texture getTexture(String path)
      Searches the HashMap for the matching texture and returns it. If the texture is not stored in the HashMap, it is created and saved in.
      Parameters:
      path - to texture
      Returns:
      the Texture