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)
AssetProcessorpostProcess in interface AssetProcessorobj - The asset that was loaded from an AssetLoader.public java.lang.Object createClone(java.lang.Object obj)
AssetProcessorMaterial 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 AssetProcessorobj - The asset to clone