Home | History | Annotate | Download | only in asset

Lines Matching refs:asset

33 package com.jme3.asset;
36 * Implementing the asset interface allows use of smart asset management.
38 * Smart asset management requires cooperation from the {@link AssetKey}.
41 * create a clone of the asset and cannot return the same reference,
44 * If the {@link AssetManager#loadAsset(com.jme3.asset.AssetKey) } method
45 * is called twice with the same asset key (equals() wise, not necessarily reference wise)
46 * then both assets will have the same asset key set (reference wise) via
47 * {@link Asset#setKey(com.jme3.asset.AssetKey) }, then this asset key
48 * is used to track all instances of that asset. Once all clones of the asset
49 * are garbage collected, the shared asset key becomes unreachable and at that
50 * point it is removed from the smart asset cache.
52 public interface Asset {
55 * Set by the {@link AssetManager} to track this asset.
57 * Only clones of the asset has this set, the original copy that
66 * Returns the asset key that is used to track this asset for garbage
69 * @return the asset key that is used to track this asset for garbage