www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/19/13:35:26

From: "Ingo Ruhnke" <grumbel AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Palletes in allegro
Date: Thu, 19 Feb 1998 17:16:29 +0100
Organization: Telemedia News Server
Lines: 25
Message-ID: <34ec6b03.0@news1.cityweb.de>
References: <34EB3FBA DOT 1682 AT home DOT com>
NNTP-Posting-Host: demdwu36.bertelsmann.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dan schrieb in Nachricht <34EB3FBA DOT 1682 AT home DOT com>...
>I was wondering how to go about loading 2 pictures in allegro.  i am
>working with some tutorial files and i am able to load one rle sprite
>but that's because a pallete is provided for me to use.  i haven't tried
>loading another picture yet (because I don't have one to load yet) but
>i'm thinking that without the proper pallete, the second picture i load
>will look quite messed up.  so i was wondering, do i have to load a
>separate pallete everytime i load a new picture?  it might help to know
>that i'm working in mode13, 320x200.  any help would be much
>appreciated.


There a two way around this:

1. Edit the pictures with a graphic programm (for examples PaintShop Pro),
   so that they have the same palette. This could cause some ugly colors in
   your pictures, because the colors must be reduced.

2. Use the truecolor modes in allegro, there is no palette and you don't
   have to worry about them.

Ingo



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019