Package org.lwjgl.sdl
Class SDL_PixelFormatDetails
- All Implemented Interfaces:
Pointer
struct SDL_PixelFormatDetails {
SDL_PixelFormat format;
Uint8 bits_per_pixel;
Uint8 bytes_per_pixel;
Uint8 padding[2];
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
Uint8 Rbits;
Uint8 Gbits;
Uint8 Bbits;
Uint8 Abits;
Uint8 Rshift;
Uint8 Gshift;
Uint8 Bshift;
Uint8 Ashift;
}
-
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 member offsets.static 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_PixelFormatDetails
(ByteBuffer container) Creates aSDL_PixelFormatDetails
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
Abits()
int
Amask()
byte
Ashift()
byte
Bbits()
byte
int
Bmask()
byte
Bshift()
byte
static SDL_PixelFormatDetails
create
(long address) Returns a newSDL_PixelFormatDetails
instance for the specified memory address.create
(long address, int capacity) Create aSDL_PixelFormatDetails.Buffer
instance at the specified memory.static @Nullable SDL_PixelFormatDetails
createSafe
(long address) static @Nullable SDL_PixelFormatDetails.Buffer
createSafe
(long address, int capacity) int
format()
byte
Gbits()
int
Gmask()
byte
Gshift()
static byte
nAbits
(long struct) Unsafe version ofAbits()
.static int
nAmask
(long struct) Unsafe version ofAmask()
.static byte
nAshift
(long struct) Unsafe version ofAshift()
.static byte
nBbits
(long struct) Unsafe version ofBbits()
.static byte
nbits_per_pixel
(long struct) Unsafe version ofbits_per_pixel()
.static int
nBmask
(long struct) Unsafe version ofBmask()
.static byte
nBshift
(long struct) Unsafe version ofBshift()
.static byte
nbytes_per_pixel
(long struct) Unsafe version ofbytes_per_pixel()
.static int
nformat
(long struct) Unsafe version offormat()
.static byte
nGbits
(long struct) Unsafe version ofGbits()
.static int
nGmask
(long struct) Unsafe version ofGmask()
.static byte
nGshift
(long struct) Unsafe version ofGshift()
.static ByteBuffer
npadding
(long struct) static byte
npadding
(long struct, int index) static byte
nRbits
(long struct) Unsafe version ofRbits()
.static int
nRmask
(long struct) Unsafe version ofRmask()
.static byte
nRshift
(long struct) Unsafe version ofRshift()
.byte
Rbits()
int
Rmask()
byte
Rshift()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FORMAT
public static final int FORMATThe struct member offsets. -
BITS_PER_PIXEL
public static final int BITS_PER_PIXELThe struct member offsets. -
BYTES_PER_PIXEL
public static final int BYTES_PER_PIXELThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
RMASK
public static final int RMASKThe struct member offsets. -
GMASK
public static final int GMASKThe struct member offsets. -
BMASK
public static final int BMASKThe struct member offsets. -
AMASK
public static final int AMASKThe struct member offsets. -
RBITS
public static final int RBITSThe struct member offsets. -
GBITS
public static final int GBITSThe struct member offsets. -
BBITS
public static final int BBITSThe struct member offsets. -
ABITS
public static final int ABITSThe struct member offsets. -
RSHIFT
public static final int RSHIFTThe struct member offsets. -
GSHIFT
public static final int GSHIFTThe struct member offsets. -
BSHIFT
public static final int BSHIFTThe struct member offsets. -
ASHIFT
public static final int ASHIFTThe struct member offsets.
-
-
Constructor Details
-
SDL_PixelFormatDetails
Creates aSDL_PixelFormatDetails
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_PixelFormatDetails>
-
format
public int format()- Returns:
- the value of the
format
field.
-
bits_per_pixel
public byte bits_per_pixel()- Returns:
- the value of the
bits_per_pixel
field.
-
bytes_per_pixel
public byte bytes_per_pixel()- Returns:
- the value of the
bytes_per_pixel
field.
-
Rmask
public int Rmask()- Returns:
- the value of the
Rmask
field.
-
Gmask
public int Gmask()- Returns:
- the value of the
Gmask
field.
-
Bmask
public int Bmask()- Returns:
- the value of the
Bmask
field.
-
Amask
public int Amask()- Returns:
- the value of the
Amask
field.
-
Rbits
public byte Rbits()- Returns:
- the value of the
Rbits
field.
-
Gbits
public byte Gbits()- Returns:
- the value of the
Gbits
field.
-
Bbits
public byte Bbits()- Returns:
- the value of the
Bbits
field.
-
Abits
public byte Abits()- Returns:
- the value of the
Abits
field.
-
Rshift
public byte Rshift()- Returns:
- the value of the
Rshift
field.
-
Gshift
public byte Gshift()- Returns:
- the value of the
Gshift
field.
-
Bshift
public byte Bshift()- Returns:
- the value of the
Bshift
field.
-
Ashift
public byte Ashift()- Returns:
- the value of the
Ashift
field.
-
create
Returns a newSDL_PixelFormatDetails
instance for the specified memory address. -
createSafe
-
create
Create aSDL_PixelFormatDetails.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nbits_per_pixel
public static byte nbits_per_pixel(long struct) Unsafe version ofbits_per_pixel()
. -
nbytes_per_pixel
public static byte nbytes_per_pixel(long struct) Unsafe version ofbytes_per_pixel()
. -
npadding
-
npadding
public static byte npadding(long struct, int index) -
nRmask
public static int nRmask(long struct) Unsafe version ofRmask()
. -
nGmask
public static int nGmask(long struct) Unsafe version ofGmask()
. -
nBmask
public static int nBmask(long struct) Unsafe version ofBmask()
. -
nAmask
public static int nAmask(long struct) Unsafe version ofAmask()
. -
nRbits
public static byte nRbits(long struct) Unsafe version ofRbits()
. -
nGbits
public static byte nGbits(long struct) Unsafe version ofGbits()
. -
nBbits
public static byte nBbits(long struct) Unsafe version ofBbits()
. -
nAbits
public static byte nAbits(long struct) Unsafe version ofAbits()
. -
nRshift
public static byte nRshift(long struct) Unsafe version ofRshift()
. -
nGshift
public static byte nGshift(long struct) Unsafe version ofGshift()
. -
nBshift
public static byte nBshift(long struct) Unsafe version ofBshift()
. -
nAshift
public static byte nAshift(long struct) Unsafe version ofAshift()
.
-