table of contents
other versions
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_PixelFormatDetails(3type) | SDL3 DATATYPES | SDL_PixelFormatDetails(3type) | 
NAME¶
SDL_PixelFormatDetails - Details about the format of a pixel.
HEADER FILE¶
Defined in SDL3/SDL_pixels.h
SYNOPSIS¶
#include "SDL3/SDL.h"
typedef 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;
} SDL_PixelFormatDetails;
AVAILABILITY¶
This struct is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |