Package com.jme3.util
Class LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator
java.lang.Object
com.jme3.util.LWJGLBufferAllocator
com.jme3.util.LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator
- All Implemented Interfaces:
BufferAllocator
- Enclosing class:
- LWJGLBufferAllocator
public static class LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator
extends LWJGLBufferAllocator
Threadsafe implementation of the
LWJGLBufferAllocator
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.util.LWJGLBufferAllocator
LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator
-
Field Summary
Fields inherited from class com.jme3.util.LWJGLBufferAllocator
PROPERTY_CONCURRENT_BUFFER_ALLOCATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocate
(int size) Allocate a direct ByteBuffer of the specified size.void
destroyDirectBuffer
(Buffer buffer) De-allocate a direct buffer.
-
Constructor Details
-
ConcurrentLWJGLBufferAllocator
public ConcurrentLWJGLBufferAllocator()
-
-
Method Details
-
destroyDirectBuffer
Description copied from interface:BufferAllocator
De-allocate a direct buffer.- Specified by:
destroyDirectBuffer
in interfaceBufferAllocator
- Overrides:
destroyDirectBuffer
in classLWJGLBufferAllocator
- Parameters:
buffer
- the buffer to de-allocate (not null)
-
allocate
Description copied from interface:BufferAllocator
Allocate a direct ByteBuffer of the specified size.- Specified by:
allocate
in interfaceBufferAllocator
- Overrides:
allocate
in classLWJGLBufferAllocator
- Parameters:
size
- in bytes (≥0)- Returns:
- a new direct buffer
-