public class AWTTextureIO extends TextureIO
| Constructor and Description |
|---|
AWTTextureIO() |
| Modifier and Type | Method and Description |
|---|---|
static Texture |
newTexture(GLProfile glp,
BufferedImage image,
boolean mipmap)
Creates an OpenGL texture object from the specified BufferedImage
using the current OpenGL context.
|
static TextureData |
newTextureData(GLProfile glp,
BufferedImage image,
boolean mipmap)
Creates a TextureData from the given BufferedImage.
|
static TextureData |
newTextureData(GLProfile glp,
BufferedImage image,
int internalFormat,
int pixelFormat,
boolean mipmap)
Creates a TextureData from the given BufferedImage, using the
specified OpenGL internal format and pixel format for the texture
which will eventually result.
|
addTextureProvider, addTextureWriter, isTexRectEnabled, newTexture, newTexture, newTexture, newTexture, newTexture, newTexture, newTextureData, newTextureData, newTextureData, newTextureData, newTextureData, newTextureData, setTexRectEnabled, write, writepublic static TextureData newTextureData(GLProfile glp, BufferedImage image, boolean mipmap)
glp - the OpenGL Profile this texture data should be
created for.image - the BufferedImage containing the texture datamipmap - whether mipmaps should be produced for this
texture by autogenerating themnewTextureData(GLProfile, BufferedImage, boolean)public static TextureData newTextureData(GLProfile glp, BufferedImage image, int internalFormat, int pixelFormat, boolean mipmap) throws IllegalArgumentException
glp - the OpenGL Profile this texture data should be
created for.image - the BufferedImage containing the texture datainternalFormat - the OpenGL internal format of the texture
which will eventually result from the TextureDatapixelFormat - the OpenGL pixel format of the texture
which will eventually result from the TextureDatamipmap - whether mipmaps should be produced for this
texture either by autogenerating them or
reading them from the file. Some file formats
support multiple mipmaps in a single file in
which case those mipmaps will be used rather
than generating them.IllegalArgumentException - if either internalFormat or
pixelFormat was 0public static Texture newTexture(GLProfile glp, BufferedImage image, boolean mipmap) throws GLException
glp - the OpenGL Profile this texture data should be
created for.image - the BufferedImage from which to read the texture datamipmap - whether mipmaps should be produced for this
texture by autogenerating themGLException - if no OpenGL context is current or if an
OpenGL error occurredCopyright 2010 JogAmp Community.