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 classIntModelLoader.IntModelParameters -
Field Summary
Fields Modifier and Type Field Description protected IntModelLoader.IntModelParametersdefaultParametersprotected 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)voidloadAsync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, P parameters)IntModelloadModel(com.badlogic.gdx.files.FileHandle fileHandle)Directly load the model on the calling thread.IntModelloadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider)Directly load the model on the calling thread.IntModelloadModel(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider, P parameters)Directly load the model on the calling thread.IntModelloadModel(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)Directly load the model on the calling thread.IntModelDataloadModelData(com.badlogic.gdx.files.FileHandle fileHandle)Directly load the raw model data on the calling thread.abstract IntModelDataloadModelData(com.badlogic.gdx.files.FileHandle fileHandle, P parameters)Directly load the raw model data on the calling thread.IntModelloadSync(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
unloadAsyncMethods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader
resolveMethods 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:
getDependenciesin 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:
loadAsyncin 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:
loadSyncin classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P extends IntModelLoader.IntModelParameters>
-