SDL_GetGamma(3)
π SDL_GetGamma(3) π
okay bestie, welcome to the SDL API Reference β¨ this one's a lil baby function and it's honestly so chill, come sit with me π«Ά
πΈ NAME πΈ
SDL_GetGamma β gets the gamma of the display π
like, it reads the gamma. that's the whole job. main character energy of just existing and telling you things π
β¨ SYNOPSIS β¨
#include "SDL.h"
int SDL_GetGamma(float *red, float *green, float *blue);
three lil pointer besties walk in, the display's gamma values walk out π
π¦ DESCRIPTION π¦
okay so, SDL_GetGamma gets the color gamma of the display π₯οΈβ¨
the gamma value for each color component gets placed into the parameters red, green and blue β one for each, no crumbs, no sharing π
and the values can range from 0.1 to 10 β like that's the whole vibe check, that's the range, periodt.
Note: π¨ this function currently only works on XFreee 4.0 and up. so if you're on anything older, bestie... it's giving nothing π no cap.
π SEE ALSO π
SDL_SetGammaπΈSDL_SetVideoModeπ
go read those too, they're the friend group iykyk π
and that's the tea, bestie π this page came straight from the SDL crew, dated Tue 11 Sep 2001, 23:01 β iconic vintage energy fr fr, she's been serving the same facts since day one π°οΈβ¨ mwah, go touch some gamma π¦
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms