public class CloneableAssetProcessor extends java.lang.Object implements AssetProcessor
CloneableAssetProcessor
simply calls Object.clone()
on assets to clone them. No processing is applied.Constructor and Description |
---|
CloneableAssetProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createClone(java.lang.Object obj)
Creates a clone of the given asset.
|
java.lang.Object |
postProcess(AssetKey key,
java.lang.Object obj)
Applies post processing to an asset.
|
public java.lang.Object postProcess(AssetKey key, java.lang.Object obj)
AssetProcessor
postProcess
in interface AssetProcessor
key
- the key used to load the assetobj
- The asset that was loaded from an AssetLoader
.public java.lang.Object createClone(java.lang.Object obj)
AssetProcessor
Material
should have its own set
of unique parameters that can be changed just for that instance,
but it may share certain other data if it sees fit (like the Shader
).createClone
in interface AssetProcessor
obj
- The asset to clone