Package org.lwjgl.sdl
Class SDL_GPUBlitInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct SDL_GPUBlitInfo {
SDL_GPUBlitRegion source;
SDL_GPUBlitRegion destination;
SDL_GPULoadOp load_op;
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.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.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_GPUBlitInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUBlitInfocalloc()Returns a newSDL_GPUBlitInfoinstance allocated withmemCalloc.static SDL_GPUBlitInfo.Buffercalloc(int capacity) Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withmemCalloc.static SDL_GPUBlitInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUBlitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUBlitInfocalloc(MemoryStack stack) Returns a newSDL_GPUBlitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.clear_color(Consumer<SDL_FColor> consumer) Passes theclear_colorfield to the specifiedConsumer.clear_color(SDL_FColor value) Copies the specifiedSDL_FColorto theclear_colorfield.static SDL_GPUBlitInfocreate()Returns a newSDL_GPUBlitInfoinstance allocated withBufferUtils.static SDL_GPUBlitInfo.Buffercreate(int capacity) Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withBufferUtils.static SDL_GPUBlitInfocreate(long address) Returns a newSDL_GPUBlitInfoinstance for the specified memory address.static SDL_GPUBlitInfo.Buffercreate(long address, int capacity) Create aSDL_GPUBlitInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUBlitInfocreateSafe(long address) static @Nullable SDL_GPUBlitInfo.BuffercreateSafe(long address, int capacity) booleancycle()cycle(boolean value) Sets the specified value to thecyclefield.destination(Consumer<SDL_GPUBlitRegion> consumer) Passes thedestinationfield to the specifiedConsumer.destination(SDL_GPUBlitRegion value) Copies the specifiedSDL_GPUBlitRegionto thedestinationfield.intfilter()filter(int value) Sets the specified value to thefilterfield.intflip_mode(int value) Sets the specified value to theflip_modefield.intload_op()load_op(int value) Sets the specified value to theload_opfield.static SDL_GPUBlitInfomalloc()Returns a newSDL_GPUBlitInfoinstance allocated withmemAlloc.static SDL_GPUBlitInfo.Buffermalloc(int capacity) Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withmemAlloc.static SDL_GPUBlitInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUBlitInfo.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUBlitInfomalloc(MemoryStack stack) Returns a newSDL_GPUBlitInfoinstance allocated on the specifiedMemoryStack.static SDL_FColornclear_color(long struct) Unsafe version ofclear_color().static voidnclear_color(long struct, SDL_FColor value) Unsafe version ofclear_color.static booleanncycle(long struct) Unsafe version ofcycle().static voidncycle(long struct, boolean value) Unsafe version ofcycle.static SDL_GPUBlitRegionndestination(long struct) Unsafe version ofdestination().static voidndestination(long struct, SDL_GPUBlitRegion value) Unsafe version ofdestination.static intnfilter(long struct) Unsafe version offilter().static voidnfilter(long struct, int value) Unsafe version offilter.static intnflip_mode(long struct) Unsafe version offlip_mode().static voidnflip_mode(long struct, int value) Unsafe version offlip_mode.static intnload_op(long struct) Unsafe version ofload_op().static voidnload_op(long struct, int value) Unsafe version ofload_op.static bytenpadding1(long struct) static voidnpadding1(long struct, byte value) static bytenpadding2(long struct) static voidnpadding2(long struct, byte value) static bytenpadding3(long struct) static voidnpadding3(long struct, byte value) static SDL_GPUBlitRegionnsource(long struct) Unsafe version ofsource().static voidnsource(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.intsizeof()Returnssizeof(struct).source()source(Consumer<SDL_GPUBlitRegion> consumer) Passes thesourcefield to the specifiedConsumer.source(SDL_GPUBlitRegion value) Copies the specifiedSDL_GPUBlitRegionto thesourcefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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_GPUBlitInfoinstance 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_GPUBlitInfo>
-
source
- Returns:
- a
SDL_GPUBlitRegionview of thesourcefield.
-
destination
- Returns:
- a
SDL_GPUBlitRegionview of thedestinationfield.
-
load_op
public int load_op()- Returns:
- the value of the
load_opfield.
-
clear_color
- Returns:
- a
SDL_FColorview of theclear_colorfield.
-
flip_mode
public int flip_mode()- Returns:
- the value of the
flip_modefield.
-
filter
public int filter()- Returns:
- the value of the
filterfield.
-
cycle
public boolean cycle()- Returns:
- the value of the
cyclefield.
-
source
Copies the specifiedSDL_GPUBlitRegionto thesourcefield. -
source
Passes thesourcefield to the specifiedConsumer. -
destination
Copies the specifiedSDL_GPUBlitRegionto thedestinationfield. -
destination
Passes thedestinationfield to the specifiedConsumer. -
load_op
Sets the specified value to theload_opfield. -
clear_color
Copies the specifiedSDL_FColorto theclear_colorfield. -
clear_color
Passes theclear_colorfield to the specifiedConsumer. -
flip_mode
Sets the specified value to theflip_modefield. -
filter
Sets the specified value to thefilterfield. -
cycle
Sets the specified value to thecyclefield. -
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_GPUBlitInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUBlitInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUBlitInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUBlitInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUBlitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUBlitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUBlitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUBlitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUBlitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUBlitInfo.Bufferinstance allocated on the specifiedMemoryStackand 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
-