Re: [AD] List of sub bitmaps

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


On 2012-05-10, at 3:53 AM, Elias Pschernig wrote:
> On Thu, May 10, 2012 at 7:08 AM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
>> Is there any reason why bitmaps can't have a list of their child bitmaps? My use case is, I need to update a bitmap, changing it's texture when Android tabs away and back. I didn't notice this before but sub bitmaps have their own "extra" member, so even though the bitmap pointer stays the same, the sub bitmaps are out of date because extra->texture doesn't get updated.
> 
> The reason is that Allegro itself never needs it. (The automatic
> texture restoration and bitmap conversion both already work with
> sub-bitmaps.)

Well that's what this was all about. Automatic restoration. It DOESN'T work. But now that you've hinted at this, I think I can make it work without the list.

Trent





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