PDA

View Full Version : Offscreen rendering into a Pixmap



chennes
06-29-2002, 01:57 PM
I need to do some offscreen rendering into a pixmap - I need this pixmap's rendering context to share display lists with my onscreen rendering contexts.

I am using gtkglarea-- for my onscreen and was going to use Gdk_GL::Context and Gdk_GL::Pixmap for my offscreen - I don't see how to share display lists across these types.

I know this is a pretty specific problem, but any help would be appreciated.

Thanks,
Chris

06-30-2002, 07:48 AM
I read somewhere that this feature is (was?) broken in Mesa. You should only have to give the other context in the call to glXCreateContext.

chennes
07-01-2002, 04:13 AM
Zico-

Thanks for the response - which feature are you referring to? I figured out how to share the lists across those types (I'm not making any calls directly to glx - that's why I couldn't figure it out), but my application is hanging on a call to glIsList() !! Any ideas? I'm sharing DLs all over the place, but never between an onscreen and offscreen context (until now).

Chris

07-01-2002, 09:06 AM
The "feature" I was refering to is sharing between OpenGL contexts. I think it was this message that I remembered http://groups.google.com/groups?q=mesa+l...other.de&rnum=1 (http://groups.google.com/groups?q=mesa+linux+share+%22comp.graphics.api.ope ngl%22&hl=en&lr=&ie=UTF-8&oe=UTF8&safe=off&as_qdr=m3&selm=3CE9D1A2.794F7551%40hergenrother.de&rnum=1)