Sub bitmaps in multiple threads
malexkiy

Hello!

How should I use sub bitmaps created with al_create_sub_bitmap() function to draw in parent bitmap from threads?

I use allegro 5.1 and C++ 11

Elias

Lock the thread and set the target bitmap. (Make sure only one thread at a time ever has the same target bitmap!)

In general though I would advice against doing it as it will be quite slow.

Thread #617188. Printed from Allegro.cc