Example usage for Java com.badlogic.gdx.utils Pool fields, constructors, methods, implement or subclass
The text is from its open source code.
Pool(int initialCapacity) Creates a pool with the specified initial capacity and no maximum. | |
Pool(int initialCapacity, int max) | |
Pool() Creates a pool with an initial capacity of 16 and no maximum. |
void | clear() Removes all free objects from this pool. |
void | free(T object) Puts the specified object in the pool, making it eligible to be returned by #obtain() . |
void | freeAll(Array Puts the specified objects in the pool. |
T | obtain() Returns an object from this pool. |