public static TextureData loadTextureDataFromFile(String path) {
//		URL url = ResourceLoader.class.getResource(path);
		File file = new File(path);
		if (!file.canRead())
			return null;

		TextureData texData = null;
		if (path.contains(".jpg")) {
			try {
				texData = TextureIO.newTextureData(file, false, TextureIO.JPG);
			} catch (GLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} else if (path.contains(".png")) {
			try {
				texData = TextureIO.newTextureData(file, false, TextureIO.PNG);
			} catch (GLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return texData;
	}