Advertisement

Displaying a bitmap

Started by March 24, 2002 08:49 PM
4 comments, last by perfectly_dark 22 years, 8 months ago
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.
load the bmp into a surface and BltFast it to the screen - try reading some tutorials before posting...
Advertisement
thx, but i hve read the tutorials, ill take a closer look
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.
...um...how would i do that? (this is a beginners board after all, lol)
when you want to put something on a directdraw''s surface, you use the win32 api bitblt()
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,

This topic is closed to new replies.

Advertisement