public class FloatTextureData extends Object implements TextureData
TextureData
implementation which should be used to create float textures.TextureData.TextureDataType
Constructor and Description |
---|
FloatTextureData(int w,
int h) |
Modifier and Type | Method and Description |
---|---|
void |
consumeCustomData(int target)
Uploads the pixel data to the OpenGL ES texture.
|
Pixmap |
consumePixmap()
Returns the
Pixmap for upload by Texture. |
boolean |
disposePixmap() |
Pixmap.Format |
getFormat() |
int |
getHeight() |
TextureData.TextureDataType |
getType() |
int |
getWidth() |
boolean |
isManaged() |
boolean |
isPrepared() |
void |
prepare()
Prepares the TextureData for a call to
TextureData.consumePixmap() or TextureData.consumeCustomData(int) . |
boolean |
useMipMaps() |
public TextureData.TextureDataType getType()
getType
in interface TextureData
TextureData.TextureDataType
public boolean isPrepared()
isPrepared
in interface TextureData
public void prepare()
TextureData
TextureData.consumePixmap()
or TextureData.consumeCustomData(int)
. This method can be
called from a non OpenGL thread and should thus not interact with OpenGL.prepare
in interface TextureData
public void consumeCustomData(int target)
TextureData
TextureData.prepare()
must preceed a call to this method. Any internal data structures created in TextureData.prepare()
.consumeCustomData
in interface TextureData
public Pixmap consumePixmap()
TextureData
Pixmap
for upload by Texture. A call to TextureData.prepare()
must precede a call to this method. Any
internal data structures created in TextureData.prepare()
should be disposed of here.consumePixmap
in interface TextureData
public boolean disposePixmap()
disposePixmap
in interface TextureData
TextureData.consumePixmap()
should dispose the Pixmap returned by TextureData.consumePixmap()
public int getWidth()
getWidth
in interface TextureData
public int getHeight()
getHeight
in interface TextureData
public Pixmap.Format getFormat()
getFormat
in interface TextureData
Pixmap.Format
of the pixel datapublic boolean useMipMaps()
useMipMaps
in interface TextureData
public boolean isManaged()
isManaged
in interface TextureData
Copyright © 2014. All Rights Reserved.