On 07/16/2015 11:07 AM, gouessej [via jogamp] wrote:
> Why not taking the picture just before hiding the GLJPanel?
^^ this is surely the favorable solution.
However, I like to take the chance and 'advertise'
the feature of swapping GLContext and all GLEventListener
from one GL[Auto]Drawable to another.
Here .. one could swap from onscreen to offscreen rendering
and vice versa, which also allows to change the drawable size.
The following link shows how it is being used for tiled printing
using GLJPanel:
<
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/com/jogamp/opengl/awt/GLJPanel.java;h=5bf4c106c0f2b6e557edcc6a705f248d6527a330;hb=HEAD#l790>
This also shows our versatile API and implementation
utilizing quite some corner cases in OpenGL.
~Sven