/** Releases all resources associated with this TextureAtlas instance. This releases all the textures backing all TextureRegions * and Sprites, which should no longer be used after calling dispose. */ public void dispose () { for (Texture texture : textures) texture.dispose(); textures.clear(); }
/** Clears the set and reduces the size of the backing arrays to be the specified capacity, if they are larger. The reduction * is done by allocating new arrays, though for large arrays this can be faster than clearing the existing array. */ public void clear (int maximumCapacity) { if (capacity <= maximumCapacity) { clear(); return; } size = 0; resize(maximumCapacity); }
/** Releases all resources associated with this TextureAtlas instance. This releases all the textures backing all TextureRegions * and Sprites, which should no longer be used after calling dispose. */ public void dispose () { for (Texture texture : textures) texture.dispose(); textures.clear(); }
/** Clears the set and reduces the size of the backing arrays to be the specified capacity, if they are larger. The reduction * is done by allocating new arrays, though for large arrays this can be faster than clearing the existing array. */ public void clear (int maximumCapacity) { if (capacity <= maximumCapacity) { clear(); return; } size = 0; resize(maximumCapacity); }
public void clear () { items.clear(); super.clear(); }
public void clear () { items.clear(); super.clear(); }
public void clear (int maximumCapacity) { items.clear(); super.clear(maximumCapacity); }
public void clear (int maximumCapacity) { items.clear(); super.clear(maximumCapacity); }
synchronized void injectDependencies (String parentAssetFilename, Array<AssetDescriptor> dependendAssetDescs) { ObjectSet<String> injected = this.injected; for (AssetDescriptor desc : dependendAssetDescs) { if (injected.contains(desc.fileName)) continue; // Ignore subsequent dependencies if there are duplicates. injected.add(desc.fileName); injectDependency(parentAssetFilename, desc); } injected.clear(); }
synchronized void injectDependencies (String parentAssetFilename, Array<AssetDescriptor> dependendAssetDescs) { ObjectSet<String> injected = this.injected; for (AssetDescriptor desc : dependendAssetDescs) { if (injected.contains(desc.fileName)) continue; // Ignore subsequent dependencies if there are duplicates. injected.add(desc.fileName); injectDependency(parentAssetFilename, desc); } injected.clear(); }
/** Removes all of the elements from this priority queue. The queue will be empty after this call returns. */ public void clear () { for (int i = 0; i < size; i++) queue[i] = null; size = 0; set.clear(); }
@Override protected <E> void exit (DefaultBehaviorTreeReader<E> reader) { if (!reader.isSubtreeRef) { reader.checkRequiredAttributes(reader.getCurrentTask()); reader.encounteredAttributes.clear(); } } };
void clear() { prevTask = null; guardChain = null; currentTree = null; userImports.clear(); subtrees.clear(); stack.clear(); encounteredAttributes.clear(); }
/** Removes all of the elements from this priority queue. The queue will be empty after this call returns. */ public void clear () { for (int i = 0; i < size; i++) queue[i] = null; size = 0; set.clear(); }
/** Removes all of the elements from this priority queue. The queue will be empty after this call returns. */ public void clear() { for (int i = 0; i < size; i++) queue[i] = null; size = 0; set.clear(); }
/** Releases all resources associated with this TextureAtlas instance. This releases all the textures backing all TextureRegions * and Sprites, which should no longer be used after calling dispose. */ public void dispose () { for (Texture texture : textures) texture.dispose(); textures.clear(); }
/** Clears the set and reduces the size of the backing arrays to be the specified capacity, if they are larger. The reduction * is done by allocating new arrays, though for large arrays this can be faster than clearing the existing array. */ public void clear (int maximumCapacity) { if (capacity <= maximumCapacity) { clear(); return; } size = 0; resize(maximumCapacity); }
@Override protected <E> void exit (DefaultBehaviorTreeReader<E> reader) { if (!reader.isSubtreeRef) { reader.checkRequiredAttributes(reader.getCurrentTask()); reader.encounteredAttributes.clear(); } } };
synchronized void injectDependencies (String parentAssetFilename, Array<AssetDescriptor> dependendAssetDescs) { ObjectSet<String> injected = this.injected; for (AssetDescriptor desc : dependendAssetDescs) { if (injected.contains(desc.fileName)) continue; // Ignore subsequent dependencies if there are duplicates. injected.add(desc.fileName); injectDependency(parentAssetFilename, desc); } injected.clear(); }
void clear() { prevTask = null; guardChain = null; currentTree = null; userImports.clear(); subtrees.clear(); stack.clear(); encounteredAttributes.clear(); }