opengl.common
Class TextureReader
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextureReader
public TextureReader()
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