I draw an image as a back on the screen first, then draw a mask for a picture like this: it is a circle with a white color in the middle, and all of the left is black. I use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); to make it display only the white circle on the back image. Then i need to draw another image on the same position of mask. my aim is to make this image only be drawed where the part is corresponding with the white circle. In fact what i want to draw is a moon. And i must make it opaque. What should i do?
i wish recive your help. you can email me at [email protected]
thanks very much!