Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-03-18 16:51:25
Size: 832
Editor: SheenaSmith
Comment: create page - 3/15 ef1db08c40ac (3/11 006883d5fa51)
Revision 2 as of 2011-03-22 17:47:20
Size: 703
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 19: Line 18:
Returns the last brightness value passed to [[SDL_SetWindowBrightness]]() on success, or a negative error code on failure; call [[SDL_GetError]]() for more information. Returns the brightness for the window where 0.0 is completely dark and 1.0 is normal brightness.

SDL_GetWindowBrightness

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

Syntax

float SDL_GetWindowBrightness(SDL_Window* window)

Function Parameters

window

the window to query

Return Value

Returns the brightness for the window where 0.0 is completely dark and 1.0 is normal brightness.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryVideo

None: SDL_GetWindowBrightness (last edited 2014-06-24 23:43:06 by PhilippWiesemann)

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