Re: [AD] al_convert_bitmap

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


On Thu, Jun 2, 2011 at 5:15 PM, Elias Pschernig
<elias.pschernig@xxxxxxxxxx> wrote:
> The attached patch adds the ability to convert between memory and video
> bitmaps. It has two new functions:
>
> al_convert_bitmap: like al_clone_bitmap, but modifies the bitmap
> in-place)
>
> al_convert_all_video_bitmaps: converts all video bitmaps which have
> silently been converted to memory bitmaps because there was no display
> to actual video bitmaps
>
I haven't looked at this yet, but how does it handle this case:

1) create display
2) create video bitmap
3) destroy display
video bitmap now a memory bitmap
4) create display

Do you still have to call al_convert_all_video_bitmaps() to upload
that video bitmap?

Also, what is the end result when doing this?

1) create video bitmap
video bitmap now a memory bitmap
2) create display
3) convert all video bitmaps
memory bitmap now a video bitmap
4) destroy display
video bitmap now a memory bitmap
5) create display


--
Matthew Leverton




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