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 β€” an SDL_Colorspace to 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