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.
Second question:
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.
Output:
1
Why?
Your thread only runs once because it exits. Shouldn't you put a while-loop in there?
Okay it work, thanks. Earlier loop just make screen black. This had to be just a coincidence.