SDL_PixelFormatDetails(3type)
π SDL_PixelFormatDetails (3type) π
okay bestie, welcome to the SDL3 DATATYPES corner of the group chat, where today's main character is SDL_PixelFormatDetails β literally just the details about the format of a pixel. that's it. that's the whole vibe. a pixel's little ID card. π
β¨ NAME β¨
SDL_PixelFormatDetails β Details about the format of a pixel.
π¦ SYNOPSIS π¦
#include <SDL3/SDL_pixels.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;
ngl that struct is giving β¨organizedβ¨. every field is exactly where it needs to be, no chaos, just vibes.
π AVAILABILITY π
This struct is available since SDL 3.2.0. so if you're on something older... bestie, it's not there. upgrade era. π
Simple Directmedia Layer β¦ SDL 3.4.18 β¦ SDL_PixelFormatDetails(3type) β and that's the whole page, mwah π no cap, she ate and left no crumbs. π«Ά
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms