Package group24.escaperoom
Class AssetManager
java.lang.Object
com.badlogic.gdx.assets.AssetManager
group24.escaperoom.AssetManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public class AssetManager
extends com.badlogic.gdx.assets.AssetManager
A wrapper around
AssetManager-
Method Summary
Modifier and TypeMethodDescriptionvoidcom.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegionstatic AssetManagerinstance()voidInvalidate any cached textures in any of theTextureAtlasscom.badlogic.gdx.graphics.TextureloadTextureBlocking(String path) voidregisterUserAtlas(com.badlogic.gdx.graphics.g2d.TextureAtlas atlas) Methods inherited from class com.badlogic.gdx.assets.AssetManager
addAsset, clear, contains, contains, containsAsset, dispose, finishLoading, finishLoadingAsset, finishLoadingAsset, get, get, get, get, get, getAll, getAssetFileName, getAssetNames, getAssetType, getDependencies, getDiagnostics, getFileHandleResolver, getLoadedAssets, getLoader, getLoader, getLogger, getProgress, getQueuedAssets, getReferenceCount, isFinished, isLoaded, isLoaded, isLoaded, load, load, load, setErrorListener, setLoader, setLoader, setLogger, setReferenceCount, taskFailed, unload, update, update
-
Method Details
-
instance
- Returns:
- the singleton
AssetManager
-
registerUserAtlas
public void registerUserAtlas(com.badlogic.gdx.graphics.g2d.TextureAtlas atlas) - Parameters:
atlas- to register
-
clearUserTextures
public void clearUserTextures() -
invalidateTextureCache
public void invalidateTextureCache()Invalidate any cached textures in any of theTextureAtlass -
getRegion
- Parameters:
identifier- the identifier of the region- Returns:
- the
TextureAtlas.AtlasRegionor a placeholder texture if not found
-
loadTextureBlocking
-