graphics
Class TextureReader

java.lang.Object
  extended by 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

Nested Class Summary
static class TextureReader.Texture
           
 
Constructor Summary
TextureReader()
           
 
Method Summary
private static BufferedImage readImage(String resourceName)
           
private static TextureReader.Texture readPixels(BufferedImage img, boolean storeAlphaChannel)
           
static TextureReader.Texture readTexture(String filename)
           
static TextureReader.Texture readTexture(String filename, boolean storeAlphaChannel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureReader

public TextureReader()
Method Detail

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)