opengl.common
Class TextureReader

java.lang.Object
  extended by opengl.common.TextureReader

public class TextureReader
extends java.lang.Object

Image loading class that converts BufferedImages into a data structure that can be easily passed to OpenGL.


Nested Class Summary
static class TextureReader.Texture
           
 
Constructor Summary
TextureReader()
           
 
Method Summary
static TextureReader.Texture readGrayscaleTexture(java.lang.String filename)
           
static TextureReader.Texture readTexture(java.lang.String filename)
           
static TextureReader.Texture readTexture(java.lang.String filename, boolean storeAlphaChannel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureReader

public TextureReader()
Method Detail

readTexture

public static TextureReader.Texture readTexture(java.lang.String filename)
                                         throws java.io.IOException
Throws:
java.io.IOException

readTexture

public static TextureReader.Texture readTexture(java.lang.String filename,
                                                boolean storeAlphaChannel)
                                         throws java.io.IOException
Throws:
java.io.IOException

readGrayscaleTexture

public static TextureReader.Texture readGrayscaleTexture(java.lang.String filename)
                                                  throws java.io.IOException
Throws:
java.io.IOException