[SDL] Palettized picture looks bad, but only in SDL

Glenn Maynard g_sdl at zewt.org
Wed Aug 27 13:40:01 PDT 2003


On Wed, Aug 27, 2003 at 12:52:09PM -0700, Paul Smith wrote:
> OF course, this means that there's an extra design element you may not
> have thought about when producing your artwork - all of your images
> *have* to use the exact same palette (in the same order!) if they are
> to be displayed on screen at once.  If you using an image editing

... if you're using a paletted screen.  It's still very useful to use
paletted images if you're using a non-paletted framebuffer: they use much
less memory.  This works well in OpenGL, too.

> in the same order

Not quite: a blit can very easily map palette entries that are in
different orders.  It's somewhat slower, of course, but only by a
lookup in a small (= memory cache-friendly) table.  I'm pretty sure SDL
blits do this.

-- 
Glenn Maynard




More information about the SDL mailing list