SFML community forums

Help => Window => Topic started by: shiroaisu on January 12, 2011, 12:56:37 pm

Title: Changing gamma, brightness and contrast
Post by: shiroaisu on January 12, 2011, 12:56:37 pm
Hi.

I would like to know if there is any way to change the gamma, brightness and contrast of the window using SFML.

tks in advance.
Title: Changing gamma, brightness and contrast
Post by: Laurent on January 12, 2011, 07:18:01 pm
The only "easy" way that I can think of, is to use a shader.
Title: Changing gamma, brightness and contrast
Post by: shiroaisu on January 12, 2011, 07:29:23 pm
yes i tought of that too, but that would only change the brigtness, what about the contrast?? is there anyway to change it?
Title: Changing gamma, brightness and contrast
Post by: AlexM on January 12, 2011, 07:43:51 pm
You should be able to make a contrast filter via shaders as well.
Title: Changing gamma, brightness and contrast
Post by: Laurent on January 12, 2011, 08:36:08 pm
As long as there's a formula that can process RGBA and can output RGBA, you can do it with a shader.
Title: Changing gamma, brightness and contrast
Post by: shiroaisu on January 12, 2011, 10:16:05 pm
Ok thanks for the replies :)