SDL_PackedOrder(3type)
π SDL_PackedOrder π
okay bestie, gather round, because we're talking about SDL_PackedOrder β the packed component order, high bit -> low bit. yes that's the whole vibe. it's a typedef enum from the SDL3 datatypes era, and it's giving pixel format realness. this is the manual page for SDL_PackedOrder(3type), so let's get into it. π
β¨ NAME β¨
SDL_PackedOrder β packed component order, high bit -> low bit. periodt. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_pixels.h>
typedef enum SDL_PackedOrder
{
SDL_PACKEDORDER_NONE,
SDL_PACKEDORDER_XRGB,
SDL_PACKEDORDER_RGBX,
SDL_PACKEDORDER_ARGB,
SDL_PACKEDORDER_RGBA,
SDL_PACKEDORDER_XBGR,
SDL_PACKEDORDER_BGRX,
SDL_PACKEDORDER_ABGR,
SDL_PACKEDORDER_BGRA
} SDL_PackedOrder;
like, every single one of these is a whole mood. SDL_PACKEDORDER_NONE is the "no thoughts head empty" option, and the rest are all about which channel sits where from the highest bit down to the lowest bit. X means unused, R is red, G is green, B is blue, and A is alpha. the order in the name? that's the order in the bits. high key iconic. π¦
π«Ά AVAILABILITY π«Ά
this enum is available since SDL 3.2.0. so if you're on anything older, bestie, it's not gonna be there. no cap.
lowkey reminder: this is a datatype page, so there's no functions or options here β just the enum and its values. don't go looking for flags that aren't there. π
and that's the whole page! π this masterpiece comes to you from Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_PackedOrder(3type) manual page. slay, bye! πβ¨
π¦ 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