public static class LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator extends LWJGLBufferAllocator
LWJGLBufferAllocator
.LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator
PROPERTY_CONCURRENT_BUFFER_ALLOCATOR
Constructor and Description |
---|
ConcurrentLWJGLBufferAllocator() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
allocate(int size)
Allocate a direct ByteBuffer of the specified size.
|
void |
destroyDirectBuffer(java.nio.Buffer buffer)
De-allocate a direct buffer.
|
public void destroyDirectBuffer(java.nio.Buffer buffer)
BufferAllocator
destroyDirectBuffer
in interface BufferAllocator
destroyDirectBuffer
in class LWJGLBufferAllocator
buffer
- the buffer to de-allocate (not null)public java.nio.ByteBuffer allocate(int size)
BufferAllocator
allocate
in interface BufferAllocator
allocate
in class LWJGLBufferAllocator
size
- in bytes (≥0)