Package gaiasky.util.gdx.loader
Class IntModelLoader<P extends IntModelLoader.IntModelParameters>
java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P>
gaiasky.util.gdx.loader.IntModelLoader<P>
- Direct Known Subclasses:
G3dModelLoader
,ObjLoader
public abstract class IntModelLoader<P extends IntModelLoader.IntModelParameters> extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntModelLoader.IntModelParameters
-
Field Summary
Fields Modifier and Type Field Description protected IntModelLoader.IntModelParameters
defaultParameters
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.ObjectMap.Entry<java.lang.String,IntModelData>>
items
-
Constructor Summary
Constructors Constructor Description IntModelLoader(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, P parameters)
void
loadAsync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)
IntModel
loadModel(com.badlogic.gdx.files.FileHandle fileHandle)
Directly load the model on the calling thread.IntModel
loadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider)
Directly load the model on the calling thread.IntModel
loadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider, P parameters)
Directly load the model on the calling thread.IntModel
loadModel(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)
Directly load the model on the calling thread.IntModelData
loadModelData(com.badlogic.gdx.files.FileHandle fileHandle)
Directly load the raw model data on the calling thread.abstract IntModelData
loadModelData(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)
Directly load the raw model data on the calling thread.IntModel
loadSync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)
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
-
Field Details
-
items
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.ObjectMap.Entry<java.lang.String,IntModelData>> items -
defaultParameters
-
-
Constructor Details
-
IntModelLoader
public IntModelLoader(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)
-
-
Method Details
-
loadModelData
public abstract IntModelData loadModelData(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)Directly load the raw model data on the calling thread. -
loadModelData
Directly load the raw model data on the calling thread. -
loadModel
public IntModel loadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider, P parameters)Directly load the model on the calling thread. The model with not be managed by anAssetManager
. -
loadModel
Directly load the model on the calling thread. The model with not be managed by anAssetManager
. -
loadModel
public IntModel loadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider)Directly load the model on the calling thread. The model with not be managed by anAssetManager
. -
loadModel
Directly load the model on the calling thread. The model with not be managed by anAssetManager
. -
getDependencies
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies(java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)- Specified by:
getDependencies
in classcom.badlogic.gdx.assets.loaders.AssetLoader<IntModel,P extends IntModelLoader.IntModelParameters>
-
loadAsync
public void loadAsync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)- Specified by:
loadAsync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P extends IntModelLoader.IntModelParameters>
-
loadSync
public IntModel loadSync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)- Specified by:
loadSync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P extends IntModelLoader.IntModelParameters>
-