public class TLcdEarthTextureData extends Object
glTexImage2D()
). A TLcdEarthTextureData
contains the following data:
glTexImage2D()
, e.g.
GL_RGB8
or GL_RGBA8
.glTexImage2D()
, e.g.
GL_RGB
or GL_RGBA
.glTexImage2D()
, e.g.
GL_UNSIGNED_BYTE
or GL_FLOAT
.glCompressedTexImage2D()
rather than
glTexImage2D()
;Constructor and Description |
---|
TLcdEarthTextureData(int aInternalFormat,
int aWidth,
int aHeight,
int aBorder,
int aPixelFormat,
int aPixelType,
boolean aIsCompressed,
boolean aMustFlipVertically,
Buffer aBuffer)
Creates a new texture data object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getBorder()
Returns the border width of the texture (or zero if the texture has no
border).
|
Buffer |
getBuffer()
Returns the buffer containing the texture's pixel data.
|
int |
getHeight()
Returns the height of the texture.
|
int |
getInternalFormat()
Returns the internal format of the texture.
|
int |
getPixelFormat()
Returns the pixel format of the texture.
|
int |
getPixelType()
Returns the pixel type of the texture.
|
int |
getWidth()
Returns the width of the texture.
|
boolean |
isDataCompressed()
Returns true if the texture data is in a compressed format.
|
boolean |
isMustFlipVertically()
Returns true if the texture data is flipped vertically.
|
public static final int GL_ALPHA
public static final int GL_DEPTH_COMPONENT
public static final int GL_LUMINANCE
public static final int GL_LUMINANCE_ALPHA
public static final int GL_INTENSITY
public static final int GL_RGB
public static final int GL_RGBA
public static final int GL_ALPHA4
public static final int GL_ALPHA8
public static final int GL_ALPHA12
public static final int GL_ALPHA16
public static final int GL_DEPTH_COMPONENT16
public static final int GL_DEPTH_COMPONENT24
public static final int GL_DEPTH_COMPONENT32
public static final int GL_LUMINANCE4
public static final int GL_LUMINANCE8
public static final int GL_LUMINANCE12
public static final int GL_LUMINANCE16
public static final int GL_LUMINANCE4_ALPHA4
public static final int GL_LUMINANCE6_ALPHA2
public static final int GL_LUMINANCE8_ALPHA8
public static final int GL_LUMINANCE12_ALPHA4
public static final int GL_LUMINANCE12_ALPHA12
public static final int GL_LUMINANCE16_ALPHA16
public static final int GL_INTENSITY4
public static final int GL_INTENSITY8
public static final int GL_INTENSITY12
public static final int GL_INTENSITY16
public static final int GL_R3_G3_B2
public static final int GL_RGB4
public static final int GL_RGB5
public static final int GL_RGB8
public static final int GL_RGB10
public static final int GL_RGB12
public static final int GL_RGB16
public static final int GL_RGBA2
public static final int GL_RGBA4
public static final int GL_RGB5_A1
public static final int GL_RGBA8
public static final int GL_RGB10_A2
public static final int GL_RGBA12
public static final int GL_RGBA16
public static final int GL_BGR
public static final int GL_BGRA
public static final int GL_COMPRESSED_ALPHA
public static final int GL_COMPRESSED_LUMINANCE
public static final int GL_COMPRESSED_LUMINANCE_ALPHA
public static final int GL_COMPRESSED_INTENSITY
public static final int GL_COMPRESSED_RGB
public static final int GL_COMPRESSED_RGBA
public static final int GL_COMPRESSED_RGB_S3TC_DXT1_EXT
public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
public static final int GL_BYTE
public static final int GL_UNSIGNED_BYTE
public static final int GL_SHORT
public static final int GL_UNSIGNED_SHORT
public static final int GL_INT
public static final int GL_UNSIGNED_INT
public static final int GL_FLOAT
public static final int GL_DOUBLE
public TLcdEarthTextureData(int aInternalFormat, int aWidth, int aHeight, int aBorder, int aPixelFormat, int aPixelType, boolean aIsCompressed, boolean aMustFlipVertically, Buffer aBuffer)
aInternalFormat
- the internal formataWidth
- the width of the imageaHeight
- the height of the imageaBorder
- the border width of the image (or zero if the image has no border)aPixelFormat
- the pixel format of the texture dataaPixelType
- the type of the texture dataaIsCompressed
- true if the texture data is compressedaMustFlipVertically
- true if the texture data is flipped verticallyaBuffer
- a buffer containing the pixel datapublic int getWidth()
public int getHeight()
public int getBorder()
public int getPixelFormat()
public int getPixelType()
public int getInternalFormat()
public boolean isDataCompressed()
public boolean isMustFlipVertically()
public Buffer getBuffer()