Pfd_doublebuffer

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

>> 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.

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.