trans = new int[3];
trans[0] = (int) (transparent.r * 255);
trans[1] = (int) (transparent.g * 255);
trans[2] = (int) (transparent.b * 255);
}
InternalTextureLoader loader = InternalTextureLoader.get();
if(loader==null){
throw new SlickException("Loader is null,Failed to load image from: "+ref);
}else{
texture = loader.getTexture(ref, flipped, filter == FILTER_LINEAR ? SGL.GL_LINEAR : SGL.GL_NEAREST, trans);
}
} catch (Exception e) {
//System.out.println(e);
//Log.error(e);
throw new SlickException("Failed to load image from: "+ref);