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 Type
    Method
    Description
    void
     
    com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion
    getRegion(String identifier)
     
     
    void
    Invalidate any cached textures in any of the TextureAtlass
    com.badlogic.gdx.graphics.Texture
     
    void
    registerUserAtlas(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static AssetManager 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 the TextureAtlass
    • getRegion

      public com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion getRegion(String identifier)
      Parameters:
      identifier - the identifier of the region
      Returns:
      the TextureAtlas.AtlasRegion or a placeholder texture if not found
    • loadTextureBlocking

      public com.badlogic.gdx.graphics.Texture loadTextureBlocking(String path)