PDA

View Full Version : Problem with MFC



bondi
10-30-2001, 05:20 AM
I write a OpenGL-Program in SDI. If I animate an object, the screen flickers.
Can anybody tell me, how I eliminate this
flickers.

Coconut
10-30-2001, 05:37 AM
You can get the answer from searching this forum, or faq.

nickels
10-30-2001, 02:00 PM
Most likely you need to use double buffering and glSwapBuffers. That way the world isn't watching while you're drawing, it just sees the finished product.

Korval
10-30-2001, 02:30 PM
Your problem may be more than that. Override CView::OnEraseBkgrnd and have it return TRUE. This will prevent Windows from clearing your screen for you before you start drawing.