Package arc.graphics.gl
Class FileTextureArrayData
java.lang.Object
arc.graphics.gl.FileTextureArrayData
- All Implemented Interfaces:
TextureArrayData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Uploads the pixel data of the TextureArray layers of the TextureArray to the OpenGL ES texture.int
getDepth()
int
int
int
int
getWidth()
boolean
void
prepare()
Prepares the TextureArrayData for a call toTextureArrayData.consumeTextureArrayData()
.
-
Constructor Details
-
FileTextureArrayData
-
-
Method Details
-
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
-