www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/17/19:30:48

From: a DOT gillett AT virgin DOT net (Andrew R. Gillett)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - Lit sprites
Date: Sun, 17 May 1998 23:52:45 +0100
Organization: Virgin Net Usenet Service
Lines: 20
Message-ID: <MPG.fc84ef840c8c3a998969d@news.virgin.net>
References: <MPG DOT fc806799d66481998969b AT news DOT virgin DOT net> <355E2581 DOT 451C12CA AT frozenwave DOT com>
NNTP-Posting-Host: 194.168.71.82
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <355E2581 DOT 451C12CA AT frozenwave DOT com>, Kertis A. Henderson 
(kertis AT frozenwave DOT com) wrote:
> Andrew R. Gillett wrote:
> > 
> > Is it possible to draw a lit sprite which doesn't tint the sprite's black
> > background? I am trying to do a scrolltext where each character can be a
> > different colour, but it always tints the background of each character.
> 
> Couldn't you use text_mode(-1); and not even draw the background?

Makes no difference - the background always seems to be tinted. What I 
need is a 'draw_masked_lit_sprite', or something like that. Although all 
the other sprite functions already skip the transparent areas, so I don't 
understand why draw_lit_sprite doesn't as well.

Btw, my program is in 16-bit colour mode, in case that's any help.


Andrew Gillett
http://argnet.fatal-design.com/

- Raw text -


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