Index: [thread] [date] [subject] [author]
  From: Emmanuel Marty <core@suntech.fr>
  To  : ggi-develop@eskimo.com
  Date: Sat, 08 Aug 1998 14:24:26 +0000

Re: palettes, etc

Alex Roberts wrote:

> all i want to know is: do i have to define a palette, even though i'm aiming
> for development with 16+bit graphics? and if i do that, will it be ok for
> people using KGI as well as libGGI/X11?

8-bit modes use palettes, and what you write to the framebuffer is a 8-bit
index into the palette.

15,16,24,32-bit modes, etc. use direct color - what you write to the
framebuffer is the direct color values, with varying precision depending
on the number of bits (3 x 5 bits for 15-bit, 3 x 8 bits for 24, for example) ;
therefore you needn't set any palette.

If you intend to use KGI mainly, you can use any mode you like, the display
will switch. For X, most people use 16-bit, i think, and you have the trueemu
target to do conversions.. but best is to have native support for at least
indexed and direct color..

--
Emmanuel


Index: [thread] [date] [subject] [author]