Package org.lwjgl.sdl
Class SDL_GPUColorTargetBlendState
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SDL_GPUColorTargetBlendState
extends Struct<SDL_GPUColorTargetBlendState>
implements NativeResource
struct SDL_GPUColorTargetBlendState {
SDL_GPUBlendFactor src_color_blendfactor;
SDL_GPUBlendFactor dst_color_blendfactor;
SDL_GPUBlendOp color_blend_op;
SDL_GPUBlendFactor src_alpha_blendfactor;
SDL_GPUBlendFactor dst_alpha_blendfactor;
SDL_GPUBlendOp alpha_blend_op;
SDL_GPUColorComponentFlags color_write_mask;
bool enable_blend;
bool enable_color_write_mask;
Uint8 padding1;
Uint8 padding2;
}-
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 size in bytes.static final intThe struct member offsets.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_GPUColorTargetBlendState(ByteBuffer container) Creates aSDL_GPUColorTargetBlendStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintalpha_blend_op(int value) Sets the specified value to thealpha_blend_opfield.static SDL_GPUColorTargetBlendStatecalloc()Returns a newSDL_GPUColorTargetBlendStateinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUColorTargetBlendStatecalloc(MemoryStack stack) Returns a newSDL_GPUColorTargetBlendStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolor_blend_op(int value) Sets the specified value to thecolor_blend_opfield.bytecolor_write_mask(byte value) Sets the specified value to thecolor_write_maskfield.static SDL_GPUColorTargetBlendStatecreate()Returns a newSDL_GPUColorTargetBlendStateinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withBufferUtils.static SDL_GPUColorTargetBlendStatecreate(long address) Returns a newSDL_GPUColorTargetBlendStateinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUColorTargetBlendState.Bufferinstance at the specified memory.static @Nullable SDL_GPUColorTargetBlendStatecreateSafe(long address) static @Nullable SDL_GPUColorTargetBlendState.BuffercreateSafe(long address, int capacity) intdst_alpha_blendfactor(int value) Sets the specified value to thedst_alpha_blendfactorfield.intdst_color_blendfactor(int value) Sets the specified value to thedst_color_blendfactorfield.booleanenable_blend(boolean value) Sets the specified value to theenable_blendfield.booleanenable_color_write_mask(boolean value) Sets the specified value to theenable_color_write_maskfield.static SDL_GPUColorTargetBlendStatemalloc()Returns a newSDL_GPUColorTargetBlendStateinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUColorTargetBlendStatemalloc(MemoryStack stack) Returns a newSDL_GPUColorTargetBlendStateinstance allocated on the specifiedMemoryStack.static intnalpha_blend_op(long struct) Unsafe version ofalpha_blend_op().static voidnalpha_blend_op(long struct, int value) Unsafe version ofalpha_blend_op.static intncolor_blend_op(long struct) Unsafe version ofcolor_blend_op().static voidncolor_blend_op(long struct, int value) Unsafe version ofcolor_blend_op.static bytencolor_write_mask(long struct) Unsafe version ofcolor_write_mask().static voidncolor_write_mask(long struct, byte value) Unsafe version ofcolor_write_mask.static intndst_alpha_blendfactor(long struct) Unsafe version ofdst_alpha_blendfactor().static voidndst_alpha_blendfactor(long struct, int value) Unsafe version ofdst_alpha_blendfactor.static intndst_color_blendfactor(long struct) Unsafe version ofdst_color_blendfactor().static voidndst_color_blendfactor(long struct, int value) Unsafe version ofdst_color_blendfactor.static booleannenable_blend(long struct) Unsafe version ofenable_blend().static voidnenable_blend(long struct, boolean value) Unsafe version ofenable_blend.static booleannenable_color_write_mask(long struct) Unsafe version ofenable_color_write_mask().static voidnenable_color_write_mask(long struct, boolean value) Unsafe version ofenable_color_write_mask.static bytenpadding1(long struct) static voidnpadding1(long struct, byte value) static bytenpadding2(long struct) static voidnpadding2(long struct, byte value) static intnsrc_alpha_blendfactor(long struct) Unsafe version ofsrc_alpha_blendfactor().static voidnsrc_alpha_blendfactor(long struct, int value) Unsafe version ofsrc_alpha_blendfactor.static intnsrc_color_blendfactor(long struct) Unsafe version ofsrc_color_blendfactor().static voidnsrc_color_blendfactor(long struct, int value) Unsafe version ofsrc_color_blendfactor.set(int src_color_blendfactor, int dst_color_blendfactor, int color_blend_op, int src_alpha_blendfactor, int dst_alpha_blendfactor, int alpha_blend_op, byte color_write_mask, boolean enable_blend, boolean enable_color_write_mask) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsrc_alpha_blendfactor(int value) Sets the specified value to thesrc_alpha_blendfactorfield.intsrc_color_blendfactor(int value) Sets the specified value to thesrc_color_blendfactorfield.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. -
SRC_COLOR_BLENDFACTOR
public static final int SRC_COLOR_BLENDFACTORThe struct member offsets. -
DST_COLOR_BLENDFACTOR
public static final int DST_COLOR_BLENDFACTORThe struct member offsets. -
COLOR_BLEND_OP
public static final int COLOR_BLEND_OPThe struct member offsets. -
SRC_ALPHA_BLENDFACTOR
public static final int SRC_ALPHA_BLENDFACTORThe struct member offsets. -
DST_ALPHA_BLENDFACTOR
public static final int DST_ALPHA_BLENDFACTORThe struct member offsets. -
ALPHA_BLEND_OP
public static final int ALPHA_BLEND_OPThe struct member offsets. -
COLOR_WRITE_MASK
public static final int COLOR_WRITE_MASKThe struct member offsets. -
ENABLE_BLEND
public static final int ENABLE_BLENDThe struct member offsets. -
ENABLE_COLOR_WRITE_MASK
public static final int ENABLE_COLOR_WRITE_MASKThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets.
-
-
Constructor Details
-
SDL_GPUColorTargetBlendState
Creates aSDL_GPUColorTargetBlendStateinstance 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_GPUColorTargetBlendState>
-
src_color_blendfactor
public int src_color_blendfactor()- Returns:
- the value of the
src_color_blendfactorfield.
-
dst_color_blendfactor
public int dst_color_blendfactor()- Returns:
- the value of the
dst_color_blendfactorfield.
-
color_blend_op
public int color_blend_op()- Returns:
- the value of the
color_blend_opfield.
-
src_alpha_blendfactor
public int src_alpha_blendfactor()- Returns:
- the value of the
src_alpha_blendfactorfield.
-
dst_alpha_blendfactor
public int dst_alpha_blendfactor()- Returns:
- the value of the
dst_alpha_blendfactorfield.
-
alpha_blend_op
public int alpha_blend_op()- Returns:
- the value of the
alpha_blend_opfield.
-
color_write_mask
public byte color_write_mask()- Returns:
- the value of the
color_write_maskfield.
-
enable_blend
public boolean enable_blend()- Returns:
- the value of the
enable_blendfield.
-
enable_color_write_mask
public boolean enable_color_write_mask()- Returns:
- the value of the
enable_color_write_maskfield.
-
src_color_blendfactor
Sets the specified value to thesrc_color_blendfactorfield. -
dst_color_blendfactor
Sets the specified value to thedst_color_blendfactorfield. -
color_blend_op
Sets the specified value to thecolor_blend_opfield. -
src_alpha_blendfactor
Sets the specified value to thesrc_alpha_blendfactorfield. -
dst_alpha_blendfactor
Sets the specified value to thedst_alpha_blendfactorfield. -
alpha_blend_op
Sets the specified value to thealpha_blend_opfield. -
color_write_mask
Sets the specified value to thecolor_write_maskfield. -
enable_blend
Sets the specified value to theenable_blendfield. -
enable_color_write_mask
Sets the specified value to theenable_color_write_maskfield. -
set
public SDL_GPUColorTargetBlendState set(int src_color_blendfactor, int dst_color_blendfactor, int color_blend_op, int src_alpha_blendfactor, int dst_alpha_blendfactor, int alpha_blend_op, byte color_write_mask, boolean enable_blend, boolean enable_color_write_mask) 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_GPUColorTargetBlendStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUColorTargetBlendStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUColorTargetBlendStateinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUColorTargetBlendStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUColorTargetBlendState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUColorTargetBlendStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetBlendStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetBlendState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrc_color_blendfactor
public static int nsrc_color_blendfactor(long struct) Unsafe version ofsrc_color_blendfactor(). -
ndst_color_blendfactor
public static int ndst_color_blendfactor(long struct) Unsafe version ofdst_color_blendfactor(). -
ncolor_blend_op
public static int ncolor_blend_op(long struct) Unsafe version ofcolor_blend_op(). -
nsrc_alpha_blendfactor
public static int nsrc_alpha_blendfactor(long struct) Unsafe version ofsrc_alpha_blendfactor(). -
ndst_alpha_blendfactor
public static int ndst_alpha_blendfactor(long struct) Unsafe version ofdst_alpha_blendfactor(). -
nalpha_blend_op
public static int nalpha_blend_op(long struct) Unsafe version ofalpha_blend_op(). -
ncolor_write_mask
public static byte ncolor_write_mask(long struct) Unsafe version ofcolor_write_mask(). -
nenable_blend
public static boolean nenable_blend(long struct) Unsafe version ofenable_blend(). -
nenable_color_write_mask
public static boolean nenable_color_write_mask(long struct) Unsafe version ofenable_color_write_mask(). -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
nsrc_color_blendfactor
public static void nsrc_color_blendfactor(long struct, int value) Unsafe version ofsrc_color_blendfactor. -
ndst_color_blendfactor
public static void ndst_color_blendfactor(long struct, int value) Unsafe version ofdst_color_blendfactor. -
ncolor_blend_op
public static void ncolor_blend_op(long struct, int value) Unsafe version ofcolor_blend_op. -
nsrc_alpha_blendfactor
public static void nsrc_alpha_blendfactor(long struct, int value) Unsafe version ofsrc_alpha_blendfactor. -
ndst_alpha_blendfactor
public static void ndst_alpha_blendfactor(long struct, int value) Unsafe version ofdst_alpha_blendfactor. -
nalpha_blend_op
public static void nalpha_blend_op(long struct, int value) Unsafe version ofalpha_blend_op. -
ncolor_write_mask
public static void ncolor_write_mask(long struct, byte value) Unsafe version ofcolor_write_mask. -
nenable_blend
public static void nenable_blend(long struct, boolean value) Unsafe version ofenable_blend. -
nenable_color_write_mask
public static void nenable_color_write_mask(long struct, boolean value) Unsafe version ofenable_color_write_mask. -
npadding1
public static void npadding1(long struct, byte value) -
npadding2
public static void npadding2(long struct, byte value)
-