public class AWTTextureData extends TextureData
TextureData.ColorSpace, TextureData.Flusher
Constructor and Description |
---|
AWTTextureData(GLProfile glp,
int internalFormat,
int pixelFormat,
boolean mipmap,
BufferedImage image)
Constructs a new TextureData object with the specified parameters
and data contained in the given BufferedImage.
|
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer()
Returns the texture data, or null if it is specified as a set of mipmaps.
|
GLPixelBuffer.GLPixelAttributes |
getPixelAttributes()
Returns the intended OpenGL
GLPixelBuffer.GLPixelAttributes of the texture data, i.e. |
int |
getPixelFormat()
Returns the intended OpenGL pixel format of the texture data using
TextureData.getPixelAttributes() . |
int |
getPixelType()
Returns the intended OpenGL pixel type of the texture data using
TextureData.getPixelAttributes() . |
destroy, flush, getAlignment, getBorder, getColorSpace, getEstimatedMemorySize, getGLProfile, getHeight, getInternalFormat, getMipmap, getMipmapData, getMustFlipVertically, getRowLength, getWidth, isDataCompressed, setAlignment, setBorder, setBuffer, setColorSpace, setHaveEXTABGR, setHaveGL12, setHeight, setInternalFormat, setIsDataCompressed, setMipmap, setMustFlipVertically, setPixelAttributes, setPixelFormat, setPixelType, setRowLength, setWidth, toString
public AWTTextureData(GLProfile glp, int internalFormat, int pixelFormat, boolean mipmap, BufferedImage image)
glp
- the OpenGL Profile this texture data should be
created for.internalFormat
- the OpenGL internal format for the
resulting texture; may be 0, in which case
it is inferred from the image's typepixelFormat
- the OpenGL internal format for the
resulting texture; may be 0, in which case
it is inferred from the image's type (note:
this argument is currently always ignored)mipmap
- indicates whether mipmaps should be
autogenerated (using GLU) for the resulting
textureimage
- the image containing the texture datapublic GLPixelBuffer.GLPixelAttributes getPixelAttributes()
TextureData
GLPixelBuffer.GLPixelAttributes
of the texture data, i.e. format and type.getPixelAttributes
in class TextureData
public int getPixelFormat()
TextureData
TextureData.getPixelAttributes()
.getPixelFormat
in class TextureData
public int getPixelType()
TextureData
TextureData.getPixelAttributes()
.getPixelType
in class TextureData
public Buffer getBuffer()
TextureData
getBuffer
in class TextureData
Copyright 2010 JogAmp Community.