Class TLcdGLNIOBufferFactory

java.lang.Object
com.luciad.view.opengl.binding.TLcdGLNIOBufferFactory

public class TLcdGLNIOBufferFactory extends Object
A factory that creates NIO buffers which are compatible with the accompanying OpenGL binding. Clients should use this factory to allocate all buffers that are provided as parameters to OpenGL calls. This ensures that the buffers meet any requirements imposed by a particular OpenGL binding with regards to heap vs. direct buffers or byte ordering.

An instance of this class can be obtained via ALcdGLBinding.getNIOBufferFactory().

Since:
2019.0
  • Constructor Details Link icon

    • TLcdGLNIOBufferFactory Link icon

      protected TLcdGLNIOBufferFactory()
  • Method Details Link icon

    • newByteBuffer Link icon

      public ByteBuffer newByteBuffer(int aCapacity)
    • newCharBuffer Link icon

      public final CharBuffer newCharBuffer(int aCapacity)
    • newShortBuffer Link icon

      public final ShortBuffer newShortBuffer(int aCapacity)
    • newIntBuffer Link icon

      public final IntBuffer newIntBuffer(int aCapacity)
    • newLongBuffer Link icon

      public final LongBuffer newLongBuffer(int aCapacity)
    • newFloatBuffer Link icon

      public final FloatBuffer newFloatBuffer(int aCapacity)
    • newDoubleBuffer Link icon

      public final DoubleBuffer newDoubleBuffer(int aCapacity)
    • newPointerBuffer Link icon

      public ILcdPointerBuffer newPointerBuffer(int aCapacity)
    • newManagedByteBuffer Link icon

      public ByteBuffer newManagedByteBuffer(int aCapacity)
    • newManagedCharBuffer Link icon

      public final CharBuffer newManagedCharBuffer(int aCapacity)
    • newManagedShortBuffer Link icon

      public final ShortBuffer newManagedShortBuffer(int aCapacity)
    • newManagedIntBuffer Link icon

      public final IntBuffer newManagedIntBuffer(int aCapacity)
    • newManagedLongBuffer Link icon

      public final LongBuffer newManagedLongBuffer(int aCapacity)
    • newManagedFloatBuffer Link icon

      public final FloatBuffer newManagedFloatBuffer(int aCapacity)
    • newManagedDoubleBuffer Link icon

      public final DoubleBuffer newManagedDoubleBuffer(int aCapacity)
    • copy Link icon

      public ByteBuffer copy(byte[] aData)
    • copy Link icon

      public ShortBuffer copy(short[] aData)
    • copy Link icon

      public IntBuffer copy(int[] aData)
    • copy Link icon

      public FloatBuffer copy(float[] aData)
    • copy Link icon

      public DoubleBuffer copy(double[] aData)
    • createCompatibleBuffer Link icon

      public final Buffer createCompatibleBuffer(Buffer aBuffer, int aCapacity)
    • makeCompatible Link icon

      public Buffer makeCompatible(Buffer aBuffer)
    • doWithTempByteBuffer Link icon

      public void doWithTempByteBuffer(int aCapacity, Consumer<ByteBuffer> aFunc)
    • doWithTempPointerBuffer Link icon

      public void doWithTempPointerBuffer(Buffer[] aBuffers, Consumer<ILcdPointerBuffer> aFunc)