PDA

View Full Version : PFD_DOUBLEBUFFER



Meu
06-02-2005, 11:21 PM
Hello,
If I specify this flag to the dwFlags field of PIXELFORMATDESCRIPTOR to PFD_DOUBLEBUFFER is this means I have 2 buffers + the rendering window, That what I must think after reading this from msdn:


PFD_DOUBLEBUFFER: The buffer is double-buffered. This flag and PFD_SUPPORT_GDI are mutually exclusive in the current generic implementation.
.
Please if any one has answer tell.
Thanks,
Mustafa ELBanna

ZbuffeR
06-03-2005, 03:29 AM
>> 2 buffers + the rendering window
No, with PFD_DOUBLEBUFFER you get just 2 buffers, a visible (GL_FRONT) and a non-visible (GL_BACK) where drawing actually occur.
SwapBuffers will swap the two.

Meu
06-03-2005, 06:52 AM
Hello,
But the front buffer will be my windows window!!
How is that and msdn say that the dwFlags of PIXELFORMATDESCRIPTOR for the pixel buffer not the pixel it self??
Thanks,
Mustafa ELBanna