Package org.lwjgl.sdl

Class SDL_GPURasterizerState

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPURasterizerState extends Struct<SDL_GPURasterizerState> implements NativeResource

 struct SDL_GPURasterizerState {
     SDL_GPUFillMode fill_mode;
     SDL_GPUCullMode cull_mode;
     SDL_GPUFrontFace front_face;
     float depth_bias_constant_factor;
     float depth_bias_clamp;
     float depth_bias_slope_factor;
     bool enable_depth_bias;
     bool enable_depth_clip;
     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.
    • FILL_MODE

      public static final int FILL_MODE
      The struct member offsets.
    • CULL_MODE

      public static final int CULL_MODE
      The struct member offsets.
    • FRONT_FACE

      public static final int FRONT_FACE
      The struct member offsets.
    • DEPTH_BIAS_CONSTANT_FACTOR

      public static final int DEPTH_BIAS_CONSTANT_FACTOR
      The struct member offsets.
    • DEPTH_BIAS_CLAMP

      public static final int DEPTH_BIAS_CLAMP
      The struct member offsets.
    • DEPTH_BIAS_SLOPE_FACTOR

      public static final int DEPTH_BIAS_SLOPE_FACTOR
      The struct member offsets.
    • ENABLE_DEPTH_BIAS

      public static final int ENABLE_DEPTH_BIAS
      The struct member offsets.
    • ENABLE_DEPTH_CLIP

      public static final int ENABLE_DEPTH_CLIP
      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_GPURasterizerState

      public SDL_GPURasterizerState(ByteBuffer container)
      Creates a SDL_GPURasterizerState 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_GPURasterizerState>
    • fill_mode

      public int fill_mode()
      Returns:
      the value of the fill_mode field.
    • cull_mode

      public int cull_mode()
      Returns:
      the value of the cull_mode field.
    • front_face

      public int front_face()
      Returns:
      the value of the front_face field.
    • depth_bias_constant_factor

      public float depth_bias_constant_factor()
      Returns:
      the value of the depth_bias_constant_factor field.
    • depth_bias_clamp

      public float depth_bias_clamp()
      Returns:
      the value of the depth_bias_clamp field.
    • depth_bias_slope_factor

      public float depth_bias_slope_factor()
      Returns:
      the value of the depth_bias_slope_factor field.
    • enable_depth_bias

      public boolean enable_depth_bias()
      Returns:
      the value of the enable_depth_bias field.
    • enable_depth_clip

      public boolean enable_depth_clip()
      Returns:
      the value of the enable_depth_clip field.
    • fill_mode

      public SDL_GPURasterizerState fill_mode(int value)
      Sets the specified value to the fill_mode field.
    • cull_mode

      public SDL_GPURasterizerState cull_mode(int value)
      Sets the specified value to the cull_mode field.
    • front_face

      public SDL_GPURasterizerState front_face(int value)
      Sets the specified value to the front_face field.
    • depth_bias_constant_factor

      public SDL_GPURasterizerState depth_bias_constant_factor(float value)
      Sets the specified value to the depth_bias_constant_factor field.
    • depth_bias_clamp

      public SDL_GPURasterizerState depth_bias_clamp(float value)
      Sets the specified value to the depth_bias_clamp field.
    • depth_bias_slope_factor

      public SDL_GPURasterizerState depth_bias_slope_factor(float value)
      Sets the specified value to the depth_bias_slope_factor field.
    • enable_depth_bias

      public SDL_GPURasterizerState enable_depth_bias(boolean value)
      Sets the specified value to the enable_depth_bias field.
    • enable_depth_clip

      public SDL_GPURasterizerState enable_depth_clip(boolean value)
      Sets the specified value to the enable_depth_clip field.
    • set

      public SDL_GPURasterizerState set(int fill_mode, int cull_mode, int front_face, float depth_bias_constant_factor, float depth_bias_clamp, float depth_bias_slope_factor, boolean enable_depth_bias, boolean enable_depth_clip)
      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_GPURasterizerState malloc()
      Returns a new SDL_GPURasterizerState instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nfill_mode(long struct)
      Unsafe version of fill_mode().
    • ncull_mode

      public static int ncull_mode(long struct)
      Unsafe version of cull_mode().
    • nfront_face

      public static int nfront_face(long struct)
      Unsafe version of front_face().
    • ndepth_bias_constant_factor

      public static float ndepth_bias_constant_factor(long struct)
      Unsafe version of depth_bias_constant_factor().
    • ndepth_bias_clamp

      public static float ndepth_bias_clamp(long struct)
      Unsafe version of depth_bias_clamp().
    • ndepth_bias_slope_factor

      public static float ndepth_bias_slope_factor(long struct)
      Unsafe version of depth_bias_slope_factor().
    • nenable_depth_bias

      public static boolean nenable_depth_bias(long struct)
      Unsafe version of enable_depth_bias().
    • nenable_depth_clip

      public static boolean nenable_depth_clip(long struct)
      Unsafe version of enable_depth_clip().
    • npadding1

      public static byte npadding1(long struct)
    • npadding2

      public static byte npadding2(long struct)
    • nfill_mode

      public static void nfill_mode(long struct, int value)
      Unsafe version of fill_mode.
    • ncull_mode

      public static void ncull_mode(long struct, int value)
      Unsafe version of cull_mode.
    • nfront_face

      public static void nfront_face(long struct, int value)
      Unsafe version of front_face.
    • ndepth_bias_constant_factor

      public static void ndepth_bias_constant_factor(long struct, float value)
      Unsafe version of depth_bias_constant_factor.
    • ndepth_bias_clamp

      public static void ndepth_bias_clamp(long struct, float value)
      Unsafe version of depth_bias_clamp.
    • ndepth_bias_slope_factor

      public static void ndepth_bias_slope_factor(long struct, float value)
      Unsafe version of depth_bias_slope_factor.
    • nenable_depth_bias

      public static void nenable_depth_bias(long struct, boolean value)
      Unsafe version of enable_depth_bias.
    • nenable_depth_clip

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

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

      public static void npadding2(long struct, byte value)