[SDL] alpha and gamma

Sam Lantinga slouken at devolution.com
Tue Jan 25 09:37:03 PST 2005


> The SDL function for adjusting gamma is rather useless
> for fixing this, for two reasons:

> 1. it doesn't work with all video drivers
> 2. for good looks, gamma==1.0 needs at least 10 bits/channel

SDL just plugs into the underlying video API for gamma settings.

> Gamma adjustment using a 12-bit lookup table seems to
> go pretty fast, even when using floating point for the
> linear data.

> So... how about having SDL handle this stuff better?

Do you have a proposed patch?

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list