TextureData implementation which should be used to create gl only textures. This TextureData fits perfectly for
FrameBuffer. The data is not managed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | mipLevel
properties of opengl texture |
| pack-priv int | |
| pack-priv int | width
width and height |
| Access | Constructor and Description |
|---|---|
| public | GLOnlyTextureData(int width, int height, int mipMapLevel, int
Specifies the internal format of the texture. Must be one of the following symbolic constants:
internalFormat, int GL20#GL_ALPHA, GL20#GL_LUMINANCE, GL20#GL_LUMINANCE_ALPHA, GL20#GL_RGB,
GL20#GL_RGBA.Specifies the format of the texel data. Must match internalformat. The following symbolic values are accepted:
format, int GL20#GL_ALPHA, GL20#GL_RGB, GL20#GL_RGBA, GL20#GL_LUMINANCE, and
GL20#GL_LUMINANCE_ALPHA.Specifies the data type of the texel data. The following symbolic values are accepted:
type)GL20#GL_UNSIGNED_BYTE, GL20#GL_UNSIGNED_SHORT_5_6_5, GL20#GL_UNSIGNED_SHORT_4_4_4_4, and
GL20#GL_UNSIGNED_SHORT_5_5_5_1.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | consumeCustomData(int target)
Implements com. Uploads the pixel data to the OpenGL ES texture. |
| public Pixmap | consumePixmap()
Implements com. Returns the |
| public boolean | |
| public Pixmap. | |
| public int | |
| public TextureData. | |
| public int | |
| public boolean | |
| public boolean | |
| public void | prepare()
Implements com. Prepares the TextureData for a call to |
| public boolean |
| format | back to summary |
|---|---|
| pack-priv int format | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| internalFormat | back to summary |
|---|---|
| pack-priv int internalFormat | |
| isPrepared | back to summary |
|---|---|
| pack-priv boolean isPrepared | |
| mipLevel | back to summary |
|---|---|
| pack-priv int mipLevel properties of opengl texture | |
| type | back to summary |
|---|---|
| pack-priv int type | |
| width | back to summary |
|---|---|
| pack-priv int width width and height | |
| GLOnlyTextureData | back to summary |
|---|---|
public GLOnlyTextureData(int width, int height, int mipMapLevel, int internalFormat, int format, int type)
| |
| consumeCustomData | back to summary |
|---|---|
| public void consumeCustomData(int target) Implements com. Doc from com. Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call to
| |
| consumePixmap | back to summary |
|---|---|
| public Pixmap consumePixmap() Implements com. Doc from com. Returns the
| |
| disposePixmap | back to summary |
|---|---|
| public boolean disposePixmap() Implements com.
| |
| getFormat | back to summary |
|---|---|
| public Pixmap. Implements com.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com.
| |
| getType | back to summary |
|---|---|
| public TextureData. Implements com.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com.
| |
| isManaged | back to summary |
|---|---|
| public boolean isManaged() Implements com.
| |
| isPrepared | back to summary |
|---|---|
| public boolean isPrepared() Implements com.
| |
| prepare | back to summary |
|---|---|
| public void prepare() Implements com. Doc from com. Prepares the TextureData for a call to
| |
| useMipMaps | back to summary |
|---|---|
| public boolean useMipMaps() Implements com.
| |