gov.nasa.worldwind.util
Class BufferFactory.DoubleBufferFactory
java.lang.Object
gov.nasa.worldwind.util.BufferFactory
gov.nasa.worldwind.util.BufferFactory.DoubleBufferFactory
- Enclosing class:
- BufferFactory
public static class BufferFactory.DoubleBufferFactory
- extends BufferFactory
Implementation of BufferFactory which constructs instances of BufferWrapper.DoubleBufferWrapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferFactory.DoubleBufferFactory
public BufferFactory.DoubleBufferFactory()
- Constructs a new DoubleBufferFactory with the default buffer allocation policy. This factory allocates and
returns DoubleBufferWrappers backed by direct buffers.
BufferFactory.DoubleBufferFactory
public BufferFactory.DoubleBufferFactory(boolean allocateDirect)
- Constructs a new DoubleBufferFactory with the specified buffer allocation policy.
- Parameters:
allocateDirect - true to allocate and return DoubleBufferWrappers backed by direct buffers, false to
allocate and return DoubleBufferWrappers backed by non-direct buffers.
newBuffer
public BufferWrapper newBuffer(int size)
- Constructs a new DoubleBufferWrapper of the specified size, backed by a
DoubleBuffer.
- Specified by:
newBuffer in class BufferFactory
- Parameters:
size - the new buffer's size, int doubles.
- Returns:
- the new buffer.
- Throws:
IllegalArgumentException - if size is negative.