Re: [AD] memory bitmap blending

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-11-23, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Sun, November 23, 2008 5:00 pm, Peter Wang said:
> > I don't think it needs to be a proper addon (that is, living in the
> > addons directory, being installed).  We just need something
> > simple[^]
> > for small test programs.  I don't mind if a few examples are in C++.
> >
> > If your GUI could fill that space, please send it.  Otherwise, I'm
> > sure
> > people here could suggest countless other candidates ;-)
> >
> > Peter
> >
> > [^] Say, the GUI core runs not more than 1000 LoC.
> 
> Mine is about 1200 lines. Without the Allegro 4 support it might fix
> that requirement. Anyway, if you want to take a look at it first,
> it's available at http://trent.gamblin.ca/tgui/.

It seems to do a bit more than what we'd need (which is fine).
Actually, I've had an idea since designing the event queues to see how
much of a GUI loop can be driven by events, so I started implementing it.

It's not complete.  But I wrote the blending example and noticed some
problems, so I'm posting it so you can use it for debugging.  It's
attached.

Peter

P.S. I'm learning/refreshing my C++ so feel free to point out things
I've done wrong. (off list, I guess)

Attachment: blend2_incomplete.diff.gz
Description: application/gunzip



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/