public static Texture loadTexture(String ref) {
		Texture tex = table.get(ref);

		if (tex != null) {
			return tex;
		}
		
		try {
			tex = TextureLoader.getTexture("PNG",
					ResourceLoader.getResourceAsStream(System.getProperty("resources") + "/textures/" + ref));
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		table.put(ref, tex);
		
		return table.get(ref);
	}