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 void
consumeTextureArrayData()
Uploads the pixel data of the TextureArray layers of the TextureArray to the OpenGL ES texture.int
getDepth()
int
getGLType()
int
getHeight()
int
getInternalFormat()
int
getWidth()
boolean
isManaged()
boolean
isPrepared()
void
prepare()
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:
isPrepared
in interfaceTextureArrayData
- Returns:
- whether the TextureArrayData is prepared or not.
-
prepare
public void prepare()
Description copied from interface:TextureArrayData
Prepares 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:
prepare
in interfaceTextureArrayData
-
consumeTextureArrayData
public void consumeTextureArrayData()
Description copied from interface:TextureArrayData
Uploads 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:
consumeTextureArrayData
in interfaceTextureArrayData
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceTextureArrayData
- Returns:
- the width of this TextureArray
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceTextureArrayData
- Returns:
- the height of this TextureArray
-
getDepth
public int getDepth()
- Specified by:
getDepth
in interfaceTextureArrayData
- Returns:
- the layer count of this TextureArray
-
getInternalFormat
public int getInternalFormat()
- Specified by:
getInternalFormat
in interfaceTextureArrayData
- Returns:
- the internal format of this TextureArray
-
getGLType
public int getGLType()
- Specified by:
getGLType
in interfaceTextureArrayData
- Returns:
- the GL type of this TextureArray
-
isManaged
public boolean isManaged()
- Specified by:
isManaged
in interfaceTextureArrayData
- Returns:
- whether this implementation can cope with a EGL context loss.
-
-