[SDL] SDL_SetWindowBrightness is not working!
damien.lloyd21 at gmail.com
Fri Jan 29 09:03:32 PST 2016
> First of all, you might wan to try calling `SDL_GetError()` right after the set brightness thing. It might tell you something interesting.
> Secondly I don't think this is what you are aiming for. From the wiki https://wiki.libsdl.org/SDL_SetWindowBrightness, this function set the brightness to the whole display/screen (rather than just your window, despite what its name suggested). The proper lighting system would be needed to litting up your model.
> I've never used this funtion though. I might be wrong.
I'm aware that's what the brightness function does. I also have a lighting system in place (I use phong shading) which lights up the model. I only have one light currently which is positioned in front of the model. That works regardless of the brightness setting.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL