Re: useful Java2D bridge
Posted by Martin on Feb 17, 2012; 8:36am
URL: https://forum.jogamp.org/useful-Java2D-bridge-tp3391708p3753046.html
Sounds good!
Actually I tested it a few month ago on a demanding java2d app and it did not notice improvements. Maybe I did not used the component as required.
I remember wondering if calling setContentPane(new G2DGLCanvas(myJPanel)); will propagate the GL Graphics2D to all sub component added by myJPanel, so that any children of myJPanel would retrieve your GLGraphics2D when calling getGraphics() on it. On top of an heavy java2D renderer, I use JDesktopPane with JInternalFrames, and I wrapped this JDesktopPane with G2DGLCanvas.
The way you inject the feature is definitly excellent, and the comparison test suite coming with is equally stunning. Having a rendering time/fps indication in the unit test comparator would be great.
Eager to try the new version!
Cheers,