SDL_COLORSPACEMATRIX(3)
π SDL_COLORSPACEMATRIX π
okay bestie, so this is the SDL3 FUNCTIONS page for SDL_COLORSPACEMATRIX β a macro that pulls the matrix coefficients straight out of an SDL_Colorspace π
β¨ NAME β¨
SDL_COLORSPACEMATRIX β a macro to retrieve the matrix coefficients of an SDL_Colorspace. periodt π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_pixels.h>
#define SDL_COLORSPACEMATRIX(cspace) (SDL_MatrixCoefficients)((cspace) & 0x1F)
like. look at her. one line. & 0x1F. no cap, she's iconic π¦
π MACRO PARAMETERS π
cspaceβ anSDL_Colorspaceto check. that's the whole vibe, just hand her the colorspace and she does the rest π«Ά
β RETURN VALUE β
Returns the SDL_MatrixCoefficients of cspace. that's it, that's the whole girlboss move π
π THREAD SAFETY π
It is safe to call this macro from any thread. so go off, spawn all the threads you want, she does not care π β¨
π AVAILABILITY π
This macro is available since SDL 3.2.0. newer than your fave's last album, lowkey π₯
Simple Directmedia Layer made this, it's SDL 3.4.18 energy, and it's giving SDL_COLORSPACEMATRIX(3). mwah, go write some pixels bestie ππππ¦
π¦ 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