Package com.jme3.util

Class AndroidBufferAllocator

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

@Deprecated public class AndroidBufferAllocator extends Object implements BufferAllocator
Deprecated.
implemented AndroidNativeBufferAllocator instead.
  • Constructor Details

    • AndroidBufferAllocator

      public AndroidBufferAllocator()
      Deprecated.
  • Method Details

    • destroyDirectBuffer

      public void destroyDirectBuffer(Buffer toBeDestroyed)
      Deprecated.
      Searches the inner direct buffer of the Android-specific wrapped buffer classes and destroys it using the reflection allocator method.
      Specified by:
      destroyDirectBuffer in interface BufferAllocator
      Parameters:
      toBeDestroyed - The direct buffer that will be "cleaned".
    • allocate

      public ByteBuffer allocate(int size)
      Deprecated.
      Description copied from interface: BufferAllocator
      Allocate a direct ByteBuffer of the specified size.
      Specified by:
      allocate in interface BufferAllocator
      Parameters:
      size - in bytes (≥0)
      Returns:
      a new direct buffer