Package gaiasky.data

Class AssetBean

java.lang.Object
gaiasky.data.AssetBean

public class AssetBean extends Object
Utility class to hold the assets that must be loaded when the OpenGL context is present. If the AssetManager has been set, it delegates the loading to it.
  • Method Details

    • addAsset

      public static void addAsset(String assetName, Class assetClass)
    • addAsset

      public static void addAsset(String assetName, Class assetClass, com.badlogic.gdx.assets.AssetLoaderParameters params)
    • getAssets

      public static Set<AssetBean> getAssets()
    • setAssetManager

      public static void setAssetManager(com.badlogic.gdx.assets.AssetManager manager)
    • manager

      public static com.badlogic.gdx.assets.AssetManager manager()
    • load

      public void load(com.badlogic.gdx.assets.AssetManager manager)
      Invokes the load operation on the given AssetManager for this given AssetBean.
      Parameters:
      manager - The asset manager.