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.
|
int |
getPixelType()
Returns the intended OpenGL pixel type of the texture data.
|
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, toStringpublic 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()
TextureDataGLPixelBuffer.GLPixelAttributes of the texture data, i.e. format and type.getPixelAttributes in class TextureDatapublic int getPixelFormat()
TextureDatagetPixelFormat in class TextureDatapublic int getPixelType()
TextureDatagetPixelType in class TextureDatapublic Buffer getBuffer()
TextureDatagetBuffer in class TextureDataCopyright 2010 JogAmp Community.