Package org.lwjgl.sdl

Class SDL_GPUIndexedIndirectDrawCommand.Buffer

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

public static class SDL_GPUIndexedIndirectDrawCommand.Buffer extends StructBuffer<SDL_GPUIndexedIndirectDrawCommand,SDL_GPUIndexedIndirectDrawCommand.Buffer> implements NativeResource
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUIndexedIndirectDrawCommand.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_GPUIndexedIndirectDrawCommand.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

    • num_indices

      public int num_indices()
      Returns:
      the value of the num_indices field.
    • num_instances

      public int num_instances()
      Returns:
      the value of the num_instances field.
    • first_index

      public int first_index()
      Returns:
      the value of the first_index field.
    • vertex_offset

      public int vertex_offset()
      Returns:
      the value of the vertex_offset field.
    • first_instance

      public int first_instance()
      Returns:
      the value of the first_instance field.
    • num_indices

      public SDL_GPUIndexedIndirectDrawCommand.Buffer num_indices(int value)
      Sets the specified value to the num_indices field.
    • num_instances

      public SDL_GPUIndexedIndirectDrawCommand.Buffer num_instances(int value)
      Sets the specified value to the num_instances field.
    • first_index

      public SDL_GPUIndexedIndirectDrawCommand.Buffer first_index(int value)
      Sets the specified value to the first_index field.
    • vertex_offset

      public SDL_GPUIndexedIndirectDrawCommand.Buffer vertex_offset(int value)
      Sets the specified value to the vertex_offset field.
    • first_instance

      public SDL_GPUIndexedIndirectDrawCommand.Buffer first_instance(int value)
      Sets the specified value to the first_instance field.