SDL_ALPHA_TRANSPARENT_FLOAT(3)

πŸ’– NAME πŸ’–

SDL_ALPHA_TRANSPARENT_FLOAT β€” bestie, it's literally the fully transparent floating point alpha value. Zero. Nada. See-through. The ghost of alpha values. πŸ‘»


✨ SYNOPSIS ✨

okay so here's the whole thing, and yes it's just one line, she's low maintenance like that:

#include <SDL3/SDL_pixels.h>

#define SDL_ALPHA_TRANSPARENT_FLOAT 0.0f

so you pull in SDL_pixels.h and the macro SDL_ALPHA_TRANSPARENT_FLOAT is defined as 0.0f. that's it. that's the post. πŸ’…


🌸 AVAILABILITY 🌸

this macro has been serving since SDL 3.2.0 β€” so if you're on anything older, no she's not there, sorry babe, upgrade era. πŸ¦‹


πŸŽ€ SEE ALSO πŸŽ€

  • SDL_ALPHA_OPAQUE_FLOAT(3) β€” the opposite girlie, the fully opaque float alpha value. her and this macro are giving twin flames, iykyk. πŸ’œ

no cap, that's genuinely the entire page. some macros are main characters with 40 options, this one is a single iconic fact and honestly? respect. πŸ‘‘

mwah, kisses, this was brought to you by the Simple Directmedia Layer girlies β€” SDL 3.4.18 edition, with all the love from the SDL3 functions squad. πŸ«ΆπŸŽ€βœ¨

πŸ“¦ where this page comes from