Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-03-17 22:53:57
Size: 998
Editor: SheenaSmith
Comment: create page - 3/15 ef1db08c40ac (3/11 006883d5fa51)
Revision 2 as of 2011-03-22 17:41:22
Size: 892
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 17: Line 16:
||'''window'''||^the window to change^||
||'''brightness'''||the brightness (gamma) value to set, 0.0 to 1.0||
||'''window'''||the window to update||
||'''brightness'''||the brightness (gamma) value to set where 0.0 is black and 1.0 is no change||
Line 31: Line 30:
,,This function will fail if setting the brightness is not supported.,,


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


int SDL_SetWindowBrightness(SDL_Window* window,
                            float       brightness)

Function Parameters


the window to update


the brightness (gamma) value to set where 0.0 is black and 1.0 is no change

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


You can add useful comments here

CategoryAPI, CategoryVideo

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

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