include/SDL_video.h
changeset 5466 006883d5fa51
parent 5403 424f036f7c68
child 5504 469da3d31cbd
equal deleted inserted replaced
5465:46bd121b04a2 5466:006883d5fa51
   603  *  \sa SDL_SetWindowGrab()
   603  *  \sa SDL_SetWindowGrab()
   604  */
   604  */
   605 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
   605 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
   606 
   606 
   607 /**
   607 /**
       
   608  *  \brief Set the brightness (gamma correction) for a window.
       
   609  *  
       
   610  *  \return 0 on success, or -1 if setting the brightness isn't supported.
       
   611  *  
       
   612  *  \sa SDL_GetWindowBrightness()
       
   613  *  \sa SDL_SetWindowGammaRamp()
       
   614  */
       
   615 extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float brightness);
       
   616 
       
   617 /**
       
   618  *  \brief Get the brightness (gamma correction) for a window.
       
   619  *  
       
   620  *  \return The last brightness value passed to SDL_SetWindowBrightness()
       
   621  *  
       
   622  *  \sa SDL_SetWindowBrightness()
       
   623  */
       
   624 extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
       
   625 
       
   626 /**
       
   627  *  \brief Set the gamma ramp for a window.
       
   628  *  
       
   629  *  \param red The translation table for the red channel, or NULL.
       
   630  *  \param green The translation table for the green channel, or NULL.
       
   631  *  \param blue The translation table for the blue channel, or NULL.
       
   632  *  
       
   633  *  \return 0 on success, or -1 if gamma ramps are unsupported.
       
   634  *  
       
   635  *  Set the gamma translation table for the red, green, and blue channels
       
   636  *  of the video hardware.  Each table is an array of 256 16-bit quantities,
       
   637  *  representing a mapping between the input and output for that channel.
       
   638  *  The input is the index into the array, and the output is the 16-bit
       
   639  *  gamma value at that index, scaled to the output color precision.
       
   640  *
       
   641  *  \sa SDL_SetWindowGammaRamp()
       
   642  */
       
   643 extern DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window * window,
       
   644                                                    const Uint16 * red,
       
   645                                                    const Uint16 * green,
       
   646                                                    const Uint16 * blue);
       
   647 
       
   648 /**
       
   649  *  \brief Get the gamma ramp for a window.
       
   650  *  
       
   651  *  \param red   A pointer to a 256 element array of 16-bit quantities to hold 
       
   652  *               the translation table for the red channel, or NULL.
       
   653  *  \param green A pointer to a 256 element array of 16-bit quantities to hold 
       
   654  *               the translation table for the green channel, or NULL.
       
   655  *  \param blue  A pointer to a 256 element array of 16-bit quantities to hold 
       
   656  *               the translation table for the blue channel, or NULL.
       
   657  *   
       
   658  *  \return 0 on success, or -1 if gamma ramps are unsupported.
       
   659  *  
       
   660  *  \sa SDL_SetWindowGammaRamp()
       
   661  */
       
   662 extern DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window * window,
       
   663                                                    Uint16 * red,
       
   664                                                    Uint16 * green,
       
   665                                                    Uint16 * blue);
       
   666 
       
   667 /**
   608  *  \brief Destroy a window.
   668  *  \brief Destroy a window.
   609  */
   669  */
   610 extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
   670 extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
   611 
   671 
   612 
   672