Package org.lwjgl.sdl

Class SDL_GPUStencilOpState.Buffer

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

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

    • Buffer

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

    • fail_op

      public int fail_op()
      Returns:
      the value of the fail_op field.
    • pass_op

      public int pass_op()
      Returns:
      the value of the pass_op field.
    • depth_fail_op

      public int depth_fail_op()
      Returns:
      the value of the depth_fail_op field.
    • compare_op

      public int compare_op()
      Returns:
      the value of the compare_op field.
    • fail_op

      public SDL_GPUStencilOpState.Buffer fail_op(int value)
      Sets the specified value to the fail_op field.
    • pass_op

      public SDL_GPUStencilOpState.Buffer pass_op(int value)
      Sets the specified value to the pass_op field.
    • depth_fail_op

      public SDL_GPUStencilOpState.Buffer depth_fail_op(int value)
      Sets the specified value to the depth_fail_op field.
    • compare_op

      public SDL_GPUStencilOpState.Buffer compare_op(int value)
      Sets the specified value to the compare_op field.