In <[🔎] email@example.com>, Micha Feigin wrote: >I'm trying to figure out how to capture the screen using opengl. I tried >glReadPixels but if I understand correctly it is reading from the current >opengl context (the visible part of the current opengl window) and not the > full screen. Is there a way to make the current opengl context the full > screen instead of an opengl window, or is there another way to do this? I've only got a passing familiarity with OpenGL, but I'll guess... If you are doing a screen capture via OpenGL, you'll probably want to create your own context (with direct GLX calls), rather than using the one provided by your widgets API (Qt/Gtk). You will probably need to base it off of the root window. -- Boyd Stephen Smith Jr. ,= ,-_-. =. firstname.lastname@example.org ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Description: This is a digitally signed message part.