public interface TextureArrayData
TextureArray
to load the pixel data. The TextureArray will request the TextureArrayData to prepare itself through
prepare()
and upload its data using consumeTextureArrayData()
. These are the first methods to be called by TextureArray.
After that the TextureArray will invoke the other methods to find out about the size of the image data, the format, whether the
TextureArrayData is able to manage the pixel data if the OpenGL ES context is lost.
Before a call to either consumeTextureArrayData()
, TextureArray will bind the OpenGL ES texture.
Look at FileTextureArrayData
for example implementation of this interface.Modifier and Type | Interface and Description |
---|---|
static class |
TextureArrayData.Factory
Provides static method to instantiate the right implementation.
|
Modifier and Type | Method and 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 to
consumeTextureArrayData() . |
boolean isPrepared()
void prepare()
consumeTextureArrayData()
. This method can be called from a non OpenGL thread and
should thus not interact with OpenGL.void consumeTextureArrayData()
int getWidth()
int getHeight()
int getDepth()
boolean isManaged()
int getInternalFormat()
int getGLType()
Copyright © 2021. All rights reserved.