Package gaiasky.util.gdx.graphics
Class BufferedImageTextureData
java.lang.Object
gaiasky.util.gdx.graphics.BufferedImageTextureData
- All Implemented Interfaces:
com.badlogic.gdx.graphics.TextureData
public class BufferedImageTextureData
extends Object
implements com.badlogic.gdx.graphics.TextureData
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.badlogic.gdx.graphics.TextureData
com.badlogic.gdx.graphics.TextureData.Factory, com.badlogic.gdx.graphics.TextureData.TextureDataType
-
Constructor Summary
ConstructorDescriptionBufferedImageTextureData
(com.badlogic.gdx.files.FileHandle file, boolean useMipMaps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeCustomData
(int target) com.badlogic.gdx.graphics.Pixmap
boolean
com.badlogic.gdx.graphics.Pixmap.Format
int
com.badlogic.gdx.graphics.TextureData.TextureDataType
getType()
int
getWidth()
boolean
boolean
void
prepare()
boolean
-
Constructor Details
-
BufferedImageTextureData
public BufferedImageTextureData(com.badlogic.gdx.files.FileHandle file, boolean useMipMaps)
-
-
Method Details
-
getType
public com.badlogic.gdx.graphics.TextureData.TextureDataType getType()- Specified by:
getType
in interfacecom.badlogic.gdx.graphics.TextureData
-
isPrepared
public boolean isPrepared()- Specified by:
isPrepared
in interfacecom.badlogic.gdx.graphics.TextureData
-
prepare
public void prepare()- Specified by:
prepare
in interfacecom.badlogic.gdx.graphics.TextureData
-
consumePixmap
public com.badlogic.gdx.graphics.Pixmap consumePixmap()- Specified by:
consumePixmap
in interfacecom.badlogic.gdx.graphics.TextureData
-
disposePixmap
public boolean disposePixmap()- Specified by:
disposePixmap
in interfacecom.badlogic.gdx.graphics.TextureData
-
consumeCustomData
public void consumeCustomData(int target) - Specified by:
consumeCustomData
in interfacecom.badlogic.gdx.graphics.TextureData
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfacecom.badlogic.gdx.graphics.TextureData
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfacecom.badlogic.gdx.graphics.TextureData
-
getFormat
public com.badlogic.gdx.graphics.Pixmap.Format getFormat()- Specified by:
getFormat
in interfacecom.badlogic.gdx.graphics.TextureData
-
useMipMaps
public boolean useMipMaps()- Specified by:
useMipMaps
in interfacecom.badlogic.gdx.graphics.TextureData
-
isManaged
public boolean isManaged()- Specified by:
isManaged
in interfacecom.badlogic.gdx.graphics.TextureData
-