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;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPURasterizerState
(ByteBuffer container) Creates aSDL_GPURasterizerState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPURasterizerState
calloc()
Returns a newSDL_GPURasterizerState
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPURasterizerState.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPURasterizerState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPURasterizerState
calloc
(MemoryStack stack) Returns a newSDL_GPURasterizerState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPURasterizerState
create()
Returns a newSDL_GPURasterizerState
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPURasterizerState.Buffer
instance allocated withBufferUtils
.static SDL_GPURasterizerState
create
(long address) Returns a newSDL_GPURasterizerState
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPURasterizerState.Buffer
instance at the specified memory.static @Nullable SDL_GPURasterizerState
createSafe
(long address) static @Nullable SDL_GPURasterizerState.Buffer
createSafe
(long address, int capacity) int
cull_mode
(int value) Sets the specified value to thecull_mode
field.float
depth_bias_clamp
(float value) Sets the specified value to thedepth_bias_clamp
field.float
depth_bias_constant_factor
(float value) Sets the specified value to thedepth_bias_constant_factor
field.float
depth_bias_slope_factor
(float value) Sets the specified value to thedepth_bias_slope_factor
field.boolean
enable_depth_bias
(boolean value) Sets the specified value to theenable_depth_bias
field.boolean
enable_depth_clip
(boolean value) Sets the specified value to theenable_depth_clip
field.int
fill_mode
(int value) Sets the specified value to thefill_mode
field.int
front_face
(int value) Sets the specified value to thefront_face
field.static SDL_GPURasterizerState
malloc()
Returns a newSDL_GPURasterizerState
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPURasterizerState.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPURasterizerState.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPURasterizerState
malloc
(MemoryStack stack) Returns a newSDL_GPURasterizerState
instance allocated on the specifiedMemoryStack
.static int
ncull_mode
(long struct) Unsafe version ofcull_mode()
.static void
ncull_mode
(long struct, int value) Unsafe version ofcull_mode
.static float
ndepth_bias_clamp
(long struct) Unsafe version ofdepth_bias_clamp()
.static void
ndepth_bias_clamp
(long struct, float value) Unsafe version ofdepth_bias_clamp
.static float
ndepth_bias_constant_factor
(long struct) Unsafe version ofdepth_bias_constant_factor()
.static void
ndepth_bias_constant_factor
(long struct, float value) Unsafe version ofdepth_bias_constant_factor
.static float
ndepth_bias_slope_factor
(long struct) Unsafe version ofdepth_bias_slope_factor()
.static void
ndepth_bias_slope_factor
(long struct, float value) Unsafe version ofdepth_bias_slope_factor
.static boolean
nenable_depth_bias
(long struct) Unsafe version ofenable_depth_bias()
.static void
nenable_depth_bias
(long struct, boolean value) Unsafe version ofenable_depth_bias
.static boolean
nenable_depth_clip
(long struct) Unsafe version ofenable_depth_clip()
.static void
nenable_depth_clip
(long struct, boolean value) Unsafe version ofenable_depth_clip
.static int
nfill_mode
(long struct) Unsafe version offill_mode()
.static void
nfill_mode
(long struct, int value) Unsafe version offill_mode
.static int
nfront_face
(long struct) Unsafe version offront_face()
.static void
nfront_face
(long struct, int value) Unsafe version offront_face
.static byte
npadding1
(long struct) static void
npadding1
(long struct, byte value) static byte
npadding2
(long struct) static void
npadding2
(long struct, byte value) 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.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FILL_MODE
public static final int FILL_MODEThe struct member offsets. -
CULL_MODE
public static final int CULL_MODEThe struct member offsets. -
FRONT_FACE
public static final int FRONT_FACEThe struct member offsets. -
DEPTH_BIAS_CONSTANT_FACTOR
public static final int DEPTH_BIAS_CONSTANT_FACTORThe struct member offsets. -
DEPTH_BIAS_CLAMP
public static final int DEPTH_BIAS_CLAMPThe struct member offsets. -
DEPTH_BIAS_SLOPE_FACTOR
public static final int DEPTH_BIAS_SLOPE_FACTORThe struct member offsets. -
ENABLE_DEPTH_BIAS
public static final int ENABLE_DEPTH_BIASThe struct member offsets. -
ENABLE_DEPTH_CLIP
public static final int ENABLE_DEPTH_CLIPThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets.
-
-
Constructor Details
-
SDL_GPURasterizerState
Creates aSDL_GPURasterizerState
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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
Sets the specified value to thefill_mode
field. -
cull_mode
Sets the specified value to thecull_mode
field. -
front_face
Sets the specified value to thefront_face
field. -
depth_bias_constant_factor
Sets the specified value to thedepth_bias_constant_factor
field. -
depth_bias_clamp
Sets the specified value to thedepth_bias_clamp
field. -
depth_bias_slope_factor
Sets the specified value to thedepth_bias_slope_factor
field. -
enable_depth_bias
Sets the specified value to theenable_depth_bias
field. -
enable_depth_clip
Sets the specified value to theenable_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
Returns a newSDL_GPURasterizerState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPURasterizerState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPURasterizerState
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPURasterizerState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPURasterizerState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPURasterizerState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPURasterizerState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPURasterizerState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPURasterizerState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPURasterizerState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPURasterizerState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPURasterizerState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nfill_mode
public static int nfill_mode(long struct) Unsafe version offill_mode()
. -
ncull_mode
public static int ncull_mode(long struct) Unsafe version ofcull_mode()
. -
nfront_face
public static int nfront_face(long struct) Unsafe version offront_face()
. -
ndepth_bias_constant_factor
public static float ndepth_bias_constant_factor(long struct) Unsafe version ofdepth_bias_constant_factor()
. -
ndepth_bias_clamp
public static float ndepth_bias_clamp(long struct) Unsafe version ofdepth_bias_clamp()
. -
ndepth_bias_slope_factor
public static float ndepth_bias_slope_factor(long struct) Unsafe version ofdepth_bias_slope_factor()
. -
nenable_depth_bias
public static boolean nenable_depth_bias(long struct) Unsafe version ofenable_depth_bias()
. -
nenable_depth_clip
public static boolean nenable_depth_clip(long struct) Unsafe version ofenable_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 offill_mode
. -
ncull_mode
public static void ncull_mode(long struct, int value) Unsafe version ofcull_mode
. -
nfront_face
public static void nfront_face(long struct, int value) Unsafe version offront_face
. -
ndepth_bias_constant_factor
public static void ndepth_bias_constant_factor(long struct, float value) Unsafe version ofdepth_bias_constant_factor
. -
ndepth_bias_clamp
public static void ndepth_bias_clamp(long struct, float value) Unsafe version ofdepth_bias_clamp
. -
ndepth_bias_slope_factor
public static void ndepth_bias_slope_factor(long struct, float value) Unsafe version ofdepth_bias_slope_factor
. -
nenable_depth_bias
public static void nenable_depth_bias(long struct, boolean value) Unsafe version ofenable_depth_bias
. -
nenable_depth_clip
public static void nenable_depth_clip(long struct, boolean value) Unsafe version ofenable_depth_clip
. -
npadding1
public static void npadding1(long struct, byte value) -
npadding2
public static void npadding2(long struct, byte value)
-