hi,
in the function MyCView::OnPaint i do:
MyCView::OnPaint()
{
//we are going to draw a blue quad
//make Rendering Context current
...........
//clear with black color
...........
//draw a blue quad
glBgin(GL_QUADS)
…
glEnd();
SwapB…;
}
and in MyCView::OnLButtonDown i do:
Code:
MyCView::OnLButtonDown(…)
{
//makeRendering Context current
…
glDrawBuffer(GL_FRONT);
//draw a black quad width the same dimension in the same place as in OnPaint
//the two quads has the same dimension
//draw a black quad
glBgin(GL_QUADS)
…
glEnd();
glDrawBuffer(GL_BACK);
}
i want clear the first(blue) quad with the second quad(black) in the front buffer but it doesn’t work.