graphics
Class TextureReader
java.lang.Object
graphics.TextureReader
public class TextureReader
- extends Object
Image loading class that converts BufferedImages into a data
structure that can be easily passed to OpenGL.
See nehe.gamedev.net for documentation.
- Author:
- Pepijn Van Eeckhoudt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextureReader
public TextureReader()
readTexture
public static TextureReader.Texture readTexture(String filename)
throws IOException
- Throws:
IOException
readTexture
public static TextureReader.Texture readTexture(String filename,
boolean storeAlphaChannel)
throws IOException
- Throws:
IOException
readImage
private static BufferedImage readImage(String resourceName)
throws IOException
- Throws:
IOException
readPixels
private static TextureReader.Texture readPixels(BufferedImage img,
boolean storeAlphaChannel)