Package org.lwjgl.sdl

Class SDL_GPUMultisampleState

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUMultisampleState extends Struct<SDL_GPUMultisampleState> implements NativeResource

 struct SDL_GPUMultisampleState {
     SDL_GPUSampleCount sample_count;
     Uint32 sample_mask;
     bool enable_mask;
     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.
    • SAMPLE_COUNT

      public static final int SAMPLE_COUNT
      The struct member offsets.
    • SAMPLE_MASK

      public static final int SAMPLE_MASK
      The struct member offsets.
    • ENABLE_MASK

      public static final int ENABLE_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.
    • PADDING3

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

    • SDL_GPUMultisampleState

      public SDL_GPUMultisampleState(ByteBuffer container)
      Creates a SDL_GPUMultisampleState 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_GPUMultisampleState>
    • sample_count

      public int sample_count()
      Returns:
      the value of the sample_count field.
    • sample_mask

      public int sample_mask()
      Returns:
      the value of the sample_mask field.
    • enable_mask

      public boolean enable_mask()
      Returns:
      the value of the enable_mask field.
    • sample_count

      public SDL_GPUMultisampleState sample_count(int value)
      Sets the specified value to the sample_count field.
    • sample_mask

      public SDL_GPUMultisampleState sample_mask(int value)
      Sets the specified value to the sample_mask field.
    • enable_mask

      public SDL_GPUMultisampleState enable_mask(boolean value)
      Sets the specified value to the enable_mask field.
    • set

      public SDL_GPUMultisampleState set(int sample_count, int sample_mask, boolean enable_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_GPUMultisampleState malloc()
      Returns a new SDL_GPUMultisampleState instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nsample_count(long struct)
      Unsafe version of sample_count().
    • nsample_mask

      public static int nsample_mask(long struct)
      Unsafe version of sample_mask().
    • nenable_mask

      public static boolean nenable_mask(long struct)
      Unsafe version of enable_mask().
    • npadding1

      public static byte npadding1(long struct)
    • npadding2

      public static byte npadding2(long struct)
    • npadding3

      public static byte npadding3(long struct)
    • nsample_count

      public static void nsample_count(long struct, int value)
      Unsafe version of sample_count.
    • nsample_mask

      public static void nsample_mask(long struct, int value)
      Unsafe version of sample_mask.
    • nenable_mask

      public static void nenable_mask(long struct, boolean value)
      Unsafe version of enable_mask.
    • 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)