Drawing a background

Started by
1 comment, last by nanobyte 22 years, 8 months ago
I have a nice scenic background that is 800 x 600 pixels. But as you can imagine rendering this large image along with transparent golf balls really slows stuff down. Is there any way I can draw this once and be done with it? You can see a screen shot of the program I''m working on at: http://nanobyte.cjb.net . Thanks
Advertisement
if i understand what ure asking, then just copy the bitmap to a standard offscreen surface (800*600), using ure bitmap copying procedure. Then, during the loop, just blit that offscreen surface to the back buffer along with your other surfaces (you gold balls, etc...), and then blit the back surface to the front surface.

here in castle camelot we eat ham and jam and spam alot!
Yes, I could do that, but would I not still be rendering the large background image each frame? Its it possible to render the bg once and then just concentrate on all the other moving objects?

Thanks

This topic is closed to new replies.

Advertisement