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

public Class TextureArray

extends GLTexture
Class Inheritance
Imports
com.badlogic.gdx.Application, .Gdx, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.Array, .GdxRuntimeException, java.util.HashMap, .Map

Open GLES wrapper for TextureArray
Author
Tomski

Field Summary

Modifier and TypeField and Description
private TextureArrayData
pack-priv static final Map<Application, Array<TextureArray>>
Inherited from com.badlogic.gdx.graphics.GLTexture:
anisotropicFilterLevelglHandleglTargetmagFilterminFilteruWrapvWrap

Constructor Summary

AccessConstructor and Description
public
TextureArray(String... internalPaths)

public
public
TextureArray(boolean useMipMaps, FileHandle... files)

public
TextureArray(boolean useMipMaps, Pixmap.Format format, FileHandle... files)

public

Method Summary

Modifier and TypeMethod and Description
private static void
public static void
clearAllTextureArrays(Application app)

Clears all managed TextureArrays.

public int
public int
private static FileHandle[]
getInternalHandles(String... internalPaths)

public static String
public static int
getNumManagedTextureArrays()

Returns: the number of managed TextureArrays currently loaded

public int
public static void
invalidateAllTextureArrays(Application app)

Invalidate all managed TextureArrays.

public boolean
private void
protected void
Inherited from com.badlogic.gdx.graphics.GLTexture:
bindbinddeletedisposegetAnisotropicFiltergetMagFiltergetMaxAnisotropicFilterLevelgetMinFiltergetTextureObjectHandlegetUWrapgetVWrapsetAnisotropicFiltersetFiltersetWrapunsafeSetAnisotropicFilterunsafeSetAnisotropicFilterunsafeSetFilterunsafeSetFilterunsafeSetWrapunsafeSetWrapuploadImageDatauploadImageData

Field Detail

databack to summary
private TextureArrayData data
managedTextureArraysback to summary
pack-priv static final Map<Application, Array<TextureArray>> managedTextureArrays

Constructor Detail

TextureArrayback to summary
public TextureArray(String... internalPaths)
TextureArrayback to summary
public TextureArray(FileHandle... files)
TextureArrayback to summary
public TextureArray(boolean useMipMaps, FileHandle... files)
TextureArrayback to summary
public TextureArray(boolean useMipMaps, Pixmap.Format format, FileHandle... files)
TextureArrayback to summary
public TextureArray(TextureArrayData data)

Method Detail

addManagedTextureback to summary
private static void addManagedTexture(Application app, TextureArray texture)
clearAllTextureArraysback to summary
public static void clearAllTextureArrays(Application app)

Clears all managed TextureArrays. This is an internal method. Do not use it!

getDepthback to summary
public int getDepth()

Implements abstract com.badlogic.gdx.graphics.GLTexture.getDepth.

Annotations
@Override
getHeightback to summary
public int getHeight()

Implements abstract com.badlogic.gdx.graphics.GLTexture.getHeight.

Annotations
@Override
getInternalHandlesback to summary
private static FileHandle[] getInternalHandles(String... internalPaths)
getManagedStatusback to summary
public static String getManagedStatus()
getNumManagedTextureArraysback to summary
public static int getNumManagedTextureArrays()
Returns:int

the number of managed TextureArrays currently loaded

getWidthback to summary
public int getWidth()

Implements abstract com.badlogic.gdx.graphics.GLTexture.getWidth.

Annotations
@Override
invalidateAllTextureArraysback to summary
public static void invalidateAllTextureArrays(Application app)

Invalidate all managed TextureArrays. This is an internal method. Do not use it!

isManagedback to summary
public boolean isManaged()

Implements abstract com.badlogic.gdx.graphics.GLTexture.isManaged.

Annotations
@Override
loadback to summary
private void load(TextureArrayData data)
reloadback to summary
protected void reload()

Implements abstract com.badlogic.gdx.graphics.GLTexture.reload.

Annotations
@Override