glcanvas
Class TextureReader
java.lang.Object
glcanvas.TextureReader
public class TextureReader
- extends java.lang.Object
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 |
TextureReader
public TextureReader()
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