Get the opacity of a window.
Defined in <SDL3/SDL_video.h>
float SDL_GetWindowOpacity(SDL_Window *window);
SDL_Window * | window | the window to get the current opacity value from. |
(float) Returns the opacity, (0.0f - transparent, 1.0f - opaque), or -1.0f on failure; call SDL_GetError() for more information.
If transparency isn't supported on this platform, opacity will be returned as 1.0f without error.
This function is available since SDL 3.1.3.