All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.slick2d.render.image.loader.SlickRenderImageLoader Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.slick2d.render.image.loader;

import de.lessvoid.nifty.slick2d.loaders.SlickLoader;
import de.lessvoid.nifty.slick2d.render.image.SlickLoadImageException;
import de.lessvoid.nifty.slick2d.render.image.SlickRenderImage;

import javax.annotation.Nonnull;

/**
 * This interface defines a image loader that loads a image to be used by Nifty.
 *
 * @author Martin Karing <[email protected]>
 */
public interface SlickRenderImageLoader extends SlickLoader {
  /**
   * Load a image that is defined by the filename.
   *
   * @param filename     the name of the file to load
   * @param filterLinear {@code true} in case the image is supposed to be filtered linear
   * @return the loaded image
   * @throws SlickLoadImageException in case loading the image fails
   */
  @Nonnull
  SlickRenderImage loadImage(String filename, boolean filterLinear) throws SlickLoadImageException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy