Class DirectDataBufferInt

java.lang.Object
java.awt.image.DataBuffer
com.jogamp.nativewindow.awt.DirectDataBufferInt

public final class DirectDataBufferInt extends DataBuffer
DataBuffer specialization using NIO direct buffer of type DataBuffer.TYPE_INT as storage.
  • Constructor Details

    • DirectDataBufferInt

      public DirectDataBufferInt(int size)
      Constructs an nio integer-based DataBuffer with a single bank and the specified size.
      Parameters:
      size - The size of the DataBuffer.
    • DirectDataBufferInt

      public DirectDataBufferInt(int size, int numBanks)
      Constructs an nio integer-based DataBuffer with the specified number of banks, all of which are the specified size.
      Parameters:
      size - The size of the banks in the DataBuffer.
      numBanks - The number of banks in the aDataBuffer.
    • DirectDataBufferInt

      public DirectDataBufferInt(ByteBuffer dataArray, int size)
      Constructs an nio integer-based DataBuffer with a single bank using the specified array.

      Only the first size elements should be used by accessors of this DataBuffer. dataArray must be large enough to hold size elements.

      Parameters:
      dataArray - The NIO ByteBuffer array, holding the integer data for the DataBuffer.
      size - The size of the DataBuffer bank.
  • Method Details