Package com.jme3.util

Class AndroidNativeBufferAllocator

java.lang.Object
com.jme3.util.AndroidNativeBufferAllocator
All Implemented Interfaces:
com.jme3.util.BufferAllocator

public final class AndroidNativeBufferAllocator extends Object implements com.jme3.util.BufferAllocator
Allocates and destroys direct byte buffers using native code.
Author:
pavl_g.
  • Constructor Details

    • AndroidNativeBufferAllocator

      public AndroidNativeBufferAllocator()
  • Method Details

    • destroyDirectBuffer

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

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