Skip to main content
GameDev.net gamedev.net
🔒 Locked

Drawing a background

Started by nanobyte Aug 1, 2001 at 9:57 PM 1 replies 450+ views
Original Post
nanobyte
nanobyte
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
warm0ng3r
warm0ng3r
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!
nanobyte
nanobyte
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.