PDA

View Full Version : Writing to & Reading from a native windows buffer



vvr_opengl
12-08-2008, 02:37 PM
Hi

I am new to Opengl.

I have an assignment to complete. Here are the requirements

1. draw the image on to windows native buffer. I was told not use frame buffer.

2. Read from that buffer and draw on the screen or printer.

I know how to do the second part.

What kind of buffer should I use for the first req? Please point me to any examples.

Thanks,
Vvr

ZbuffeR
12-08-2008, 03:36 PM
talk about badly worded assignments...
what is a "windows native buffer" actually ? and how different from the framebuffer ?

_NK47
12-09-2008, 04:28 AM
probably some BitBlt stuff with HDC. why not use framebuffers these days? stupid assigments.
draw the frame into backbuffer and glReadPixels it to RAM then. from there you can do anything with it, even copy to "windows native buffer".