APIdia Launch Partner
Top Inners Fields Constructors Methods
com.badlogic.gdx.assets.loaders

public abstract Class ModelLoader<P extends ModelLoader.ModelParameters>

extends AsynchronousAssetLoader<Model, P extends ModelLoader.ModelParameters>
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.loader.G3dModelLoader, com.badlogic.gdx.graphics.g3d.loader.ObjLoader
Imports
java.util.Iterator, com.badlogic.gdx.assets.AssetDescriptor, .AssetLoaderParameters, .AssetManager, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.graphics.g3d.Model, com.badlogic.gdx.graphics.g3d.model.data.ModelData, .ModelMaterial, .ModelTexture, com.badlogic.gdx.graphics.g3d.utils.TextureProvider, com.badlogic.gdx.utils.Array, .Disposable, .ObjectMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
protected ModelLoader.ModelParameters
protected Array<ObjectMap.Entry<String, ModelData>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Array<AssetDescriptor<T>>
getDependencies(String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first.

public void
loadAsync(AssetManager manager, String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

public Model
loadModel(final FileHandle fileHandle, TextureProvider textureProvider, P parameters)

Directly load the model on the calling thread.

public Model
loadModel(final FileHandle fileHandle, P parameters)

Directly load the model on the calling thread.

public Model
loadModel(final FileHandle fileHandle, TextureProvider textureProvider)

Directly load the model on the calling thread.

public Model
loadModel(final FileHandle fileHandle)

Directly load the model on the calling thread.

public abstract ModelData
loadModelData(final FileHandle fileHandle, P parameters)

Directly load the raw model data on the calling thread.

public ModelData
loadModelData(final FileHandle fileHandle)

Directly load the raw model data on the calling thread.

public Model
loadSync(AssetManager manager, String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Inherited from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader:
unloadAsync

Field Detail

defaultParametersback to summary
protected ModelLoader.ModelParameters defaultParameters
itemsback to summary
protected Array<ObjectMap.Entry<String, ModelData>> items

Constructor Detail

ModelLoaderback to summary
public ModelLoader(FileHandleResolver resolver)

Method Detail

getDependenciesback to summary
public Array<AssetDescriptor<T>> getDependencies(String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Doc from com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.

Annotations
@Override
loadAsyncback to summary
public void loadAsync(AssetManager manager, String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

Annotations
@Override
loadModelback to summary
public Model loadModel(final FileHandle fileHandle, TextureProvider textureProvider, P parameters)

Directly load the model on the calling thread. The model with not be managed by an AssetManager.

loadModelback to summary
public Model loadModel(final FileHandle fileHandle, P parameters)

Directly load the model on the calling thread. The model with not be managed by an AssetManager.

loadModelback to summary
public Model loadModel(final FileHandle fileHandle, TextureProvider textureProvider)

Directly load the model on the calling thread. The model with not be managed by an AssetManager.

loadModelback to summary
public Model loadModel(final FileHandle fileHandle)

Directly load the model on the calling thread. The model with not be managed by an AssetManager.

loadModelDataback to summary
public abstract ModelData loadModelData(final FileHandle fileHandle, P parameters)

Directly load the raw model data on the calling thread.

loadModelDataback to summary
public ModelData loadModelData(final FileHandle fileHandle)

Directly load the raw model data on the calling thread.

loadSyncback to summary
public Model loadSync(AssetManager manager, String fileName, FileHandle file, P parameters)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Annotations
@Override
com.badlogic.gdx.assets.loaders back to summary

public Class ModelLoader.ModelParameters

extends AssetLoaderParameters<Model>
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.loader.ObjLoader.ObjLoaderParameters

Field Summary

Modifier and TypeField and Description
public TextureLoader.TextureParameter
Inherited from com.badlogic.gdx.assets.AssetLoaderParameters:
loadedCallback

Constructor Summary

AccessConstructor and Description
public

Field Detail

textureParameterback to summary
public TextureLoader.TextureParameter textureParameter

Constructor Detail

ModelParametersback to summary
public ModelParameters()