public final class AssetManagerUtil
extends java.lang.Object
IAssetManager2D
classConstructor and Description |
---|
AssetManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static <TResource extends com.scichart.core.framework.IDisposable> |
tryGetResource(IAssetManager2D assetManager,
ResourceId resourceId,
java.lang.Class<TResource> resourceType)
Gets resource from
assetManager and tries to cast it to specified resourceType |
static <T extends ITexture2D> |
tryGetTextureWithSize(IAssetManager2D assetManager,
ResourceId resourceId,
int width,
int height,
java.lang.Class<T> textureType)
Tries to get texture from
assetManager with specified size |
public static <TResource extends com.scichart.core.framework.IDisposable> TResource tryGetResource(IAssetManager2D assetManager, ResourceId resourceId, java.lang.Class<TResource> resourceType)
assetManager
and tries to cast it to specified resourceType
TResource
- The type of resouce to returnassetManager
- The asset manager to useresourceId
- The resource idresourceType
- The resource typepublic static <T extends ITexture2D> T tryGetTextureWithSize(IAssetManager2D assetManager, ResourceId resourceId, int width, int height, java.lang.Class<T> textureType)
assetManager
with specified sizeassetManager
- The asset manager to useresourceId
- The resource idwidth
- The width of textureheight
- The height of texture