Texture3DData implementation that addresses 2 use cases :
You can use it as a GL only texture (feed by a compute shader). In this case the texture is not managed.
Or you can use it to upload pixels to GPU. In this case you should call getPixels() to fill the buffer prior to
consuming it (eg. before new Texture3D(data)).
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private ByteBuffer | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | CustomTexture3DData(int width, int height, int depth, int mipMapLevel, int glFormat, int glInternalFormat, int glType)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | consume3DData()
Implements com. Uploads the pixel data to the OpenGL ES texture. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public ByteBuffer | |
| public int | |
| public boolean | |
| public boolean | |
| public void | prepare()
Implements com. Prepares the TextureData for a call to |
| public boolean |
| depth | back to summary |
|---|---|
| private int depth | |
| glFormat | back to summary |
|---|---|
| private int glFormat | |
| glInternalFormat | back to summary |
|---|---|
| private int glInternalFormat | |
| glType | back to summary |
|---|---|
| private int glType | |
| height | back to summary |
|---|---|
| private int height | |
| mipMapLevel | back to summary |
|---|---|
| private int mipMapLevel | |
| pixels | back to summary |
|---|---|
| private ByteBuffer pixels | |
| width | back to summary |
|---|---|
| private int width | |
| CustomTexture3DData | back to summary |
|---|---|
public CustomTexture3DData(int width, int height, int depth, int mipMapLevel, int glFormat, int glInternalFormat, int glType)
| |
| consume3DData | back to summary |
|---|---|
| public void consume3DData() Implements com. Doc from com. Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call to
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements com. | |
| getGLFormat | back to summary |
|---|---|
| public int getGLFormat() | |
| getGLType | back to summary |
|---|---|
| public int getGLType() Implements com. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com.
| |
| getInternalFormat | back to summary |
|---|---|
| public int getInternalFormat() Implements com. | |
| getMipMapLevel | back to summary |
|---|---|
| public int getMipMapLevel() | |
| getPixels | back to summary |
|---|---|
| public ByteBuffer getPixels() | |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com.
| |
| isManaged | back to summary |
|---|---|
| public boolean isManaged() Implements com.
| |
| isPrepared | back to summary |
|---|---|
| public boolean isPrepared() Implements com.
| |
| prepare | back to summary |
|---|---|
| public void prepare() Implements com. Doc from com. Prepares the TextureData for a call to
| |
| useMipMaps | back to summary |
|---|---|
| public boolean useMipMaps() Implements com.
| |