Gamma support is back!
New API functions: SDL_SetWindowBrightness() SDL_GetWindowBrightness() SDL_SetWindowGammaRamp() SDL_GetWindowGammaRamp() SDL_CalculateGammaRamp()
This commit is contained in:
parent
2f6aa755d6
commit
7dd0385c57
21 changed files with 703 additions and 26 deletions
|
@ -405,6 +405,12 @@ extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,
|
|||
Uint8 * r, Uint8 * g, Uint8 * b,
|
||||
Uint8 * a);
|
||||
|
||||
/**
|
||||
* \brief Calculate a 256 entry gamma ramp for a gamma value.
|
||||
*/
|
||||
extern DECLSPEC void SDLCALL SDL_CalculateGammaRamp(float gamma, Uint16 * ramp);
|
||||
|
||||
|
||||
/* Ends C function definitions when using C++ */
|
||||
#ifdef __cplusplus
|
||||
/* *INDENT-OFF* */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue