Package org.lwjgl.sdl

Class SDL_GPUColorTargetBlendState

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUColorTargetBlendState extends Struct<SDL_GPUColorTargetBlendState> implements NativeResource

 struct SDL_GPUColorTargetBlendState {
     SDL_GPUBlendFactor src_color_blendfactor;
     SDL_GPUBlendFactor dst_color_blendfactor;
     SDL_GPUBlendOp color_blend_op;
     SDL_GPUBlendFactor src_alpha_blendfactor;
     SDL_GPUBlendFactor dst_alpha_blendfactor;
     SDL_GPUBlendOp alpha_blend_op;
     SDL_GPUColorComponentFlags color_write_mask;
     bool enable_blend;
     bool enable_color_write_mask;
     Uint8 padding1;
     Uint8 padding2;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SRC_COLOR_BLENDFACTOR
      The struct member offsets.
    • DST_COLOR_BLENDFACTOR

      public static final int DST_COLOR_BLENDFACTOR
      The struct member offsets.
    • COLOR_BLEND_OP

      public static final int COLOR_BLEND_OP
      The struct member offsets.
    • SRC_ALPHA_BLENDFACTOR

      public static final int SRC_ALPHA_BLENDFACTOR
      The struct member offsets.
    • DST_ALPHA_BLENDFACTOR

      public static final int DST_ALPHA_BLENDFACTOR
      The struct member offsets.
    • ALPHA_BLEND_OP

      public static final int ALPHA_BLEND_OP
      The struct member offsets.
    • COLOR_WRITE_MASK

      public static final int COLOR_WRITE_MASK
      The struct member offsets.
    • ENABLE_BLEND

      public static final int ENABLE_BLEND
      The struct member offsets.
    • ENABLE_COLOR_WRITE_MASK

      public static final int ENABLE_COLOR_WRITE_MASK
      The struct member offsets.
    • PADDING1

      public static final int PADDING1
      The struct member offsets.
    • PADDING2

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

    • SDL_GPUColorTargetBlendState

      public SDL_GPUColorTargetBlendState(ByteBuffer container)
      Creates a SDL_GPUColorTargetBlendState 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_GPUColorTargetBlendState>
    • src_color_blendfactor

      public int src_color_blendfactor()
      Returns:
      the value of the src_color_blendfactor field.
    • dst_color_blendfactor

      public int dst_color_blendfactor()
      Returns:
      the value of the dst_color_blendfactor field.
    • color_blend_op

      public int color_blend_op()
      Returns:
      the value of the color_blend_op field.
    • src_alpha_blendfactor

      public int src_alpha_blendfactor()
      Returns:
      the value of the src_alpha_blendfactor field.
    • dst_alpha_blendfactor

      public int dst_alpha_blendfactor()
      Returns:
      the value of the dst_alpha_blendfactor field.
    • alpha_blend_op

      public int alpha_blend_op()
      Returns:
      the value of the alpha_blend_op field.
    • color_write_mask

      public byte color_write_mask()
      Returns:
      the value of the color_write_mask field.
    • enable_blend

      public boolean enable_blend()
      Returns:
      the value of the enable_blend field.
    • enable_color_write_mask

      public boolean enable_color_write_mask()
      Returns:
      the value of the enable_color_write_mask field.
    • src_color_blendfactor

      public SDL_GPUColorTargetBlendState src_color_blendfactor(int value)
      Sets the specified value to the src_color_blendfactor field.
    • dst_color_blendfactor

      public SDL_GPUColorTargetBlendState dst_color_blendfactor(int value)
      Sets the specified value to the dst_color_blendfactor field.
    • color_blend_op

      public SDL_GPUColorTargetBlendState color_blend_op(int value)
      Sets the specified value to the color_blend_op field.
    • src_alpha_blendfactor

      public SDL_GPUColorTargetBlendState src_alpha_blendfactor(int value)
      Sets the specified value to the src_alpha_blendfactor field.
    • dst_alpha_blendfactor

      public SDL_GPUColorTargetBlendState dst_alpha_blendfactor(int value)
      Sets the specified value to the dst_alpha_blendfactor field.
    • alpha_blend_op

      public SDL_GPUColorTargetBlendState alpha_blend_op(int value)
      Sets the specified value to the alpha_blend_op field.
    • color_write_mask

      public SDL_GPUColorTargetBlendState color_write_mask(byte value)
      Sets the specified value to the color_write_mask field.
    • enable_blend

      public SDL_GPUColorTargetBlendState enable_blend(boolean value)
      Sets the specified value to the enable_blend field.
    • enable_color_write_mask

      public SDL_GPUColorTargetBlendState enable_color_write_mask(boolean value)
      Sets the specified value to the enable_color_write_mask field.
    • set

      public SDL_GPUColorTargetBlendState set(int src_color_blendfactor, int dst_color_blendfactor, int color_blend_op, int src_alpha_blendfactor, int dst_alpha_blendfactor, int alpha_blend_op, byte color_write_mask, boolean enable_blend, boolean enable_color_write_mask)
      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_GPUColorTargetBlendState malloc()
      Returns a new SDL_GPUColorTargetBlendState instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static SDL_GPUColorTargetBlendState calloc(MemoryStack stack)
      Returns a new SDL_GPUColorTargetBlendState 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_GPUColorTargetBlendState.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUColorTargetBlendState.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static SDL_GPUColorTargetBlendState.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUColorTargetBlendState.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
    • nsrc_color_blendfactor

      public static int nsrc_color_blendfactor(long struct)
      Unsafe version of src_color_blendfactor().
    • ndst_color_blendfactor

      public static int ndst_color_blendfactor(long struct)
      Unsafe version of dst_color_blendfactor().
    • ncolor_blend_op

      public static int ncolor_blend_op(long struct)
      Unsafe version of color_blend_op().
    • nsrc_alpha_blendfactor

      public static int nsrc_alpha_blendfactor(long struct)
      Unsafe version of src_alpha_blendfactor().
    • ndst_alpha_blendfactor

      public static int ndst_alpha_blendfactor(long struct)
      Unsafe version of dst_alpha_blendfactor().
    • nalpha_blend_op

      public static int nalpha_blend_op(long struct)
      Unsafe version of alpha_blend_op().
    • ncolor_write_mask

      public static byte ncolor_write_mask(long struct)
      Unsafe version of color_write_mask().
    • nenable_blend

      public static boolean nenable_blend(long struct)
      Unsafe version of enable_blend().
    • nenable_color_write_mask

      public static boolean nenable_color_write_mask(long struct)
      Unsafe version of enable_color_write_mask().
    • npadding1

      public static byte npadding1(long struct)
    • npadding2

      public static byte npadding2(long struct)
    • nsrc_color_blendfactor

      public static void nsrc_color_blendfactor(long struct, int value)
      Unsafe version of src_color_blendfactor.
    • ndst_color_blendfactor

      public static void ndst_color_blendfactor(long struct, int value)
      Unsafe version of dst_color_blendfactor.
    • ncolor_blend_op

      public static void ncolor_blend_op(long struct, int value)
      Unsafe version of color_blend_op.
    • nsrc_alpha_blendfactor

      public static void nsrc_alpha_blendfactor(long struct, int value)
      Unsafe version of src_alpha_blendfactor.
    • ndst_alpha_blendfactor

      public static void ndst_alpha_blendfactor(long struct, int value)
      Unsafe version of dst_alpha_blendfactor.
    • nalpha_blend_op

      public static void nalpha_blend_op(long struct, int value)
      Unsafe version of alpha_blend_op.
    • ncolor_write_mask

      public static void ncolor_write_mask(long struct, byte value)
      Unsafe version of color_write_mask.
    • nenable_blend

      public static void nenable_blend(long struct, boolean value)
      Unsafe version of enable_blend.
    • nenable_color_write_mask

      public static void nenable_color_write_mask(long struct, boolean value)
      Unsafe version of enable_color_write_mask.
    • npadding1

      public static void npadding1(long struct, byte value)
    • npadding2

      public static void npadding2(long struct, byte value)