PDA

View Full Version : copying from pbuffer to window



richk
04-07-2004, 12:28 PM
Hi,
I'm trying to use the ARB_pbuffer extension to refresh a window in response to WM_PAINT messages (so I don't have to re-render the scene every time). I've got the rendering into the pbuffer working OK (or at least I think I have), but I can't figure out how to get my image out of the pbuffer and into the main window...

Do I need to use the ARB_render_texture extension, or is there some other way I can copy from the pbuffer into the window (I was trying to keep the number of extensions I was using to a minimum)...?

Thanks!

ZbuffeR
04-07-2004, 12:44 PM
Come on you can go for another extension :p

With RTT and a quad, you are done. You can see how I did it here www.chez.com/dedebuffer (http://www.chez.com/dedebuffer) (RENDER.C) if it can help you.