public class AWTTextureData extends TextureData
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.
|
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, getEstimatedMemorySize, getGLProfile, getHeight, getInternalFormat, getMipmap, getMipmapData, getMustFlipVertically, getRowLength, getWidth, isDataCompressed, setAlignment, setBorder, setBuffer, setHaveEXTABGR, setHaveGL12, setHeight, setInternalFormat, setIsDataCompressed, setMipmap, setMustFlipVertically, 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 int getPixelFormat()
getPixelFormat
in class TextureData
public int getPixelType()
getPixelType
in class TextureData
public Buffer getBuffer()
getBuffer
in class TextureData
Copyright 2010 JogAmp Community.