Skip to content

Instantly share code, notes, and snippets.

View StrongJoshua's full-sized avatar

Jan Risse StrongJoshua

View GitHub Profile
@StrongJoshua
StrongJoshua / TextureManager.java
Created September 26, 2015 20:02
Resource management using LibGdx
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) {