opengl preview window.
in
Programming Questions
•
2 years ago
Hello,
i run a processing application and with controlp5 control window and a main output frame. i would like to have a preview of the ouput frame within the controlP5 control window.
As i use openGL ouput, i was wondering if it would be possible to render a resized preview of my main ouput window within my control window using some accelerated openGL cloning thing (just like windows 7 can display a preview of the window above the task bar when i hover my mouse above the application like the last thumbnail on the right on this picture : http://img87.imageshack.us/img87/3162/vipohtm.png). so this must be possible by grabing the frame content, and making it a texture and drawing it resized on the control window. i just don't know where to start looking.
i remeber compiz linux window manager had to have a card supporting GLX_EXT_texture_from_pixmap in order to be able to enable desktop composition... that might a be a lead.
any idea on how do this ? i searched the forum but did not find much information.
thanks in adavance.
i run a processing application and with controlp5 control window and a main output frame. i would like to have a preview of the ouput frame within the controlP5 control window.
As i use openGL ouput, i was wondering if it would be possible to render a resized preview of my main ouput window within my control window using some accelerated openGL cloning thing (just like windows 7 can display a preview of the window above the task bar when i hover my mouse above the application like the last thumbnail on the right on this picture : http://img87.imageshack.us/img87/3162/vipohtm.png). so this must be possible by grabing the frame content, and making it a texture and drawing it resized on the control window. i just don't know where to start looking.
i remeber compiz linux window manager had to have a card supporting GLX_EXT_texture_from_pixmap in order to be able to enable desktop composition... that might a be a lead.
any idea on how do this ? i searched the forum but did not find much information.
thanks in adavance.
1