Package org.lwjgl.sdl
Class SDL_GPUStencilOpState
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct SDL_GPUStencilOpState {
SDL_GPUStencilOp fail_op;
SDL_GPUStencilOp pass_op;
SDL_GPUStencilOp depth_fail_op;
SDL_GPUCompareOp compare_op;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUStencilOpState
(ByteBuffer container) Creates aSDL_GPUStencilOpState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUStencilOpState
calloc()
Returns a newSDL_GPUStencilOpState
instance allocated withmemCalloc
.static SDL_GPUStencilOpState.Buffer
calloc
(int capacity) Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withmemCalloc
.static SDL_GPUStencilOpState.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUStencilOpState
calloc
(MemoryStack stack) Returns a newSDL_GPUStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
compare_op
(int value) Sets the specified value to thecompare_op
field.static SDL_GPUStencilOpState
create()
Returns a newSDL_GPUStencilOpState
instance allocated withBufferUtils
.static SDL_GPUStencilOpState.Buffer
create
(int capacity) Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withBufferUtils
.static SDL_GPUStencilOpState
create
(long address) Returns a newSDL_GPUStencilOpState
instance for the specified memory address.static SDL_GPUStencilOpState.Buffer
create
(long address, int capacity) Create aSDL_GPUStencilOpState.Buffer
instance at the specified memory.static @Nullable SDL_GPUStencilOpState
createSafe
(long address) static @Nullable SDL_GPUStencilOpState.Buffer
createSafe
(long address, int capacity) int
depth_fail_op
(int value) Sets the specified value to thedepth_fail_op
field.int
fail_op()
fail_op
(int value) Sets the specified value to thefail_op
field.static SDL_GPUStencilOpState
malloc()
Returns a newSDL_GPUStencilOpState
instance allocated withmemAlloc
.static SDL_GPUStencilOpState.Buffer
malloc
(int capacity) Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withmemAlloc
.static SDL_GPUStencilOpState.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUStencilOpState
malloc
(MemoryStack stack) Returns a newSDL_GPUStencilOpState
instance allocated on the specifiedMemoryStack
.static int
ncompare_op
(long struct) Unsafe version ofcompare_op()
.static void
ncompare_op
(long struct, int value) Unsafe version ofcompare_op
.static int
ndepth_fail_op
(long struct) Unsafe version ofdepth_fail_op()
.static void
ndepth_fail_op
(long struct, int value) Unsafe version ofdepth_fail_op
.static int
nfail_op
(long struct) Unsafe version offail_op()
.static void
nfail_op
(long struct, int value) Unsafe version offail_op
.static int
npass_op
(long struct) Unsafe version ofpass_op()
.static void
npass_op
(long struct, int value) Unsafe version ofpass_op
.int
pass_op()
pass_op
(int value) Sets the specified value to thepass_op
field.set
(int fail_op, int pass_op, int depth_fail_op, int compare_op) Initializes this struct with the specified values.set
(SDL_GPUStencilOpState src) 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. -
FAIL_OP
public static final int FAIL_OPThe struct member offsets. -
PASS_OP
public static final int PASS_OPThe struct member offsets. -
DEPTH_FAIL_OP
public static final int DEPTH_FAIL_OPThe struct member offsets. -
COMPARE_OP
public static final int COMPARE_OPThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUStencilOpState
Creates aSDL_GPUStencilOpState
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_GPUStencilOpState>
-
fail_op
public int fail_op()- Returns:
- the value of the
fail_op
field.
-
pass_op
public int pass_op()- Returns:
- the value of the
pass_op
field.
-
depth_fail_op
public int depth_fail_op()- Returns:
- the value of the
depth_fail_op
field.
-
compare_op
public int compare_op()- Returns:
- the value of the
compare_op
field.
-
fail_op
Sets the specified value to thefail_op
field. -
pass_op
Sets the specified value to thepass_op
field. -
depth_fail_op
Sets the specified value to thedepth_fail_op
field. -
compare_op
Sets the specified value to thecompare_op
field. -
set
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_GPUStencilOpState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUStencilOpState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUStencilOpState
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUStencilOpState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUStencilOpState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUStencilOpState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUStencilOpState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUStencilOpState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUStencilOpState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nfail_op
public static int nfail_op(long struct) Unsafe version offail_op()
. -
npass_op
public static int npass_op(long struct) Unsafe version ofpass_op()
. -
ndepth_fail_op
public static int ndepth_fail_op(long struct) Unsafe version ofdepth_fail_op()
. -
ncompare_op
public static int ncompare_op(long struct) Unsafe version ofcompare_op()
. -
nfail_op
public static void nfail_op(long struct, int value) Unsafe version offail_op
. -
npass_op
public static void npass_op(long struct, int value) Unsafe version ofpass_op
. -
ndepth_fail_op
public static void ndepth_fail_op(long struct, int value) Unsafe version ofdepth_fail_op
. -
ncompare_op
public static void ncompare_op(long struct, int value) Unsafe version ofcompare_op
.
-