This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TextureManager implements Disposable { | |
private ObjectMap<String, Texture> textures; | |
public TextureManager() { | |
textures = new ObjectMap<String, Texture>(); | |
} | |
public Texture getTexture(String path) { | |
Texture t = textures.get(path); | |
if(t == null) { |