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.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 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_GPUStencilOpStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUStencilOpStatecalloc()Returns a newSDL_GPUStencilOpStateinstance allocated withmemCalloc.static SDL_GPUStencilOpState.Buffercalloc(int capacity) Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withmemCalloc.static SDL_GPUStencilOpState.Buffercalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUStencilOpStatecalloc(MemoryStack stack) Returns a newSDL_GPUStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompare_op(int value) Sets the specified value to thecompare_opfield.static SDL_GPUStencilOpStatecreate()Returns a newSDL_GPUStencilOpStateinstance allocated withBufferUtils.static SDL_GPUStencilOpState.Buffercreate(int capacity) Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withBufferUtils.static SDL_GPUStencilOpStatecreate(long address) Returns a newSDL_GPUStencilOpStateinstance for the specified memory address.static SDL_GPUStencilOpState.Buffercreate(long address, int capacity) Create aSDL_GPUStencilOpState.Bufferinstance at the specified memory.static @Nullable SDL_GPUStencilOpStatecreateSafe(long address) static @Nullable SDL_GPUStencilOpState.BuffercreateSafe(long address, int capacity) intdepth_fail_op(int value) Sets the specified value to thedepth_fail_opfield.intfail_op()fail_op(int value) Sets the specified value to thefail_opfield.static SDL_GPUStencilOpStatemalloc()Returns a newSDL_GPUStencilOpStateinstance allocated withmemAlloc.static SDL_GPUStencilOpState.Buffermalloc(int capacity) Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withmemAlloc.static SDL_GPUStencilOpState.Buffermalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUStencilOpStatemalloc(MemoryStack stack) Returns a newSDL_GPUStencilOpStateinstance allocated on the specifiedMemoryStack.static intncompare_op(long struct) Unsafe version ofcompare_op().static voidncompare_op(long struct, int value) Unsafe version ofcompare_op.static intndepth_fail_op(long struct) Unsafe version ofdepth_fail_op().static voidndepth_fail_op(long struct, int value) Unsafe version ofdepth_fail_op.static intnfail_op(long struct) Unsafe version offail_op().static voidnfail_op(long struct, int value) Unsafe version offail_op.static intnpass_op(long struct) Unsafe version ofpass_op().static voidnpass_op(long struct, int value) Unsafe version ofpass_op.intpass_op()pass_op(int value) Sets the specified value to thepass_opfield.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.intsizeof()Returnssizeof(struct).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. -
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_GPUStencilOpStateinstance 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_GPUStencilOpState>
-
fail_op
public int fail_op()- Returns:
- the value of the
fail_opfield.
-
pass_op
public int pass_op()- Returns:
- the value of the
pass_opfield.
-
depth_fail_op
public int depth_fail_op()- Returns:
- the value of the
depth_fail_opfield.
-
compare_op
public int compare_op()- Returns:
- the value of the
compare_opfield.
-
fail_op
Sets the specified value to thefail_opfield. -
pass_op
Sets the specified value to thepass_opfield. -
depth_fail_op
Sets the specified value to thedepth_fail_opfield. -
compare_op
Sets the specified value to thecompare_opfield. -
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_GPUStencilOpStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUStencilOpStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUStencilOpStateinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUStencilOpStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUStencilOpState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUStencilOpState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUStencilOpStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUStencilOpStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUStencilOpState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUStencilOpState.Bufferinstance allocated on the specifiedMemoryStackand 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.
-