|
drawing on a loaded image |
Sylvarant
Member #7,886
October 2006
|
I want to draw a self created bitmap ( I created it in allegro and drew some stuff on to it) onto the screen, wich is filled with an image (I used draw sprite for that). But my self created bitmap keeps flickering.
|
HardTranceFan
Member #7,317
June 2006
|
code? -- |
Sylvarant
Member #7,886
October 2006
|
"code?"
|
Rick
Member #3,572
June 2003
|
You want to double buffer this. Create another bitmap that you draw everything to. Call it say buffer. Then after you are done drawing everything, draw this buffer to the screen. Then clear this buffer bitmap and start all over again. That's called double buffering and is a basic idea of game programming. ======================================================== |
HardTranceFan
Member #7,317
June 2006
|
Why are you loading testmap.bmp within the while loop? Do it once before the loop. -- |
|