Package com.jme3.util

Class LWJGLBufferAllocator

java.lang.Object
com.jme3.util.LWJGLBufferAllocator
All Implemented Interfaces:
com.jme3.util.BufferAllocator
Direct Known Subclasses:
LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator

public class LWJGLBufferAllocator extends Object implements com.jme3.util.BufferAllocator
The implementation of the BufferAllocator which use MemoryUtil to manage memory.
Author:
JavaSaBr
  • Field Details

    • PROPERTY_CONCURRENT_BUFFER_ALLOCATOR

      public static final String PROPERTY_CONCURRENT_BUFFER_ALLOCATOR
      See Also:
  • Constructor Details

    • LWJGLBufferAllocator

      public LWJGLBufferAllocator()
  • Method Details

    • destroyDirectBuffer

      public void destroyDirectBuffer(Buffer buffer)
      Specified by:
      destroyDirectBuffer in interface com.jme3.util.BufferAllocator
    • allocate

      public ByteBuffer allocate(int size)
      Specified by:
      allocate in interface com.jme3.util.BufferAllocator