public LwjglRenderImage(final String name, final boolean filterParam) {
try {
log.fine("loading image: " + name);
ImageData imageLoader;
if (name.endsWith(".tga")) {
imageLoader = new TGAImageData();
} else {
imageLoader = new ImageIOImageData();
}
ByteBuffer imageData = imageLoader.loadImage(ResourceLoader.getResourceAsStream(name));
imageData.rewind();