org.xith3d.render.preprocessing
Class RenderBin.DynamicAtomArray
java.lang.Object
org.xith3d.render.preprocessing.RenderBin.DynamicAtomArray
- Enclosing class:
- RenderBin
public static final class RenderBin.DynamicAtomArray
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderBin.DynamicAtomArray
public RenderBin.DynamicAtomArray(int initialCapacity)
getRawArray
public final RenderAtom<?>[] getRawArray()
size
public final int size()
- Returns:
- the actual current size of the dynamic array
clear
public final void clear()
- Clears the array by resetting the size indicator to "0".
cleanUp
public final void cleanUp()
- Ensures that all atoms ever been in the render bin are freed for garbage collection
append
public final RenderAtom<?> append(RenderAtom<?> atom)
- Appends the specified element to the array and increases the size
indicator.
- Returns:
- the same given element back again (convenience)
get
public final RenderAtom<?> get(int index)
- Parameters:
index -
- Returns:
- the element at the specified index.