|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.opengl.TextureLoader
public class TextureLoader
A utility class to wrap the Slick internal texture loader and present a rational interface.
Constructor Summary | |
---|---|
TextureLoader()
|
Method Summary | |
---|---|
static Texture |
getTexture(java.lang.String format,
java.io.InputStream in)
Load a texture with a given format from the supplied input stream |
static Texture |
getTexture(java.lang.String format,
java.io.InputStream in,
boolean flipped)
Load a texture with a given format from the supplied input stream |
static Texture |
getTexture(java.lang.String format,
java.io.InputStream in,
boolean flipped,
int filter)
Load a texture with a given format from the supplied input stream |
static Texture |
getTexture(java.lang.String format,
java.io.InputStream in,
int filter)
Load a texture with a given format from the supplied input stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextureLoader()
Method Detail |
---|
public static Texture getTexture(java.lang.String format, java.io.InputStream in) throws java.io.IOException
format
- The format of the texture to be loaded (something like "PNG" or "TGA")in
- The input stream from which the image data will be read
java.io.IOException
- Indicates a failure to read the image datapublic static Texture getTexture(java.lang.String format, java.io.InputStream in, boolean flipped) throws java.io.IOException
format
- The format of the texture to be loaded (something like "PNG" or "TGA")in
- The input stream from which the image data will be readflipped
- True if the image should be flipped vertically on loading
java.io.IOException
- Indicates a failure to read the image datapublic static Texture getTexture(java.lang.String format, java.io.InputStream in, int filter) throws java.io.IOException
format
- The format of the texture to be loaded (something like "PNG" or "TGA")in
- The input stream from which the image data will be readfilter
- The GL texture filter to use for scaling up and down
java.io.IOException
- Indicates a failure to read the image datapublic static Texture getTexture(java.lang.String format, java.io.InputStream in, boolean flipped, int filter) throws java.io.IOException
format
- The format of the texture to be loaded (something like "PNG" or "TGA")in
- The input stream from which the image data will be readflipped
- True if the image should be flipped vertically on loadingfilter
- The GL texture filter to use for scaling up and down
java.io.IOException
- Indicates a failure to read the image data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |