Re: [AD] Question about 256 colors modes |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Question about 256 colors modes
- From: Hugo Daniel Caro <hugo_caro@xxxxxxxxxx>
- Date: Wed, 14 Dec 2005 12:21:02 -0300 (ART)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4GoPcPLBf9ejb6eqmz+JPVI1501hYZ+aNZnfcXiiihPILs5LEoLbTi521FKlFjOAWrHXoW+QlS4lSaZonPUenjDWM9JWVQ6LEmiSo9rmQLLL0U0CU2ZgV4P+m9S0rpHk/DHXvt5g4lg02p+aKk+gWTIkBeT/JhV0AkoaBr7Rl1U= ;
Hi Elias!
Thanks for your answer, you answered my "reformulated"
question also while I was writing it. I would be great
to have a function like this (setting the transparent
index color) on the new API.
Thank you very much to all!
Kind regards, Hugo.
--- Elias Pschernig <elias@xxxxxxxxxx>
escribió:
> On Wed, 2005-12-14 at 11:54 -0300, Hugo Daniel Caro
> wrote:
> > Hi everybody,
> >
> > I guess this is an old topic, but I would like to
> know
> > why, in 256 colors mode, do you "have" to have the
> > "black" (rgb=0,0,0) color at the palette[0] in the
> > palette table. Is there any reason where it should
> be
> > there? I remember some very old video cards
> required
> > that...
> >
> > This makes that, if you have other rgb pattern at
> > palette[0] rather than (rgb=0,0,0), masked_blit
> does
> > not do it's work.
>
> That's not true. palette index 0 is the masked
> color, but you can set it
> to any color. The reason it was originally used in
> Allegro was AFAIK, 0
> was faster to skip in the ASM code, and pallete 0
> was the border color
> on old video cards, so already special cased by the
> HW.
>
> > I would suggest to add another function, something
> > like "set_masked_blit_color" to tell allegro which
> > color index is to be considered for
> transparency...
> > (which would allow to use other color than black
> as
> > "transparent").
>
> I agree, also for truecolor bitmaps. We should add
> this to the design of
> the new API.
>
> --
> Elias Pschernig
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do
> you grep through log files
> for problems? Stop! Download the new AJAX search
> engine that makes
> searching your log files as easy as surfing the
> web. DOWNLOAD SPLUNK!
>
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> --
>
https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar