Archived

This topic is now archived and is closed to further replies.

Drawing a background

This topic is 5980 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites