include/SDL_video.h
changeset 10025 bf4f8cde1c54
parent 10024 9a1189c7b891
child 10026 5f73f513b9f5
     1.1 --- a/include/SDL_video.h	Tue Jan 05 02:29:06 2016 -0500
     1.2 +++ b/include/SDL_video.h	Tue Jan 05 02:46:10 2016 -0500
     1.3 @@ -846,6 +846,34 @@
     1.4  extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
     1.5  
     1.6  /**
     1.7 + *  \brief Set the opacity for a window
     1.8 + *
     1.9 + *  \param window The window which will be made transparent or opaque
    1.10 + *  \param opacity Opacity (0.0f - transparent, 1.0f - opaque) This will be
    1.11 + *                 clamped internally between 0.0f and 1.0f.
    1.12 + * 
    1.13 + *  \return 0 on success, or -1 if setting the opacity isn't supported.
    1.14 + *
    1.15 + *  \sa SDL_GetWindowOpacity()
    1.16 + */
    1.17 +extern DECLSPEC int SDLCALL SDL_SetWindowOpacity(SDL_Window * window, float opacity);
    1.18 +
    1.19 +/**
    1.20 + *  \brief Get the opacity of a window.
    1.21 + *
    1.22 + *  If transparency isn't supported on this platform, opacity will be reported
    1.23 + *  as 1.0f without error.
    1.24 + *
    1.25 + *  \param window The window in question.
    1.26 + *  \param opacity Opacity (0.0f - transparent, 1.0f - opaque)
    1.27 + *
    1.28 + *  \return 0 on success, or -1 on error (invalid window, etc).
    1.29 + *
    1.30 + *  \sa SDL_SetWindowOpacity()
    1.31 + */
    1.32 +extern DECLSPEC int SDLCALL SDL_GetWindowOpacity(SDL_Window * window, float * out_opacity);
    1.33 +
    1.34 +/**
    1.35   *  \brief Set the gamma ramp for a window.
    1.36   *
    1.37   *  \param window The window for which the gamma ramp should be set.