scratch Buffer
Returns a scratch NIO buffer suitable for use during drawing. The returned buffer has capacity at least equal to the specified capacity. The buffer is cleared before each frame, otherwise its contents, position, limit and mark are undefined.
Return
the draw context's scratch buffer
Parameters
capacity
the buffer's minimum capacity in bytes