// Copyright (c) 2014 Orion Industries, zhiayang@gmail.com
// Licensed under the Apache License version 2.0

package Utilities

import java.util.HashMap
import com.badlogic.gdx.graphics.Texture

public object TextureManager
{
	private val textures: HashMap<String, Texture> = HashMap()
	public fun LoadTexture(path: String): Texture
	{
		return this.textures.getOrPut(path, {Utilities.createTextureFromFile(path)})
	}
}
