Re: [AD] clipping, sub bitmaps

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


On 16 Aug 2009, at 21:36 , Peter Wang wrote:
With sub-bitmaps it would be easy to allow you to change the
sub-bitmap's offset and size.  On the other hand, if you create a
sub-sub-bitmap then change the parent bitmap's offset, you might expect
the sub-sub-bitmap to be shifted as well, and that *would* complicate
things. The same argument applies to top-level bitmaps and sub- bitmaps.

Do bitmaps keep a list of their subbitmaps? If they do, that would just require calling the translation (a relative one, of course, the top level one is absolute) on all sub bitmaps of the parent bitmap.

Evert




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