SDL_ArrayOrder(3type)
π SDL_ArrayOrder π
okay so bestie, welcome to the SDL3 DATATYPES corner of the manual, where we talk about SDL_ArrayOrder β that's the array component order, low byte β‘οΈ high byte. yes, byte order. the drama of which channel comes first. π
β¨ NAME β¨
SDL_ArrayOrder β array component order, low byte -> high byte. literally the blueprint for how the bytes of a pixel line up in memory, from the smallest address to the biggest. no cap. π¦
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <SDL3/SDL_pixels.h>
and here's the whole enum, every single member, exactly as it lives:
typedef enum SDL_ArrayOrder
{
SDL_ARRAYORDER_NONE,
SDL_ARRAYORDER_RGB,
SDL_ARRAYORDER_RGBA,
SDL_ARRAYORDER_ARGB,
SDL_ARRAYORDER_BGR,
SDL_ARRAYORDER_BGRA,
SDL_ARRAYORDER_ABGR
} SDL_ArrayOrder;
seven members, seven little vibes. it's giving "pick your byte layout and commit." π
β¨ AVAILABILITY β¨
this enum has been around since SDL 3.2.0. so if you're on anything olderβ¦ yeah, it's not there. π
and that's the whole page, bestie, you ate it. π«Ά this was the SDL_ArrayOrder(3type) page from Simple Directmedia Layer, SDL 3.4.18, and yes the footer said SDL_ArrayOrder(3type) too β iconic of it honestly. now go order some bytes. πβ¨πΈ
π¦ 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