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;
SDL_GPUStencilOpState back_stencil_state;
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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_GPUDepthStencilStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionback_stencil_state(Consumer<SDL_GPUStencilOpState> consumer) Passes theback_stencil_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUStencilOpStateto theback_stencil_statefield.static SDL_GPUDepthStencilStatecalloc()Returns a newSDL_GPUDepthStencilStateinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUDepthStencilStatecalloc(MemoryStack stack) Returns a newSDL_GPUDepthStencilStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytecompare_mask(byte value) Sets the specified value to thecompare_maskfield.intcompare_op(int value) Sets the specified value to thecompare_opfield.static SDL_GPUDepthStencilStatecreate()Returns a newSDL_GPUDepthStencilStateinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withBufferUtils.static SDL_GPUDepthStencilStatecreate(long address) Returns a newSDL_GPUDepthStencilStateinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUDepthStencilState.Bufferinstance at the specified memory.static @Nullable SDL_GPUDepthStencilStatecreateSafe(long address) static @Nullable SDL_GPUDepthStencilState.BuffercreateSafe(long address, int capacity) booleanenable_depth_test(boolean value) Sets the specified value to theenable_depth_testfield.booleanenable_depth_write(boolean value) Sets the specified value to theenable_depth_writefield.booleanenable_stencil_test(boolean value) Sets the specified value to theenable_stencil_testfield.front_stencil_state(Consumer<SDL_GPUStencilOpState> consumer) Passes thefront_stencil_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUStencilOpStateto thefront_stencil_statefield.static SDL_GPUDepthStencilStatemalloc()Returns a newSDL_GPUDepthStencilStateinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUDepthStencilStatemalloc(MemoryStack stack) Returns a newSDL_GPUDepthStencilStateinstance allocated on the specifiedMemoryStack.static SDL_GPUStencilOpStatenback_stencil_state(long struct) Unsafe version ofback_stencil_state().static voidnback_stencil_state(long struct, SDL_GPUStencilOpState value) Unsafe version ofback_stencil_state.static bytencompare_mask(long struct) Unsafe version ofcompare_mask().static voidncompare_mask(long struct, byte value) Unsafe version ofcompare_mask.static intncompare_op(long struct) Unsafe version ofcompare_op().static voidncompare_op(long struct, int value) Unsafe version ofcompare_op.static booleannenable_depth_test(long struct) Unsafe version ofenable_depth_test().static voidnenable_depth_test(long struct, boolean value) Unsafe version ofenable_depth_test.static booleannenable_depth_write(long struct) Unsafe version ofenable_depth_write().static voidnenable_depth_write(long struct, boolean value) Unsafe version ofenable_depth_write.static booleannenable_stencil_test(long struct) Unsafe version ofenable_stencil_test().static voidnenable_stencil_test(long struct, boolean value) Unsafe version ofenable_stencil_test.static SDL_GPUStencilOpStatenfront_stencil_state(long struct) Unsafe version offront_stencil_state().static voidnfront_stencil_state(long struct, SDL_GPUStencilOpState value) Unsafe version offront_stencil_state.static bytenpadding1(long struct) static voidnpadding1(long struct, byte value) static bytenpadding2(long struct) static voidnpadding2(long struct, byte value) static bytenpadding3(long struct) static voidnpadding3(long struct, byte value) static bytenwrite_mask(long struct) Unsafe version ofwrite_mask().static voidnwrite_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.intsizeof()Returnssizeof(struct).bytewrite_mask(byte value) Sets the specified value to thewrite_maskfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_GPUDepthStencilStateinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SDL_GPUDepthStencilState>
-
compare_op
public int compare_op()- Returns:
- the value of the
compare_opfield.
-
back_stencil_state
- Returns:
- a
SDL_GPUStencilOpStateview of theback_stencil_statefield.
-
front_stencil_state
- Returns:
- a
SDL_GPUStencilOpStateview of thefront_stencil_statefield.
-
compare_mask
public byte compare_mask()- Returns:
- the value of the
compare_maskfield.
-
write_mask
public byte write_mask()- Returns:
- the value of the
write_maskfield.
-
enable_depth_test
public boolean enable_depth_test()- Returns:
- the value of the
enable_depth_testfield.
-
enable_depth_write
public boolean enable_depth_write()- Returns:
- the value of the
enable_depth_writefield.
-
enable_stencil_test
public boolean enable_stencil_test()- Returns:
- the value of the
enable_stencil_testfield.
-
compare_op
Sets the specified value to thecompare_opfield. -
back_stencil_state
Copies the specifiedSDL_GPUStencilOpStateto theback_stencil_statefield. -
back_stencil_state
Passes theback_stencil_statefield to the specifiedConsumer. -
front_stencil_state
Copies the specifiedSDL_GPUStencilOpStateto thefront_stencil_statefield. -
front_stencil_state
Passes thefront_stencil_statefield to the specifiedConsumer. -
compare_mask
Sets the specified value to thecompare_maskfield. -
write_mask
Sets the specified value to thewrite_maskfield. -
enable_depth_test
Sets the specified value to theenable_depth_testfield. -
enable_depth_write
Sets the specified value to theenable_depth_writefield. -
enable_stencil_test
Sets the specified value to theenable_stencil_testfield. -
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_GPUDepthStencilStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUDepthStencilStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUDepthStencilStateinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUDepthStencilStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUDepthStencilState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUDepthStencilStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUDepthStencilStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUDepthStencilState.Bufferinstance allocated on the specifiedMemoryStackand 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)
-