Package org.lwjgl.sdl
Class SDL_GPUBlitInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct SDL_GPUBlitInfo {
{@link SDL_GPUBlitRegion SDL_GPUBlitRegion} source;
{@link SDL_GPUBlitRegion SDL_GPUBlitRegion} destination;
SDL_GPULoadOp load_op;
{@link SDL_FColor SDL_FColor} clear_color;
SDL_FlipMode flip_mode;
SDL_GPUFilter filter;
bool cycle;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUBlitInfo
(ByteBuffer container) Creates aSDL_GPUBlitInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUBlitInfo
calloc()
Returns a newSDL_GPUBlitInfo
instance allocated withmemCalloc
.static SDL_GPUBlitInfo.Buffer
calloc
(int capacity) Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withmemCalloc
.static SDL_GPUBlitInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUBlitInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUBlitInfo
calloc
(MemoryStack stack) Returns a newSDL_GPUBlitInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.clear_color
(Consumer<SDL_FColor> consumer) Passes theclear_color
field to the specifiedConsumer
.clear_color
(SDL_FColor value) Copies the specifiedSDL_FColor
to theclear_color
field.static SDL_GPUBlitInfo
create()
Returns a newSDL_GPUBlitInfo
instance allocated withBufferUtils
.static SDL_GPUBlitInfo.Buffer
create
(int capacity) Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withBufferUtils
.static SDL_GPUBlitInfo
create
(long address) Returns a newSDL_GPUBlitInfo
instance for the specified memory address.static SDL_GPUBlitInfo.Buffer
create
(long address, int capacity) Create aSDL_GPUBlitInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUBlitInfo
createSafe
(long address) static @Nullable SDL_GPUBlitInfo.Buffer
createSafe
(long address, int capacity) boolean
cycle()
cycle
(boolean value) Sets the specified value to thecycle
field.destination
(Consumer<SDL_GPUBlitRegion> consumer) Passes thedestination
field to the specifiedConsumer
.destination
(SDL_GPUBlitRegion value) Copies the specifiedSDL_GPUBlitRegion
to thedestination
field.int
filter()
filter
(int value) Sets the specified value to thefilter
field.int
flip_mode
(int value) Sets the specified value to theflip_mode
field.int
load_op()
load_op
(int value) Sets the specified value to theload_op
field.static SDL_GPUBlitInfo
malloc()
Returns a newSDL_GPUBlitInfo
instance allocated withmemAlloc
.static SDL_GPUBlitInfo.Buffer
malloc
(int capacity) Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withmemAlloc
.static SDL_GPUBlitInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUBlitInfo.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUBlitInfo
malloc
(MemoryStack stack) Returns a newSDL_GPUBlitInfo
instance allocated on the specifiedMemoryStack
.static SDL_FColor
nclear_color
(long struct) Unsafe version ofclear_color()
.static void
nclear_color
(long struct, SDL_FColor value) Unsafe version ofclear_color
.static boolean
ncycle
(long struct) Unsafe version ofcycle()
.static void
ncycle
(long struct, boolean value) Unsafe version ofcycle
.static SDL_GPUBlitRegion
ndestination
(long struct) Unsafe version ofdestination()
.static void
ndestination
(long struct, SDL_GPUBlitRegion value) Unsafe version ofdestination
.static int
nfilter
(long struct) Unsafe version offilter()
.static void
nfilter
(long struct, int value) Unsafe version offilter
.static int
nflip_mode
(long struct) Unsafe version offlip_mode()
.static void
nflip_mode
(long struct, int value) Unsafe version offlip_mode
.static int
nload_op
(long struct) Unsafe version ofload_op()
.static void
nload_op
(long struct, int value) Unsafe version ofload_op
.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 byte
npadding3
(long struct) static void
npadding3
(long struct, byte value) static SDL_GPUBlitRegion
nsource
(long struct) Unsafe version ofsource()
.static void
nsource
(long struct, SDL_GPUBlitRegion value) Unsafe version ofsource
.set
(SDL_GPUBlitInfo src) Copies the specified struct data to this struct.set
(SDL_GPUBlitRegion source, SDL_GPUBlitRegion destination, int load_op, SDL_FColor clear_color, int flip_mode, int filter, boolean cycle) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.source()
source
(Consumer<SDL_GPUBlitRegion> consumer) Passes thesource
field to the specifiedConsumer
.source
(SDL_GPUBlitRegion value) Copies the specifiedSDL_GPUBlitRegion
to thesource
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
SOURCE
public static final int SOURCEThe struct member offsets. -
DESTINATION
public static final int DESTINATIONThe struct member offsets. -
LOAD_OP
public static final int LOAD_OPThe struct member offsets. -
CLEAR_COLOR
public static final int CLEAR_COLORThe struct member offsets. -
FLIP_MODE
public static final int FLIP_MODEThe struct member offsets. -
FILTER
public static final int FILTERThe struct member offsets. -
CYCLE
public static final int CYCLEThe 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_GPUBlitInfo
Creates aSDL_GPUBlitInfo
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_GPUBlitInfo>
-
source
- Returns:
- a
SDL_GPUBlitRegion
view of thesource
field.
-
destination
- Returns:
- a
SDL_GPUBlitRegion
view of thedestination
field.
-
load_op
public int load_op()- Returns:
- the value of the
load_op
field.
-
clear_color
- Returns:
- a
SDL_FColor
view of theclear_color
field.
-
flip_mode
public int flip_mode()- Returns:
- the value of the
flip_mode
field.
-
filter
public int filter()- Returns:
- the value of the
filter
field.
-
cycle
public boolean cycle()- Returns:
- the value of the
cycle
field.
-
source
Copies the specifiedSDL_GPUBlitRegion
to thesource
field. -
source
Passes thesource
field to the specifiedConsumer
. -
destination
Copies the specifiedSDL_GPUBlitRegion
to thedestination
field. -
destination
Passes thedestination
field to the specifiedConsumer
. -
load_op
Sets the specified value to theload_op
field. -
clear_color
Copies the specifiedSDL_FColor
to theclear_color
field. -
clear_color
Passes theclear_color
field to the specifiedConsumer
. -
flip_mode
Sets the specified value to theflip_mode
field. -
filter
Sets the specified value to thefilter
field. -
cycle
Sets the specified value to thecycle
field. -
set
public SDL_GPUBlitInfo set(SDL_GPUBlitRegion source, SDL_GPUBlitRegion destination, int load_op, SDL_FColor clear_color, int flip_mode, int filter, boolean cycle) 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_GPUBlitInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUBlitInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUBlitInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUBlitInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUBlitInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUBlitInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUBlitInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUBlitInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUBlitInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUBlitInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsource
Unsafe version ofsource()
. -
ndestination
Unsafe version ofdestination()
. -
nload_op
public static int nload_op(long struct) Unsafe version ofload_op()
. -
nclear_color
Unsafe version ofclear_color()
. -
nflip_mode
public static int nflip_mode(long struct) Unsafe version offlip_mode()
. -
nfilter
public static int nfilter(long struct) Unsafe version offilter()
. -
ncycle
public static boolean ncycle(long struct) Unsafe version ofcycle()
. -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
npadding3
public static byte npadding3(long struct) -
nsource
Unsafe version ofsource
. -
ndestination
Unsafe version ofdestination
. -
nload_op
public static void nload_op(long struct, int value) Unsafe version ofload_op
. -
nclear_color
Unsafe version ofclear_color
. -
nflip_mode
public static void nflip_mode(long struct, int value) Unsafe version offlip_mode
. -
nfilter
public static void nfilter(long struct, int value) Unsafe version offilter
. -
ncycle
public static void ncycle(long struct, boolean value) Unsafe version ofcycle
. -
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) -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-