How to draw a flashlight in a dark room?

For multiple light sources... Matt's suggestion would be best I think. You'd draw your scene into a screen-sized image, then update the mask for that image as fully white with black filled circles (or whatever pattern you like) around your light sources, then clear the screen to black and draw your image over that