Class SGLoader

java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,​P>
com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,​SGLoader.SGLoaderParameter>
gaiasky.assets.SGLoader

public class SGLoader
extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,​SGLoader.SGLoaderParameter>
AssetLoader for all the SceneGraphNode instances. Loads all the entities in the scene graph.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  SGLoader.SGLoaderParameter  
  • Constructor Summary

    Constructors
    Constructor Description
    SGLoader​(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)  
  • Method Summary

    Modifier and Type Method Description
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies​(java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)  
    void loadAsync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String files, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)  
    ISceneGraph loadSync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)  

    Methods inherited from class com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader

    unloadAsync

    Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader

    resolve

    Methods inherited from class java.lang.Object

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

    • SGLoader

      public SGLoader​(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)
  • Method Details

    • getDependencies

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies​(java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)
      Specified by:
      getDependencies in class com.badlogic.gdx.assets.loaders.AssetLoader<ISceneGraph,​SGLoader.SGLoaderParameter>
    • loadAsync

      public void loadAsync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String files, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)
      Specified by:
      loadAsync in class com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,​SGLoader.SGLoaderParameter>
    • loadSync

      public ISceneGraph loadSync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)
      Specified by:
      loadSync in class com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,​SGLoader.SGLoaderParameter>