Examples of CloneableSmartAsset


Examples of com.jme3.asset.CloneableSmartAsset

   
    public <T> void addToCache(AssetKey<T> originalKey, T obj) {
        // Make room for new asset
        removeCollectedAssets();
       
        CloneableSmartAsset asset = (CloneableSmartAsset) obj;
       
        // No circular references, since the original asset is
        // strongly referenced, we don't want the key strongly referenced.
        asset.setKey(null);
       
        // Start tracking the collection of originalKey
        // (this adds the KeyRef to the ReferenceQueue)
        KeyRef ref = new KeyRef(originalKey, refQueue);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.