Index: [thread] [date] [subject] [author]
  From: Steve Cheng <elmert@ipoline.com>
  To  : ggi-develop@eskimo.com
  Date: Sat, 8 Aug 1998 11:00:49 -0400 (EDT)

Re: palettes, etc

On Sat, 8 Aug 1998, Alex Roberts wrote:

> Well, looking though all the demos they all had a palette definition, etc..
> so, i guess these definitions are only for 8bpp resoloutions? 

ggiSetPalette() silently fails if it is a paletteless mode and you try to
set one.

> hmm.. well, if i
> _do_ actually get around to start on developing annything in/for GGI is it ok
> to force people to use 16+bpp?

If you want to be portable between different graphics modes use
ggiMapColor() or ggiPackColors() to map a RGBA ggi_color to ggi_pixel.

> urgh, i'm really confused now...
> 
> 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?

No, you do not have to define a palette for any target in paletteless mode.

--
Steve Cheng               

email: steve@ggi-project.org   
www: <http://shell.ipoline.com/~elmert/>;

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