Size: 910
Comment: minor change for consistency - update to change
|
Size: 909
Comment: minor change
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
Returns 0 on success, or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. |
SDL_SetWindowBrightness
Use this function to set the brightness (gamma correction) for a window.
Contents
Syntax
int SDL_SetWindowBrightness(SDL_Window* window,
float brightness)
Function Parameters
window |
the window to change |
brightness |
the brightness (gamma) value to set where 0.0 is completely dark and 1.0 is normal brightness |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here