public interface AssetProcessor
AssetProcessor
is used to apply processing to assets
after they have been loaded. They are assigned to a particular
asset type (which is represented by a Class
and any assets
loaded that are of that class will be processed by the assigned
processor.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.
|
java.lang.Object postProcess(AssetKey key, java.lang.Object obj)
obj
- The asset that was loaded from an AssetLoader
.java.lang.Object createClone(java.lang.Object obj)
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
).obj
- The asset to clone