Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2011-03-22 17:43:49
Size: 910
Editor: SheenaSmith
Comment: reconsidered change
Revision 6 as of 2011-03-27 20:38:39
Size: 910
Editor: SheenaSmith
Comment: minor change for consistency - update to change
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''window'''||the window to update|| ||'''window'''||the window to change||

SDL_SetWindowBrightness

Use this function to set the brightness (gamma correction) for a window.

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


CategoryAPI, CategoryVideo

None: SDL_SetWindowBrightness (last edited 2014-06-24 23:45:10 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit