PDA

View Full Version : offscreen rendering under Windows



projet_chu
10-02-2003, 03:21 AM
Hello, I would like to know how to render a picture directly into a memory buffer with OpenGL without displaying it. To do this, I created a bitmap with 'CreateDIBSection', I chose a pixel format with arguments PFD_DRAW_TO_BITMAP, PFD_SUPPORT_OPENGL, PFD_SUPPORT_GDI, then I created a context WGL with 'wglCreateContext' but that doesn't works. If someone could show me how to do that, I would be very grateful.

heath
10-02-2003, 03:36 PM
http://www.delphi3d.net/listfiles.php?category=6

pbuffer.zip

hope this helps.