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.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 size in bytes.static final int
The struct member offsets.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_GPUColorTargetBlendState
(ByteBuffer container) Creates aSDL_GPUColorTargetBlendState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
alpha_blend_op
(int value) Sets the specified value to thealpha_blend_op
field.static SDL_GPUColorTargetBlendState
calloc()
Returns a newSDL_GPUColorTargetBlendState
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUColorTargetBlendState
calloc
(MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
color_blend_op
(int value) Sets the specified value to thecolor_blend_op
field.byte
color_write_mask
(byte value) Sets the specified value to thecolor_write_mask
field.static SDL_GPUColorTargetBlendState
create()
Returns a newSDL_GPUColorTargetBlendState
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withBufferUtils
.static SDL_GPUColorTargetBlendState
create
(long address) Returns a newSDL_GPUColorTargetBlendState
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUColorTargetBlendState.Buffer
instance at the specified memory.static @Nullable SDL_GPUColorTargetBlendState
createSafe
(long address) static @Nullable SDL_GPUColorTargetBlendState.Buffer
createSafe
(long address, int capacity) int
dst_alpha_blendfactor
(int value) Sets the specified value to thedst_alpha_blendfactor
field.int
dst_color_blendfactor
(int value) Sets the specified value to thedst_color_blendfactor
field.boolean
enable_blend
(boolean value) Sets the specified value to theenable_blend
field.boolean
enable_color_write_mask
(boolean value) Sets the specified value to theenable_color_write_mask
field.static SDL_GPUColorTargetBlendState
malloc()
Returns a newSDL_GPUColorTargetBlendState
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUColorTargetBlendState
malloc
(MemoryStack stack) Returns a newSDL_GPUColorTargetBlendState
instance allocated on the specifiedMemoryStack
.static int
nalpha_blend_op
(long struct) Unsafe version ofalpha_blend_op()
.static void
nalpha_blend_op
(long struct, int value) Unsafe version ofalpha_blend_op
.static int
ncolor_blend_op
(long struct) Unsafe version ofcolor_blend_op()
.static void
ncolor_blend_op
(long struct, int value) Unsafe version ofcolor_blend_op
.static byte
ncolor_write_mask
(long struct) Unsafe version ofcolor_write_mask()
.static void
ncolor_write_mask
(long struct, byte value) Unsafe version ofcolor_write_mask
.static int
ndst_alpha_blendfactor
(long struct) Unsafe version ofdst_alpha_blendfactor()
.static void
ndst_alpha_blendfactor
(long struct, int value) Unsafe version ofdst_alpha_blendfactor
.static int
ndst_color_blendfactor
(long struct) Unsafe version ofdst_color_blendfactor()
.static void
ndst_color_blendfactor
(long struct, int value) Unsafe version ofdst_color_blendfactor
.static boolean
nenable_blend
(long struct) Unsafe version ofenable_blend()
.static void
nenable_blend
(long struct, boolean value) Unsafe version ofenable_blend
.static boolean
nenable_color_write_mask
(long struct) Unsafe version ofenable_color_write_mask()
.static void
nenable_color_write_mask
(long struct, boolean value) Unsafe version ofenable_color_write_mask
.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 int
nsrc_alpha_blendfactor
(long struct) Unsafe version ofsrc_alpha_blendfactor()
.static void
nsrc_alpha_blendfactor
(long struct, int value) Unsafe version ofsrc_alpha_blendfactor
.static int
nsrc_color_blendfactor
(long struct) Unsafe version ofsrc_color_blendfactor()
.static void
nsrc_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.int
sizeof()
Returnssizeof(struct)
.int
src_alpha_blendfactor
(int value) Sets the specified value to thesrc_alpha_blendfactor
field.int
src_color_blendfactor
(int value) Sets the specified value to thesrc_color_blendfactor
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. -
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_GPUColorTargetBlendState
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_GPUColorTargetBlendState>
-
src_color_blendfactor
public int src_color_blendfactor()- Returns:
- the value of the
src_color_blendfactor
field.
-
dst_color_blendfactor
public int dst_color_blendfactor()- Returns:
- the value of the
dst_color_blendfactor
field.
-
color_blend_op
public int color_blend_op()- Returns:
- the value of the
color_blend_op
field.
-
src_alpha_blendfactor
public int src_alpha_blendfactor()- Returns:
- the value of the
src_alpha_blendfactor
field.
-
dst_alpha_blendfactor
public int dst_alpha_blendfactor()- Returns:
- the value of the
dst_alpha_blendfactor
field.
-
alpha_blend_op
public int alpha_blend_op()- Returns:
- the value of the
alpha_blend_op
field.
-
color_write_mask
public byte color_write_mask()- Returns:
- the value of the
color_write_mask
field.
-
enable_blend
public boolean enable_blend()- Returns:
- the value of the
enable_blend
field.
-
enable_color_write_mask
public boolean enable_color_write_mask()- Returns:
- the value of the
enable_color_write_mask
field.
-
src_color_blendfactor
Sets the specified value to thesrc_color_blendfactor
field. -
dst_color_blendfactor
Sets the specified value to thedst_color_blendfactor
field. -
color_blend_op
Sets the specified value to thecolor_blend_op
field. -
src_alpha_blendfactor
Sets the specified value to thesrc_alpha_blendfactor
field. -
dst_alpha_blendfactor
Sets the specified value to thedst_alpha_blendfactor
field. -
alpha_blend_op
Sets the specified value to thealpha_blend_op
field. -
color_write_mask
Sets the specified value to thecolor_write_mask
field. -
enable_blend
Sets the specified value to theenable_blend
field. -
enable_color_write_mask
Sets the specified value to theenable_color_write_mask
field. -
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_GPUColorTargetBlendState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUColorTargetBlendState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUColorTargetBlendState
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUColorTargetBlendState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUColorTargetBlendState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUColorTargetBlendState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetBlendState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetBlendState.Buffer
instance allocated on the specifiedMemoryStack
and 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)
-