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
All Methods Instance Methods Abstract Methods Concrete Methods 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)
-
-
-
Field Detail
-
items
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.ObjectMap.Entry<java.lang.String,IntModelData>> items
-
defaultParameters
protected IntModelLoader.IntModelParameters defaultParameters
-
-
Method Detail
-
loadModelData
public abstract IntModelData loadModelData(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)
Directly load the raw model data on the calling thread.
-
loadModelData
public IntModelData loadModelData(com.badlogic.gdx.files.FileHandle fileHandle)
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
public IntModel loadModel(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)
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
public IntModel loadModel(com.badlogic.gdx.files.FileHandle fileHandle)
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>
-
-