|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.assets.loaders.AssetLoader<T,P> com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<Model,P> com.badlogic.gdx.assets.loaders.ModelLoader<P>
public abstract class ModelLoader<P extends AssetLoaderParameters<Model>>
Constructor Summary | |
---|---|
ModelLoader(FileHandleResolver resolver)
|
Method Summary | |
---|---|
Array<AssetDescriptor> |
getDependencies(String fileName,
FileHandle file,
P parameters)
Returns the assets this asset requires to be loaded first. |
void |
loadAsync(AssetManager manager,
String fileName,
FileHandle file,
P parameters)
Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
Model |
loadModel(FileHandle fileHandle)
Directly load the model on the calling thread. |
Model |
loadModel(FileHandle fileHandle,
P parameters)
Directly load the model on the calling thread. |
Model |
loadModel(FileHandle fileHandle,
TextureProvider textureProvider)
Directly load the model on the calling thread. |
Model |
loadModel(FileHandle fileHandle,
TextureProvider textureProvider,
P parameters)
Directly load the model on the calling thread. |
ModelData |
loadModelData(FileHandle fileHandle)
Directly load the raw model data on the calling thread. |
abstract ModelData |
loadModelData(FileHandle fileHandle,
P parameters)
Directly load the raw model data on the calling thread. |
Model |
loadSync(AssetManager manager,
String fileName,
FileHandle file,
P parameters)
Loads the OpenGL part of the asset. |
Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader |
---|
resolve |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelLoader(FileHandleResolver resolver)
Method Detail |
---|
public abstract ModelData loadModelData(FileHandle fileHandle, P parameters)
public ModelData loadModelData(FileHandle fileHandle)
public Model loadModel(FileHandle fileHandle, TextureProvider textureProvider, P parameters)
AssetManager
.
public Model loadModel(FileHandle fileHandle, P parameters)
AssetManager
.
public Model loadModel(FileHandle fileHandle, TextureProvider textureProvider)
AssetManager
.
public Model loadModel(FileHandle fileHandle)
AssetManager
.
public Array<AssetDescriptor> getDependencies(String fileName, FileHandle file, P parameters)
AssetLoader
getDependencies
in class AssetLoader<Model,P extends AssetLoaderParameters<Model>>
fileName
- name of the asset to loadfile
- the resolved file to loadparameters
- parameters for loading the asset
public void loadAsync(AssetManager manager, String fileName, FileHandle file, P parameters)
AsynchronousAssetLoader
loadAsync
in class AsynchronousAssetLoader<Model,P extends AssetLoaderParameters<Model>>
fileName
- the name of the asset to loadfile
- the resolved file to loadparameters
- the parameters to use for loading the assetpublic Model loadSync(AssetManager manager, String fileName, FileHandle file, P parameters)
AsynchronousAssetLoader
loadSync
in class AsynchronousAssetLoader<Model,P extends AssetLoaderParameters<Model>>
file
- the resolved file to load
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |