-
public abstract class AbstractBuffer<T extends Object>Buffer class to boost performance while drawing. Concept: Replace instead of recreate.
-
-
Field Summary
Fields Modifier and Type Field Description public final FloatArraybuffer
-
Constructor Summary
Constructors Constructor Description AbstractBuffer(Integer size)
-
Method Summary
Modifier and Type Method Description final UnitlimitFrom(Integer fromGiven)limits the drawing on the x-axis final UnitlimitTo(Integer toGiven)limits the drawing on the x-axis final Unitreset()Resets the buffer index to 0 and makes the buffer reusable. final Integersize()Returns the size (length) of the buffer array. final UnitsetPhases(Float phaseX, Float phaseY)Set the phases used for animations. abstract Unitfeed(T data)Builds up the buffer with the provided data and resets the buffer-index after feed-completion. -
-
Constructor Detail
-
AbstractBuffer
AbstractBuffer(Integer size)
-
-
-
-