/** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. Objects * don't need to be from the same pool. */ static public void freeAll (Array objects) { freeAll(objects, false); }
/** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. Objects * don't need to be from the same pool. */ static public void freeAll (Array objects) { freeAll(objects, false); }
/** Removes all glyphs in the cache. */ public void clear () { x = 0; y = 0; Pools.freeAll(pooledLayouts, true); pooledLayouts.clear(); layouts.clear(); for (int i = 0, n = idx.length; i < n; i++) { if (pageGlyphIndices != null) pageGlyphIndices[i].clear(); idx[i] = 0; } }
/** Removes all glyphs in the cache. */ public void clear () { x = 0; y = 0; Pools.freeAll(pooledLayouts, true); pooledLayouts.clear(); layouts.clear(); for (int i = 0, n = idx.length; i < n; i++) { if (pageGlyphIndices != null) pageGlyphIndices[i].clear(); idx[i] = 0; } }
/** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. Objects * don't need to be from the same pool. */ static public void freeAll (Array objects) { freeAll(objects, false); }
/** * Helper method to free an array events after they are processed. * * @param events Events to free. */ public static void free(Array<SystemEvent> events) { Pools.freeAll(events); }
/** Removes all glyphs in the cache. */ public void clear () { x = 0; y = 0; Pools.freeAll(pooledLayouts, true); pooledLayouts.clear(); layouts.clear(); for (int i = 0, n = idx.length; i < n; i++) { if (pageGlyphIndices != null) pageGlyphIndices[i].clear(); idx[i] = 0; } }
@Override public void dispose() { for (Array<? extends Component> components : componentsByType) { if (components != null) { Pools.freeAll(components); components.clear(); } } componentsByType.clear(); deletedEntities.clear(); mappers.clear(); }