glcanvas
Class TextureReader

java.lang.Object
  extended by glcanvas.TextureReader

public class TextureReader
extends java.lang.Object


Constructor Summary
TextureReader()
           
 
Method Summary
static java.io.InputStream getResourceAsStream(java.lang.String filename)
           
static java.nio.ByteBuffer readData(java.awt.image.BufferedImage image, boolean alphaChannel)
           
static java.awt.image.BufferedImage readImage(java.lang.String filename)
           
static java.nio.ByteBuffer readTexture(java.lang.String filename)
           
static java.nio.ByteBuffer readTexture(java.lang.String filename, boolean alphaChannel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureReader

public TextureReader()
Method Detail

getResourceAsStream

public static java.io.InputStream getResourceAsStream(java.lang.String filename)
                                               throws java.io.IOException
Throws:
java.io.IOException

readData

public static java.nio.ByteBuffer readData(java.awt.image.BufferedImage image,
                                           boolean alphaChannel)

readImage

public static java.awt.image.BufferedImage readImage(java.lang.String filename)
                                              throws java.io.IOException
Throws:
java.io.IOException

readTexture

public static java.nio.ByteBuffer readTexture(java.lang.String filename)
                                       throws java.io.IOException
Throws:
java.io.IOException

readTexture

public static java.nio.ByteBuffer readTexture(java.lang.String filename,
                                              boolean alphaChannel)
                                       throws java.io.IOException
Throws:
java.io.IOException