Displaying a bitmap
I triedo use DDReLoadBitmap() but i found out that if I try to call it each frame the fps goes down significantly, I just need a bitmap background, how would i go about doing that? I need the background to be blitted at the begenning of every frame so that i can blit all the other things on their new screen positions.
March 24, 2002 08:56 PM
load the bmp into a surface and BltFast it to the screen - try reading some tutorials before posting...
March 24, 2002 09:47 PM
You only do DDReLoadBitmap() if the program needs to reload it, like if someone alt-tabs and your program minimizes then it will need to reload the bitmap. What you do is load a bitmap to a surface (only once) then blt it to the primary surface.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement