[a5] Render some pixel data and question about threads in allegro5
I have two questions. First:
How can I quickly render pixel data from unsigned char buffer with BGRA32 format into video bitmap?
At now I just copy every pixels by al_draw_pixel, but it's too slow.
I think that a allegro threads is a solution for the first problem. But, my thread run just once. I created thread, start thread, and it still run once.
Your thread only runs once because it exits. Shouldn't you put a while-loop in there?
Thread #607729. Printed from Allegro.cc
Okay it work, thanks. Earlier loop just make screen black. This had to be just a coincidence.