PDA

View Full Version : doublebuffering four viewports?



Rainer
03-15-2000, 12:01 AM
I programmed an application on Win NT with four viewports(every viewport has its own DC). Now the viewports are supposed to be doublebuffered.

How can I use doublebuffering for this? And how do I do it in C++?

dmy
03-15-2000, 04:15 AM
act as usual. every DC should have a RC attached to it, so issue a SwapBuffers(DC) for any viewport.

Dolo/\/\ightY

fshana
03-20-2000, 09:58 AM
I've done this too with MFC and 4 viewports. I setup the DC with my view, there's only 1 for the 4 viewports. Likewise with the Rendering context. I draw each viewport AND THEN swap buffers. It works fine. Hope this helps
fs