Package gaiasky.util.gdx.graphics
Class ShortTextureData
java.lang.Object
gaiasky.util.gdx.graphics.ShortTextureData
- All Implemented Interfaces:
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
ConstructorDescriptionShortTextureData
(int w, int h, int internalFormat, int format, int type, boolean useMipMaps, boolean isGpuOnly) -
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
-
ShortTextureData
public ShortTextureData(int w, int h, int internalFormat, int format, int type, boolean useMipMaps, boolean isGpuOnly)
-
-
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
-
consumeCustomData
public void consumeCustomData(int target) - Specified by:
consumeCustomData
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
-
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
-
getBuffer
-