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
,OwnObjLoader
public abstract class IntModelLoader<P extends IntModelLoader.IntModelParameters>
extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<IntModel,P>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected IntModelLoader.IntModelParameters
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.ObjectMap.Entry<String,
IntModelData>> -
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, P parameters) void
loadAsync
(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, P parameters) loadModel
(com.badlogic.gdx.files.FileHandle fileHandle) Directly load the model on the calling thread.loadModel
(com.badlogic.gdx.files.FileHandle fileHandle, com.badlogic.gdx.graphics.g3d.utils.TextureProvider textureProvider) Directly load the model on the calling thread.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.Directly load the model on the calling thread.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.loadSync
(com.badlogic.gdx.assets.AssetManager manager, 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
-
Field Details
-
items
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.ObjectMap.Entry<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(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, 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, 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>
-