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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeCustomData(int p1) Uploads the pixel data to the OpenGL ES texture.com.badlogic.gdx.graphics.PixmapReturns thePixmapfor upload by Texture.booleancom.badlogic.gdx.graphics.Pixmap.Formatintcom.badlogic.gdx.graphics.TextureData.TextureDataTypegetType()intgetWidth()booleanbooleanvoidprepare()Prepares the TextureData for a call toTextureData.consumePixmap()orTextureData.consumeCustomData(int).booleanMethods 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.TextureDataUploads 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:
consumeCustomDatain interfacecom.badlogic.gdx.graphics.TextureData
-
consumePixmap
public com.badlogic.gdx.graphics.Pixmap consumePixmap()Description copied from interface:com.badlogic.gdx.graphics.TextureDataReturns thePixmapfor 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:
consumePixmapin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- the pixmap.
-
disposePixmap
public boolean disposePixmap()- Specified by:
disposePixmapin 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:
getFormatin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- the
Pixmap.Formatof the pixel data
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- the height of the pixel data
-
getType
public com.badlogic.gdx.graphics.TextureData.TextureDataType getType()- Specified by:
getTypein interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- the
TextureData.TextureDataType
-
getWidth
public int getWidth()- Specified by:
getWidthin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- the width of the pixel data
-
isManaged
public boolean isManaged()- Specified by:
isManagedin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- whether this implementation can cope with a EGL context loss.
-
isPrepared
public boolean isPrepared()- Specified by:
isPreparedin 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.TextureDataPrepares 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:
preparein interfacecom.badlogic.gdx.graphics.TextureData
-
useMipMaps
public boolean useMipMaps()- Specified by:
useMipMapsin interfacecom.badlogic.gdx.graphics.TextureData- Returns:
- whether to generate mipmaps or not.
-