  | | | Change the visual gamma correction | Change the visual gamma correction 2007-11-19 - By Gabriele Greco
Back I wonder if OSX has an easy way to change the gamma correction for the video surface in an opengl application in a simple way.
In windows you can do: ::SetDeviceGammaRamp(::GetDC(NULL), ramp);
I googled around a bit and I've found only complex methods using pixel shaders that I prefer to avoid 'cause I've had already too much headache supporting different GFX cards on three different OS versions :)
-- Bye, Gabry
I wonder if OSX has an easy way to change the gamma correction for the video surface in an opengl application in a simple way.<br><br style="font-size: 44 .9px;">In windows you can do:<br style="font-size: 44.9px;"> ::SetDeviceGammaRamp(::GetDC(NULL), ramp);<br style="font -size: 44.9px;"><br style="font-size: 44.9px;">I googled around a bit and I' ;ve found only complex methods using pixel shaders that I prefer to avoid ' ;cause I've had already too much headache supporting different GFX cards on three different OS versions :) <br><br style="font-size: 44.9px;">-- <br style="font-size: 44.9px;"> Bye,<br style="font-size: 44.9px;"> Gabry<br style="font-size: 44.9px;"><br style="font-size: 44.9px;">
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Do not post admin requests to the list. They will be ignored. Mac-games-dev mailing list (Mac-games-dev@(protected)) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-games-dev/junlu%405341.com
This email sent to junlu@(protected)
|
|
 |