I was wondering if anyone knows of a clever way to draw an image for my particular situation. I guess you could call it masking.

Basically, the balls that approach from the bottom should be hidden from view until they enter the playfield (the black part). Currently in my code, they are also drawn on top of the background, because I draw the balls last. The background is drawn first, and secondly I draw the black level, on top of the background.
I guess this could be solved by every frame taking a "screenshot" from the backbuffer or something and drawing that on top of the balls. But what I'm wondering is if there's some better methods of achieving this, some that are not as cpu taxing. Maybe there's an option of drawing a part of an image or something? Maybe something to do with blending layers?

Basically, the balls that approach from the bottom should be hidden from view until they enter the playfield (the black part). Currently in my code, they are also drawn on top of the background, because I draw the balls last. The background is drawn first, and secondly I draw the black level, on top of the background.
I guess this could be solved by every frame taking a "screenshot" from the backbuffer or something and drawing that on top of the balls. But what I'm wondering is if there's some better methods of achieving this, some that are not as cpu taxing. Maybe there's an option of drawing a part of an image or something? Maybe something to do with blending layers?