Class MapPreviewLoader


public class MapPreviewLoader extends TextureLoader
  • Constructor Details

    • MapPreviewLoader

      public MapPreviewLoader()
  • Method Details

    • loadAsync

      public void loadAsync(AssetManager manager, String fileName, Fi file, TextureLoader.TextureParameter parameter)
      Description copied from class: AsynchronousAssetLoader
      Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
      Overrides:
      loadAsync in class TextureLoader
      fileName - the name of the asset to load
      file - the resolved file to load
      parameter - the parameters to use for loading the asset
    • loadSync

      public Texture loadSync(AssetManager manager, String fileName, Fi file, TextureLoader.TextureParameter parameter)
      Description copied from class: AsynchronousAssetLoader
      Loads the OpenGL part of the asset.
      Overrides:
      loadSync in class TextureLoader
      file - the resolved file to load
    • getDependencies

      public Seq<AssetDescriptor> getDependencies(String fileName, Fi file, TextureLoader.TextureParameter parameter)
      Description copied from class: AssetLoader
      Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
      Overrides:
      getDependencies in class TextureLoader
      Parameters:
      fileName - name of the asset to load
      file - the resolved file to load
      parameter - parameters for loading the asset
      Returns:
      other assets that the asset depends on and need to be loaded first or null if there are no dependencies.
    • setupLoaders

      public static void setupLoaders()
    • checkPreviews

      public static void checkPreviews()