Re: useful Java2D bridge
Posted by
Brandon Borkholder on
Feb 15, 2012; 12:13pm
URL: https://forum.jogamp.org/useful-Java2D-bridge-tp3391708p3746753.html
Martin wrote
gouessej wrote
It is different because it works. On some Windows machine, I don't dare setting this flag to true because the OpenGL pipeline is not in a very good health in Java under Windows (whereas it works fine under GNU Linux).
That's completely true. On my windows 7 machine, it does not work (all the interface remains white). I thought I was in a specific case with weird graphic device configuration.
Does it mean using JOGLG2D will be using GL efficiently for java 2d transforms? Such as:
Graphics2D.getTransform()
AffineTransform.getRotateInstance(angle);
AffineTransform.getTranslateInstance(position.getX(), position.getY());
AffineTransform.concatenate(...)
...
Regards,
Martin
Yes, it does use OpenGL projection matrix for all transforms, but only if
you use Graphics2D directly (e.g. Graphics2D.setTransform(AffineTransform),
Graphics2D.translate(int, int), etc.) Everything that should be
transformed is transformed on the GPU.