[SDL] 8bit greyscale surfaces
unknown at panax.com
Wed Jan 7 19:20:01 PST 2004
On 07-Jan-2004, Alan Wolfe wrote:
> Hey patrick, what about changing the pallette to 256 shades of grey? (;
Unacceptable. That means I have a 8bit paletted image, instead of an actual
greyscale image. Theres a bunch of reasons why this is bad, including needing
to load four bytes instead of one (pixel value (as pallete entry) and r, g, b, instead of just the pixel value (as intensity)); and the fact that I no longer
have any easy way of knowing its greyscale (I already hashed this out with LIM
on irc, and there just isnt any easy way of doing this that squashes most/all
What I want to do is extend the SDL api to allow 8bit greyscale, instead of
screwing around with paletted surfaces.
I'm hoping for a responce from Sam, actually.
Patrick "Diablo-D3" McFarland || unknown at panax.com
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the SDL