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