Re: [AD] "blend color" is wrong |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] "blend color" is wrong
- From: "Trent Gamblin" <trent@xxxxxxxxxx>
- Date: Sun, 13 Jun 2010 09:13:50 -0600 (MDT)
On Sun, June 13, 2010 8:55 am, Elias Pschernig said:
> So I'm leaning towards option B now. It's the one easiest to describe in
> the documentation, with no special cases add all: If you want to specify
> the color of something, that is done (and can only be done) by passing
> in an ALLEGRO_COLOR parameter.
I think I agree... here's the scenario I described on IRC which occurs often
for me, described in pseudo code:
if (some special case)
set tint color // currently blend color
calculate where to draw
draw
Now if we make tinting done through a separate function, it becomes
calculate where to draw
if (some special case)
draw_tinted
else
draw
Which seems repetitive to me, and much worse if "draw" is a bunch of
different calls.
I think even text drawing it's better with a special al_set_tint_color function
affecting text (for consistency and scenarios like above)..
Trent :n)