Package org.lwjgl.sdl

Class SDL_GPUBlitInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUBlitInfo extends Struct<SDL_GPUBlitInfo> implements NativeResource

 struct SDL_GPUBlitInfo {
     {@link SDL_GPUBlitRegion SDL_GPUBlitRegion} source;
     {@link SDL_GPUBlitRegion SDL_GPUBlitRegion} destination;
     SDL_GPULoadOp load_op;
     {@link SDL_FColor SDL_FColor} clear_color;
     SDL_FlipMode flip_mode;
     SDL_GPUFilter filter;
     bool cycle;
     Uint8 padding1;
     Uint8 padding2;
     Uint8 padding3;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SOURCE
      The struct member offsets.
    • DESTINATION

      public static final int DESTINATION
      The struct member offsets.
    • LOAD_OP

      public static final int LOAD_OP
      The struct member offsets.
    • CLEAR_COLOR

      public static final int CLEAR_COLOR
      The struct member offsets.
    • FLIP_MODE

      public static final int FLIP_MODE
      The struct member offsets.
    • FILTER

      public static final int FILTER
      The struct member offsets.
    • CYCLE

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

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

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

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

    • SDL_GPUBlitInfo

      public SDL_GPUBlitInfo(ByteBuffer container)
      Creates a SDL_GPUBlitInfo 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_GPUBlitInfo>
    • source

      public SDL_GPUBlitRegion source()
      Returns:
      a SDL_GPUBlitRegion view of the source field.
    • destination

      public SDL_GPUBlitRegion destination()
      Returns:
      a SDL_GPUBlitRegion view of the destination field.
    • load_op

      public int load_op()
      Returns:
      the value of the load_op field.
    • clear_color

      public SDL_FColor clear_color()
      Returns:
      a SDL_FColor view of the clear_color field.
    • flip_mode

      public int flip_mode()
      Returns:
      the value of the flip_mode field.
    • filter

      public int filter()
      Returns:
      the value of the filter field.
    • cycle

      public boolean cycle()
      Returns:
      the value of the cycle field.
    • source

      public SDL_GPUBlitInfo source(SDL_GPUBlitRegion value)
      Copies the specified SDL_GPUBlitRegion to the source field.
    • source

      public SDL_GPUBlitInfo source(Consumer<SDL_GPUBlitRegion> consumer)
      Passes the source field to the specified Consumer.
    • destination

      public SDL_GPUBlitInfo destination(SDL_GPUBlitRegion value)
      Copies the specified SDL_GPUBlitRegion to the destination field.
    • destination

      public SDL_GPUBlitInfo destination(Consumer<SDL_GPUBlitRegion> consumer)
      Passes the destination field to the specified Consumer.
    • load_op

      public SDL_GPUBlitInfo load_op(int value)
      Sets the specified value to the load_op field.
    • clear_color

      public SDL_GPUBlitInfo clear_color(SDL_FColor value)
      Copies the specified SDL_FColor to the clear_color field.
    • clear_color

      public SDL_GPUBlitInfo clear_color(Consumer<SDL_FColor> consumer)
      Passes the clear_color field to the specified Consumer.
    • flip_mode

      public SDL_GPUBlitInfo flip_mode(int value)
      Sets the specified value to the flip_mode field.
    • filter

      public SDL_GPUBlitInfo filter(int value)
      Sets the specified value to the filter field.
    • cycle

      public SDL_GPUBlitInfo cycle(boolean value)
      Sets the specified value to the cycle field.
    • set

      public SDL_GPUBlitInfo set(SDL_GPUBlitRegion source, SDL_GPUBlitRegion destination, int load_op, SDL_FColor clear_color, int flip_mode, int filter, boolean cycle)
      Initializes this struct with the specified values.
    • set

      public SDL_GPUBlitInfo set(SDL_GPUBlitInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static SDL_GPUBlitRegion nsource(long struct)
      Unsafe version of source().
    • ndestination

      public static SDL_GPUBlitRegion ndestination(long struct)
      Unsafe version of destination().
    • nload_op

      public static int nload_op(long struct)
      Unsafe version of load_op().
    • nclear_color

      public static SDL_FColor nclear_color(long struct)
      Unsafe version of clear_color().
    • nflip_mode

      public static int nflip_mode(long struct)
      Unsafe version of flip_mode().
    • nfilter

      public static int nfilter(long struct)
      Unsafe version of filter().
    • ncycle

      public static boolean ncycle(long struct)
      Unsafe version of cycle().
    • npadding1

      public static byte npadding1(long struct)
    • npadding2

      public static byte npadding2(long struct)
    • npadding3

      public static byte npadding3(long struct)
    • nsource

      public static void nsource(long struct, SDL_GPUBlitRegion value)
      Unsafe version of source.
    • ndestination

      public static void ndestination(long struct, SDL_GPUBlitRegion value)
      Unsafe version of destination.
    • nload_op

      public static void nload_op(long struct, int value)
      Unsafe version of load_op.
    • nclear_color

      public static void nclear_color(long struct, SDL_FColor value)
      Unsafe version of clear_color.
    • nflip_mode

      public static void nflip_mode(long struct, int value)
      Unsafe version of flip_mode.
    • nfilter

      public static void nfilter(long struct, int value)
      Unsafe version of filter.
    • ncycle

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

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

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

      public static void npadding3(long struct, byte value)
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate