APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.graphics.glutils

public Class FileTextureArrayData

extends Object
implements TextureArrayData
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.graphics.TextureArrayData
Imports
com.badlogic.gdx.Gdx, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.GL30, .Pixmap, .TextureArrayData, .TextureData, com.badlogic.gdx.utils.GdxRuntimeException

Author
Tomski

Field Summary

Modifier and TypeField and Description
private int
private Pixmap.Format
private boolean
private TextureData[]
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, FileHandle[] files)

public
FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, TextureData[] textureDatas)

Method Summary

Modifier and TypeMethod and Description
public void
consumeTextureArrayData()

Implements com.badlogic.gdx.graphics.TextureArrayData.consumeTextureArrayData.

Uploads the pixel data of the TextureArray layers of the TextureArray to the OpenGL ES texture.

public int
public int
public int
public int
public int
public boolean
public boolean
public void
prepare()

Implements com.badlogic.gdx.graphics.TextureArrayData.prepare.

Prepares the TextureArrayData for a call to consumeTextureArrayData().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

depthback to summary
private int depth
formatback to summary
private Pixmap.Format format
preparedback to summary
private boolean prepared
textureDatasback to summary
private TextureData[] textureDatas
useMipMapsback to summary
pack-priv boolean useMipMaps

Constructor Detail

FileTextureArrayDataback to summary
public FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, FileHandle[] files)
FileTextureArrayDataback to summary
public FileTextureArrayData(Pixmap.Format format, boolean useMipMaps, TextureData[] textureDatas)

Method Detail

consumeTextureArrayDataback to summary
public void consumeTextureArrayData()

Implements com.badlogic.gdx.graphics.TextureArrayData.consumeTextureArrayData.

Doc from com.badlogic.gdx.graphics.TextureArrayData.consumeTextureArrayData.

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 to prepare() must preceed a call to this method. Any internal data structures created in prepare() should be disposed of here.

Annotations
@Override
getDepthback to summary
public int getDepth()

Implements com.badlogic.gdx.graphics.TextureArrayData.getDepth.

Annotations
@Override
getGLTypeback to summary
public int getGLType()

Implements com.badlogic.gdx.graphics.TextureArrayData.getGLType.

Annotations
@Override
getHeightback to summary
public int getHeight()

Implements com.badlogic.gdx.graphics.TextureArrayData.getHeight.

Annotations
@Override
getInternalFormatback to summary
public int getInternalFormat()

Implements com.badlogic.gdx.graphics.TextureArrayData.getInternalFormat.

Annotations
@Override
getWidthback to summary
public int getWidth()

Implements com.badlogic.gdx.graphics.TextureArrayData.getWidth.

Annotations
@Override
isManagedback to summary
public boolean isManaged()

Implements com.badlogic.gdx.graphics.TextureArrayData.isManaged.

Annotations
@Override
isPreparedback to summary
public boolean isPrepared()

Implements com.badlogic.gdx.graphics.TextureArrayData.isPrepared.

Annotations
@Override
prepareback to summary
public void prepare()

Implements com.badlogic.gdx.graphics.TextureArrayData.prepare.

Doc from com.badlogic.gdx.graphics.TextureArrayData.prepare.

Prepares the TextureArrayData for a call to consumeTextureArrayData(). This method can be called from a non OpenGL thread and should thus not interact with OpenGL.

Annotations
@Override