Package org.lwjgl.sdl

Class SDL_GPUTextureTransferInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPUTextureTransferInfo>, NativeResource, Pointer
Enclosing class:
SDL_GPUTextureTransferInfo

public static class SDL_GPUTextureTransferInfo.Buffer extends StructBuffer<SDL_GPUTextureTransferInfo,SDL_GPUTextureTransferInfo.Buffer> implements NativeResource
An array of SDL_GPUTextureTransferInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUTextureTransferInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_GPUTextureTransferInfo.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • transfer_buffer

      public long transfer_buffer()
      Returns:
      the value of the transfer_buffer field.
    • offset

      public int offset()
      Returns:
      the value of the offset field.
    • pixels_per_row

      public int pixels_per_row()
      Returns:
      the value of the pixels_per_row field.
    • rows_per_layer

      public int rows_per_layer()
      Returns:
      the value of the rows_per_layer field.
    • transfer_buffer

      public SDL_GPUTextureTransferInfo.Buffer transfer_buffer(long value)
      Sets the specified value to the transfer_buffer field.
    • offset

      public SDL_GPUTextureTransferInfo.Buffer offset(int value)
      Sets the specified value to the offset field.
    • pixels_per_row

      public SDL_GPUTextureTransferInfo.Buffer pixels_per_row(int value)
      Sets the specified value to the pixels_per_row field.
    • rows_per_layer

      public SDL_GPUTextureTransferInfo.Buffer rows_per_layer(int value)
      Sets the specified value to the rows_per_layer field.