/* 273 */ if (tFile.lastIndexOf('.') != -1) {
/* */ try
/* */ {
/* 276 */ String suffix = tFile.substring(tFile.lastIndexOf('.') + 1).toLowerCase();
/* */
/* 279 */ TextureLoader t = null;
/* */
/* 281 */ if ((suffix.equals("int")) || (suffix.equals("inta")) || (suffix.equals("rgb")) || (suffix.equals("rgba")) || (suffix.equals("bw")) || (suffix.equals("sgi")))
/* */ {
/* */ RgbFile f;
/* */ RgbFile f;
/* 285 */ if (this.fromUrl)
/* 286 */ f = new RgbFile(new URL(this.basePath + tFile).openStream());
/* */ else {
/* 288 */ f = new RgbFile(new FileInputStream(this.basePath + tFile));
/* */ }
/* 290 */ BufferedImage bi = f.getImage();
/* */
/* 292 */ boolean luminance = (suffix.equals("int")) || (suffix.equals("inta"));
/* 293 */ boolean alpha = (suffix.equals("inta")) || (suffix.equals("rgba"));
/* 294 */ this.cur.transparent = alpha;
/* */
/* 296 */ String s = null;
/* 297 */ if ((luminance) && (alpha)) s = "LUM8_ALPHA8";
/* 298 */ else if (luminance) s = "LUMINANCE";
/* 299 */ else if (alpha) s = "RGBA"; else {
/* 300 */ s = "RGB";
/* */ }
/* 302 */ t = new TextureLoader(bi, s, 1);
/* */ }
/* 305 */ else if (this.fromUrl) {
/* 306 */ t = new TextureLoader(new URL(this.basePath + tFile), "RGB", 1, null);
/* */ }
/* */ else {
/* 309 */ t = new TextureLoader(this.basePath + tFile, "RGB", 1, null);
/* */ }
/* */
/* 313 */ Texture2D texture = (Texture2D)t.getTexture();
/* 314 */ if (texture != null) this.cur.t = texture;
/* */ }
/* */ catch (FileNotFoundException e)
/* */ {
/* */ }