Wiki Page Content

Revision 1 as of 2011-03-17 22:53:57

Clear message

DRAFT

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, 0.0 to 1.0

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

This function will fail if setting the brightness is not supported.


CategoryAPI, CategoryVideo

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