Package org.lwjgl.sdl

Class SDL_GPUStencilOpState

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUStencilOpState extends Struct<SDL_GPUStencilOpState> implements NativeResource

 struct SDL_GPUStencilOpState {
     SDL_GPUStencilOp fail_op;
     SDL_GPUStencilOp pass_op;
     SDL_GPUStencilOp depth_fail_op;
     SDL_GPUCompareOp compare_op;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FAIL_OP

      public static final int FAIL_OP
      The struct member offsets.
    • PASS_OP

      public static final int PASS_OP
      The struct member offsets.
    • DEPTH_FAIL_OP

      public static final int DEPTH_FAIL_OP
      The struct member offsets.
    • COMPARE_OP

      public static final int COMPARE_OP
      The struct member offsets.
  • Constructor Details

    • SDL_GPUStencilOpState

      public SDL_GPUStencilOpState(ByteBuffer container)
      Creates a SDL_GPUStencilOpState instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<SDL_GPUStencilOpState>
    • 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 fail_op(int value)
      Sets the specified value to the fail_op field.
    • pass_op

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

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

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

      public SDL_GPUStencilOpState set(int fail_op, int pass_op, int depth_fail_op, int compare_op)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static SDL_GPUStencilOpState malloc()
      Returns a new SDL_GPUStencilOpState instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static SDL_GPUStencilOpState calloc()
      Returns a new SDL_GPUStencilOpState instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static SDL_GPUStencilOpState create()
      Returns a new SDL_GPUStencilOpState instance allocated with BufferUtils.
    • create

      public static SDL_GPUStencilOpState create(long address)
      Returns a new SDL_GPUStencilOpState instance for the specified memory address.
    • createSafe

      public static @Nullable SDL_GPUStencilOpState createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static SDL_GPUStencilOpState.Buffer malloc(int capacity)
      Returns a new SDL_GPUStencilOpState.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static SDL_GPUStencilOpState.Buffer calloc(int capacity)
      Returns a new SDL_GPUStencilOpState.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SDL_GPUStencilOpState.Buffer create(int capacity)
      Returns a new SDL_GPUStencilOpState.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SDL_GPUStencilOpState.Buffer create(long address, int capacity)
      Create a SDL_GPUStencilOpState.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable SDL_GPUStencilOpState.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static SDL_GPUStencilOpState malloc(MemoryStack stack)
      Returns a new SDL_GPUStencilOpState instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static SDL_GPUStencilOpState calloc(MemoryStack stack)
      Returns a new SDL_GPUStencilOpState instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static SDL_GPUStencilOpState.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUStencilOpState.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static SDL_GPUStencilOpState.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUStencilOpState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nfail_op

      public static int nfail_op(long struct)
      Unsafe version of fail_op().
    • npass_op

      public static int npass_op(long struct)
      Unsafe version of pass_op().
    • ndepth_fail_op

      public static int ndepth_fail_op(long struct)
      Unsafe version of depth_fail_op().
    • ncompare_op

      public static int ncompare_op(long struct)
      Unsafe version of compare_op().
    • nfail_op

      public static void nfail_op(long struct, int value)
      Unsafe version of fail_op.
    • npass_op

      public static void npass_op(long struct, int value)
      Unsafe version of pass_op.
    • ndepth_fail_op

      public static void ndepth_fail_op(long struct, int value)
      Unsafe version of depth_fail_op.
    • ncompare_op

      public static void ncompare_op(long struct, int value)
      Unsafe version of compare_op.