Cubemap to load the pixel data. The Cubemap will request the CubemapData to prepare itself through
prepare() and upload its data using consumeCubemapData(). These are the first methods to be called by
Cubemap. After that the Cubemap will invoke the other methods to find out about the size of the image data, the format, whether
the CubemapData is able to manage the pixel data if the OpenGL ES context is lost.
Before a call to either consumeCubemapData(), Cubemap will bind the OpenGL ES texture.
Look at KTXTextureData for example implementation of this interface.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public void |
| consumeCubemapData | back to summary |
|---|---|
| public void consumeCubemapData() Uploads the pixel data for the 6 faces of the cube to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A
call to | |
| getHeight | back to summary |
|---|---|
public int getHeight()
| |
| getWidth | back to summary |
|---|---|
public int getWidth()
| |
| isManaged | back to summary |
|---|---|
public boolean isManaged()
| |
| isPrepared | back to summary |
|---|---|
public boolean isPrepared()
| |
| prepare | back to summary |
|---|---|
| public void prepare() Prepares the TextureData for a call to | |