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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static 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 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.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_PixelFormatDetailsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbyteAbits()intAmask()byteAshift()byteBbits()byteintBmask()byteBshift()bytestatic SDL_PixelFormatDetailscreate(long address) Returns a newSDL_PixelFormatDetailsinstance for the specified memory address.create(long address, int capacity) Create aSDL_PixelFormatDetails.Bufferinstance at the specified memory.static @Nullable SDL_PixelFormatDetailscreateSafe(long address) static @Nullable SDL_PixelFormatDetails.BuffercreateSafe(long address, int capacity) intformat()byteGbits()intGmask()byteGshift()static bytenAbits(long struct) Unsafe version ofAbits().static intnAmask(long struct) Unsafe version ofAmask().static bytenAshift(long struct) Unsafe version ofAshift().static bytenBbits(long struct) Unsafe version ofBbits().static bytenbits_per_pixel(long struct) Unsafe version ofbits_per_pixel().static intnBmask(long struct) Unsafe version ofBmask().static bytenBshift(long struct) Unsafe version ofBshift().static bytenbytes_per_pixel(long struct) Unsafe version ofbytes_per_pixel().static intnformat(long struct) Unsafe version offormat().static bytenGbits(long struct) Unsafe version ofGbits().static intnGmask(long struct) Unsafe version ofGmask().static bytenGshift(long struct) Unsafe version ofGshift().static ByteBuffernpadding(long struct) static bytenpadding(long struct, int index) static bytenRbits(long struct) Unsafe version ofRbits().static intnRmask(long struct) Unsafe version ofRmask().static bytenRshift(long struct) Unsafe version ofRshift().byteRbits()intRmask()byteRshift()intsizeof()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_PixelFormatDetailsinstance 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_PixelFormatDetails>
-
format
public int format()- Returns:
- the value of the
formatfield.
-
bits_per_pixel
public byte bits_per_pixel()- Returns:
- the value of the
bits_per_pixelfield.
-
bytes_per_pixel
public byte bytes_per_pixel()- Returns:
- the value of the
bytes_per_pixelfield.
-
Rmask
public int Rmask()- Returns:
- the value of the
Rmaskfield.
-
Gmask
public int Gmask()- Returns:
- the value of the
Gmaskfield.
-
Bmask
public int Bmask()- Returns:
- the value of the
Bmaskfield.
-
Amask
public int Amask()- Returns:
- the value of the
Amaskfield.
-
Rbits
public byte Rbits()- Returns:
- the value of the
Rbitsfield.
-
Gbits
public byte Gbits()- Returns:
- the value of the
Gbitsfield.
-
Bbits
public byte Bbits()- Returns:
- the value of the
Bbitsfield.
-
Abits
public byte Abits()- Returns:
- the value of the
Abitsfield.
-
Rshift
public byte Rshift()- Returns:
- the value of the
Rshiftfield.
-
Gshift
public byte Gshift()- Returns:
- the value of the
Gshiftfield.
-
Bshift
public byte Bshift()- Returns:
- the value of the
Bshiftfield.
-
Ashift
public byte Ashift()- Returns:
- the value of the
Ashiftfield.
-
create
Returns a newSDL_PixelFormatDetailsinstance for the specified memory address. -
createSafe
-
create
Create aSDL_PixelFormatDetails.Bufferinstance 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().
-