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