Java com.badlogic.gdx.assets AssetManager fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.assets AssetManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.assets AssetManager.

The text is from its open source code.

Subclass

com.badlogic.gdx.assets.AssetManager has subclasses.
Click this link to see all its subclasses.

Constructor

AssetManager()
Creates a new AssetManager with all default loaders.
AssetManager(FileHandleResolver resolver)
Creates a new AssetManager with all default loaders.

Method

voiddispose()
Disposes all assets in the manager and stops all asynchronous loading.
voidfinishLoading()
blocks until all assets are loaded.
Tget(String fileName, Class type)
Tget(String fileName)
Tget(AssetDescriptor assetDescriptor)
ArraygetAssetNames()
AssetLoadergetLoader(final Class type)
Returns the default loader for the given type
floatgetProgress()
booleanisLoaded(String fileName, Class type)
booleanisLoaded(String fileName)
voidload(String fileName, Class type)
Adds the given asset to the loading queue of the AssetManager.
voidload(AssetDescriptor desc)
Adds the given asset to the loading queue of the AssetManager.
voidload(String fileName, Class type, AssetLoaderParameters parameter)
Adds the given asset to the loading queue of the AssetManager.
voidsetErrorListener(AssetErrorListener listener)
Sets an AssetErrorListener to be invoked in case loading an asset failed.
voidsetLoaderParameters> void setLoader(Class type, AssetLoader loader)
Sets a new AssetLoader for the given type.
voidunload(String fileName)
Removes the asset and all its dependencies, if they are not used by other assets.
booleanupdate()
Updates the AssetManager, keeping it loading any assets in the preload queue.