Package com.prineside.luaj.mapping.parts
Class LJ_GDX_graphics.TextureData_AH.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_graphics.TextureData_AH.LIP
- All Implemented Interfaces:
com.badlogic.gdx.graphics.TextureData
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_graphics.TextureData_AH
public static class LJ_GDX_graphics.TextureData_AH.LIP
extends InterfaceProxy
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
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeCustomData
(int p1) Uploads the pixel data to the OpenGL ES texture.com.badlogic.gdx.graphics.Pixmap
Returns thePixmap
for upload by Texture.boolean
com.badlogic.gdx.graphics.Pixmap.Format
int
com.badlogic.gdx.graphics.TextureData.TextureDataType
getType()
int
getWidth()
boolean
boolean
void
prepare()
Prepares the TextureData for a call toTextureData.consumePixmap()
orTextureData.consumeCustomData(int)
.boolean
Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
consumeCustomData
public void consumeCustomData(int p1) Description copied from interface:com.badlogic.gdx.graphics.TextureData
Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call toTextureData.prepare()
must preceed a call to this method. Any internal data structures created inTextureData.prepare()
should be disposed of here.- Specified by:
consumeCustomData
in interfacecom.badlogic.gdx.graphics.TextureData
-
consumePixmap
public com.badlogic.gdx.graphics.Pixmap consumePixmap()Description copied from interface:com.badlogic.gdx.graphics.TextureData
Returns thePixmap
for upload by Texture. A call toTextureData.prepare()
must precede a call to this method. Any internal data structures created inTextureData.prepare()
should be disposed of here.- Specified by:
consumePixmap
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- the pixmap.
-
disposePixmap
public boolean disposePixmap()- Specified by:
disposePixmap
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- whether the caller of
TextureData.consumePixmap()
should dispose the Pixmap returned byTextureData.consumePixmap()
-
getFormat
public com.badlogic.gdx.graphics.Pixmap.Format getFormat()- Specified by:
getFormat
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- the
Pixmap.Format
of the pixel data
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- the height of the pixel data
-
getType
public com.badlogic.gdx.graphics.TextureData.TextureDataType getType()- Specified by:
getType
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- the
TextureData.TextureDataType
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- the width of the pixel data
-
isManaged
public boolean isManaged()- Specified by:
isManaged
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- whether this implementation can cope with a EGL context loss.
-
isPrepared
public boolean isPrepared()- Specified by:
isPrepared
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- whether the TextureData is prepared or not.
-
prepare
public void prepare()Description copied from interface:com.badlogic.gdx.graphics.TextureData
Prepares the TextureData for a call toTextureData.consumePixmap()
orTextureData.consumeCustomData(int)
. This method can be called from a non OpenGL thread and should thus not interact with OpenGL.- Specified by:
prepare
in interfacecom.badlogic.gdx.graphics.TextureData
-
useMipMaps
public boolean useMipMaps()- Specified by:
useMipMaps
in interfacecom.badlogic.gdx.graphics.TextureData
- Returns:
- whether to generate mipmaps or not.
-