Path: blob/master/SLICK_HOME/src/org/newdawn/slick/opengl/LoadableImageData.java
1461 views
package org.newdawn.slick.opengl;12import java.io.IOException;3import java.io.InputStream;4import java.nio.ByteBuffer;56/**7* An image data source that can load images from a stream8*9* @author kevin10*/11public interface LoadableImageData extends ImageData {12/**13* Configure the edging that can be used to make texture edges14* loop more cleanly15*16* @param edging True if we should edge17*/18public void configureEdging(boolean edging);1920/**21* Load a image from the specified stream22*23* @param fis The stream from which we'll load the TGA24* @throws IOException Indicates a failure to read the TGA25* @return The byte buffer containing texture data26*/27public ByteBuffer loadImage(InputStream fis) throws IOException;2829/**30* Load a image from the specified stream31*32* @param fis The stream from which we'll load the TGA33* @param flipped True if we loading in flipped mode (used for cursors)34* @param transparent The colour to interpret as transparent or null if none35* @return The byte buffer containing texture data36* @throws IOException Indicates a failure to read the TGA37*/38public ByteBuffer loadImage(InputStream fis, boolean flipped, int[] transparent)39throws IOException;4041/**42* Load a image from the specified stream43*44* @param fis The stream from which we'll load the TGA45* @param flipped True if we loading in flipped mode (used for cursors)46* @param forceAlpha Force the output to have an alpha channel47* @param transparent The colour to interpret as transparent or null if none48* @return The byte buffer containing texture data49* @throws IOException Indicates a failure to read the TGA50*/51public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent)52throws IOException;53}545556