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