SDL_PixelType(3type)
π SDL_PixelType β the pixel type situation
okay so bestie, welcome to SDL_PixelType(3type), straight out of the SDL3 DATATYPES corner of the manual. this is the page where we meet the enum that tells you what kind of pixel you're looking at. no cap, it's giving "labels for every pixel flavour" energy and i am obsessed π
πΈ NAME πΈ
SDL_PixelType β Pixel type. literally that's it, that's the whole job, and she does it flawlessly β¨
π¦ SYNOPSIS π¦
bestie you gotta pull in the header first:
#include <SDL3/SDL_pixels.h>
and here's the enum in all her glory, every single member, exactly as written, no edits, no notes, she's perfect:
typedef enum SDL_PixelType
{
SDL_PIXELTYPE_UNKNOWN,
SDL_PIXELTYPE_INDEX1,
SDL_PIXELTYPE_INDEX4,
SDL_PIXELTYPE_INDEX8,
SDL_PIXELTYPE_PACKED8,
SDL_PIXELTYPE_PACKED16,
SDL_PIXELTYPE_PACKED32,
SDL_PIXELTYPE_ARRAYU8,
SDL_PIXELTYPE_ARRAYU16,
SDL_PIXELTYPE_ARRAYU32,
SDL_PIXELTYPE_ARRAYF16,
SDL_PIXELTYPE_ARRAYF32,
/* appended at the end for compatibility with sdl2-compat: */
SDL_PIXELTYPE_INDEX2
} SDL_PixelType;
π yes queen, SDL_PIXELTYPE_INDEX2 is appended at the end for compatibility with sdl2-compat β she joined the group chat late but she's here and she's valid π«Ά
π AVAILABILITY π
This enum is available since SDL 3.2.0. she's new-ish, she's fresh, she's main character energy from day one β
and that's the whole page, bestie π we did it, we read the entire manpage, we understood the entire manpage, we slayed the entire manpage π
Simple Directmedia Layer β’ SDL 3.4.18 β’ SDL_PixelType(3type) β that's the source, the version, and the page name all wrapped up in a cute little bow π periodt π
π¦ 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