public class BlenderLoader extends java.lang.Object implements AssetLoader
Modifier and Type | Class and Description |
---|---|
static class |
BlenderLoader.LinkedContentLocator |
Constructor and Description |
---|
BlenderLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear(AssetInfo assetInfo)
The internal data is only needed during loading so make it unreachable so that the GC can release
that memory (which can be quite large amount).
|
Spatial |
load(AssetInfo assetInfo)
Loads asset from the given input stream, parsing it into
an application-usable object.
|
protected BlenderContext |
setup(AssetInfo assetInfo)
This method sets up the loader.
|
public Spatial load(AssetInfo assetInfo) throws java.io.IOException
AssetLoader
load
in interface AssetLoader
java.io.IOException
- If an I/O error occurs while loadingprotected BlenderContext setup(AssetInfo assetInfo) throws BlenderFileException
assetInfo
- the asset infoBlenderFileException
- an exception is throw when something wrong happens with blender fileprotected void clear(AssetInfo assetInfo)