public class ContentTextureLocator extends java.lang.Object implements AssetLocator
ContentTextureKey.| Constructor and Description |
|---|
ContentTextureLocator() |
| Modifier and Type | Method and Description |
|---|---|
AssetInfo |
locate(AssetManager manager,
AssetKey key)
Request to locate an asset.
|
void |
setRootPath(java.lang.String rootPath) |
public void setRootPath(java.lang.String rootPath)
setRootPath in interface AssetLocatorrootPath - The root path where to look for assets.
Typically this method will only be called once per
instance of an asset locator.public AssetInfo locate(AssetManager manager, AssetKey key)
AssetLocatorAssetInfo implementation provided should have a proper
return value for its AssetInfo.openStream() method.locate in interface AssetLocatorAssetInfo that was located, or null if not found.