Package gaiasky.assets
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor>
getDependencies(String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)
void
loadAsync(com.badlogic.gdx.assets.AssetManager manager, String files, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)
loadSync(com.badlogic.gdx.assets.AssetManager manager, 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
-
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(String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)- Specified by:
getDependencies
in classcom.badlogic.gdx.assets.loaders.AssetLoader<ISceneGraph,SGLoader.SGLoaderParameter>
-
loadAsync
public void loadAsync(com.badlogic.gdx.assets.AssetManager manager, String files, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)- Specified by:
loadAsync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,SGLoader.SGLoaderParameter>
-
loadSync
public ISceneGraph loadSync(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, SGLoader.SGLoaderParameter parameter)- Specified by:
loadSync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<ISceneGraph,SGLoader.SGLoaderParameter>
-