![]() |
|
Sub bitmaps in multiple threads |
malexkiy
Member #16,783
December 2017
|
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
Member #358
May 2000
|
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. -- |
|