Class FileTextureArrayData
- java.lang.Object
-
- com.badlogic.gdx.graphics.glutils.FileTextureArrayData
-
- All Implemented Interfaces:
TextureArrayData
public class FileTextureArrayData extends java.lang.Object implements TextureArrayData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.badlogic.gdx.graphics.TextureArrayData
TextureArrayData.Factory
-
-
Constructor Summary
Constructors Constructor Description FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, FileHandle[] files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeTextureArrayData()Uploads the pixel data of the TextureArray layers of the TextureArray to the OpenGL ES texture.intgetDepth()intgetGLType()intgetHeight()intgetInternalFormat()intgetWidth()booleanisManaged()booleanisPrepared()voidprepare()Prepares the TextureArrayData for a call toTextureArrayData.consumeTextureArrayData().
-
-
-
Constructor Detail
-
FileTextureArrayData
public FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, FileHandle[] files)
-
-
Method Detail
-
isPrepared
public boolean isPrepared()
- Specified by:
isPreparedin interfaceTextureArrayData- Returns:
- whether the TextureArrayData is prepared or not.
-
prepare
public void prepare()
Description copied from interface:TextureArrayDataPrepares the TextureArrayData for a call toTextureArrayData.consumeTextureArrayData(). This method can be called from a non OpenGL thread and should thus not interact with OpenGL.- Specified by:
preparein interfaceTextureArrayData
-
consumeTextureArrayData
public void consumeTextureArrayData()
Description copied from interface:TextureArrayDataUploads the pixel data of the TextureArray layers of the TextureArray to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call toTextureArrayData.prepare()must preceed a call to this method. Any internal data structures created inTextureArrayData.prepare()should be disposed of here.- Specified by:
consumeTextureArrayDatain interfaceTextureArrayData
-
getWidth
public int getWidth()
- Specified by:
getWidthin interfaceTextureArrayData- Returns:
- the width of this TextureArray
-
getHeight
public int getHeight()
- Specified by:
getHeightin interfaceTextureArrayData- Returns:
- the height of this TextureArray
-
getDepth
public int getDepth()
- Specified by:
getDepthin interfaceTextureArrayData- Returns:
- the layer count of this TextureArray
-
getInternalFormat
public int getInternalFormat()
- Specified by:
getInternalFormatin interfaceTextureArrayData- Returns:
- the internal format of this TextureArray
-
getGLType
public int getGLType()
- Specified by:
getGLTypein interfaceTextureArrayData- Returns:
- the GL type of this TextureArray
-
isManaged
public boolean isManaged()
- Specified by:
isManagedin interfaceTextureArrayData- Returns:
- whether this implementation can cope with a EGL context loss.
-
-