Package org.lwjgl.sdl
Class SDL_GPUDepthStencilState
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUDepthStencilState
extends Struct<SDL_GPUDepthStencilState>
implements NativeResource
struct SDL_GPUDepthStencilState {
SDL_GPUCompareOp compare_op;
{@link SDL_GPUStencilOpState SDL_GPUStencilOpState} back_stencil_state;
{@link SDL_GPUStencilOpState SDL_GPUStencilOpState} front_stencil_state;
Uint8 compare_mask;
Uint8 write_mask;
bool enable_depth_test;
bool enable_depth_write;
bool enable_stencil_test;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
}
-
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.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUDepthStencilState
(ByteBuffer container) Creates aSDL_GPUDepthStencilState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionback_stencil_state
(Consumer<SDL_GPUStencilOpState> consumer) Passes theback_stencil_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUStencilOpState
to theback_stencil_state
field.static SDL_GPUDepthStencilState
calloc()
Returns a newSDL_GPUDepthStencilState
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUDepthStencilState
calloc
(MemoryStack stack) Returns a newSDL_GPUDepthStencilState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.byte
compare_mask
(byte value) Sets the specified value to thecompare_mask
field.int
compare_op
(int value) Sets the specified value to thecompare_op
field.static SDL_GPUDepthStencilState
create()
Returns a newSDL_GPUDepthStencilState
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withBufferUtils
.static SDL_GPUDepthStencilState
create
(long address) Returns a newSDL_GPUDepthStencilState
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUDepthStencilState.Buffer
instance at the specified memory.static @Nullable SDL_GPUDepthStencilState
createSafe
(long address) static @Nullable SDL_GPUDepthStencilState.Buffer
createSafe
(long address, int capacity) boolean
enable_depth_test
(boolean value) Sets the specified value to theenable_depth_test
field.boolean
enable_depth_write
(boolean value) Sets the specified value to theenable_depth_write
field.boolean
enable_stencil_test
(boolean value) Sets the specified value to theenable_stencil_test
field.front_stencil_state
(Consumer<SDL_GPUStencilOpState> consumer) Passes thefront_stencil_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUStencilOpState
to thefront_stencil_state
field.static SDL_GPUDepthStencilState
malloc()
Returns a newSDL_GPUDepthStencilState
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUDepthStencilState
malloc
(MemoryStack stack) Returns a newSDL_GPUDepthStencilState
instance allocated on the specifiedMemoryStack
.static SDL_GPUStencilOpState
nback_stencil_state
(long struct) Unsafe version ofback_stencil_state()
.static void
nback_stencil_state
(long struct, SDL_GPUStencilOpState value) Unsafe version ofback_stencil_state
.static byte
ncompare_mask
(long struct) Unsafe version ofcompare_mask()
.static void
ncompare_mask
(long struct, byte value) Unsafe version ofcompare_mask
.static int
ncompare_op
(long struct) Unsafe version ofcompare_op()
.static void
ncompare_op
(long struct, int value) Unsafe version ofcompare_op
.static boolean
nenable_depth_test
(long struct) Unsafe version ofenable_depth_test()
.static void
nenable_depth_test
(long struct, boolean value) Unsafe version ofenable_depth_test
.static boolean
nenable_depth_write
(long struct) Unsafe version ofenable_depth_write()
.static void
nenable_depth_write
(long struct, boolean value) Unsafe version ofenable_depth_write
.static boolean
nenable_stencil_test
(long struct) Unsafe version ofenable_stencil_test()
.static void
nenable_stencil_test
(long struct, boolean value) Unsafe version ofenable_stencil_test
.static SDL_GPUStencilOpState
nfront_stencil_state
(long struct) Unsafe version offront_stencil_state()
.static void
nfront_stencil_state
(long struct, SDL_GPUStencilOpState value) Unsafe version offront_stencil_state
.static byte
npadding1
(long struct) static void
npadding1
(long struct, byte value) static byte
npadding2
(long struct) static void
npadding2
(long struct, byte value) static byte
npadding3
(long struct) static void
npadding3
(long struct, byte value) static byte
nwrite_mask
(long struct) Unsafe version ofwrite_mask()
.static void
nwrite_mask
(long struct, byte value) Unsafe version ofwrite_mask
.set
(int compare_op, SDL_GPUStencilOpState back_stencil_state, SDL_GPUStencilOpState front_stencil_state, byte compare_mask, byte write_mask, boolean enable_depth_test, boolean enable_depth_write, boolean enable_stencil_test) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.byte
write_mask
(byte value) Sets the specified value to thewrite_mask
field.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. -
COMPARE_OP
public static final int COMPARE_OPThe struct member offsets. -
BACK_STENCIL_STATE
public static final int BACK_STENCIL_STATEThe struct member offsets. -
FRONT_STENCIL_STATE
public static final int FRONT_STENCIL_STATEThe struct member offsets. -
COMPARE_MASK
public static final int COMPARE_MASKThe struct member offsets. -
WRITE_MASK
public static final int WRITE_MASKThe struct member offsets. -
ENABLE_DEPTH_TEST
public static final int ENABLE_DEPTH_TESTThe struct member offsets. -
ENABLE_DEPTH_WRITE
public static final int ENABLE_DEPTH_WRITEThe struct member offsets. -
ENABLE_STENCIL_TEST
public static final int ENABLE_STENCIL_TESTThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets. -
PADDING3
public static final int PADDING3The struct member offsets.
-
-
Constructor Details
-
SDL_GPUDepthStencilState
Creates aSDL_GPUDepthStencilState
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_GPUDepthStencilState>
-
compare_op
public int compare_op()- Returns:
- the value of the
compare_op
field.
-
back_stencil_state
- Returns:
- a
SDL_GPUStencilOpState
view of theback_stencil_state
field.
-
front_stencil_state
- Returns:
- a
SDL_GPUStencilOpState
view of thefront_stencil_state
field.
-
compare_mask
public byte compare_mask()- Returns:
- the value of the
compare_mask
field.
-
write_mask
public byte write_mask()- Returns:
- the value of the
write_mask
field.
-
enable_depth_test
public boolean enable_depth_test()- Returns:
- the value of the
enable_depth_test
field.
-
enable_depth_write
public boolean enable_depth_write()- Returns:
- the value of the
enable_depth_write
field.
-
enable_stencil_test
public boolean enable_stencil_test()- Returns:
- the value of the
enable_stencil_test
field.
-
compare_op
Sets the specified value to thecompare_op
field. -
back_stencil_state
Copies the specifiedSDL_GPUStencilOpState
to theback_stencil_state
field. -
back_stencil_state
Passes theback_stencil_state
field to the specifiedConsumer
. -
front_stencil_state
Copies the specifiedSDL_GPUStencilOpState
to thefront_stencil_state
field. -
front_stencil_state
Passes thefront_stencil_state
field to the specifiedConsumer
. -
compare_mask
Sets the specified value to thecompare_mask
field. -
write_mask
Sets the specified value to thewrite_mask
field. -
enable_depth_test
Sets the specified value to theenable_depth_test
field. -
enable_depth_write
Sets the specified value to theenable_depth_write
field. -
enable_stencil_test
Sets the specified value to theenable_stencil_test
field. -
set
public SDL_GPUDepthStencilState set(int compare_op, SDL_GPUStencilOpState back_stencil_state, SDL_GPUStencilOpState front_stencil_state, byte compare_mask, byte write_mask, boolean enable_depth_test, boolean enable_depth_write, boolean enable_stencil_test) 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_GPUDepthStencilState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUDepthStencilState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUDepthStencilState
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUDepthStencilState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUDepthStencilState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUDepthStencilState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUDepthStencilState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUDepthStencilState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncompare_op
public static int ncompare_op(long struct) Unsafe version ofcompare_op()
. -
nback_stencil_state
Unsafe version ofback_stencil_state()
. -
nfront_stencil_state
Unsafe version offront_stencil_state()
. -
ncompare_mask
public static byte ncompare_mask(long struct) Unsafe version ofcompare_mask()
. -
nwrite_mask
public static byte nwrite_mask(long struct) Unsafe version ofwrite_mask()
. -
nenable_depth_test
public static boolean nenable_depth_test(long struct) Unsafe version ofenable_depth_test()
. -
nenable_depth_write
public static boolean nenable_depth_write(long struct) Unsafe version ofenable_depth_write()
. -
nenable_stencil_test
public static boolean nenable_stencil_test(long struct) Unsafe version ofenable_stencil_test()
. -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
npadding3
public static byte npadding3(long struct) -
ncompare_op
public static void ncompare_op(long struct, int value) Unsafe version ofcompare_op
. -
nback_stencil_state
Unsafe version ofback_stencil_state
. -
nfront_stencil_state
Unsafe version offront_stencil_state
. -
ncompare_mask
public static void ncompare_mask(long struct, byte value) Unsafe version ofcompare_mask
. -
nwrite_mask
public static void nwrite_mask(long struct, byte value) Unsafe version ofwrite_mask
. -
nenable_depth_test
public static void nenable_depth_test(long struct, boolean value) Unsafe version ofenable_depth_test
. -
nenable_depth_write
public static void nenable_depth_write(long struct, boolean value) Unsafe version ofenable_depth_write
. -
nenable_stencil_test
public static void nenable_stencil_test(long struct, boolean value) Unsafe version ofenable_stencil_test
. -
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)
-