PFD_DRAW_TO_BITMAP

When setting pixel format descriptor dwFlags to PFD_DRAW_TO_BITMAP, where opengl renders and how to display that one on the screen?

[This message has been edited by ramana (edited 12-15-2003).]

Hi,
The rendering will occur on the screen if you specify both draw_to_window and draw_to_bitmap, and it will be software only.

If you really want to draw to a bitmap you need to specify a memory HDC and create a compatible bitmap to draw into.
It will only work with Microsoft’s generic software OpenGL implementation, no hardware acceleration or OpenGL features greater than version 1.1.
To display the result you can blit the bitmap like any other device compatible bitmap.

See MSDN for the article
“OpenGL VI: Rendering on DIBs with PFD_DRAW_TO_BITMAP” http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnopen/html/msdn_gl6.asp