Login  Register

Re: useful Java2D bridge

Posted by Sven Gothel on Oct 04, 2011; 1:51am
URL: https://forum.jogamp.org/useful-Java2D-bridge-tp3391708p3391879.html

On Tuesday, October 04, 2011 02:56:09 AM brandon [via jogamp] wrote:
>
> JOGL 1.1.1 had a very simplistic method to draw Swing into OpenGL - just
> render Swing into an image and then into OpenGL.  But I needed a way to
> accelerate rendering Swing into OpenGL and I wrote a bridge to do that.  I
> actually implements the Graphics2D class and makes glRectf, glColor, etc.
> calls to support the Graphics2D object.
>
> Has this been done already or improved in the 2.0 release?  Are there plans
> to do it?

Not by myself, since I consider Java2D dead. But thats only my personal opinion.
I remember that I did something like this in the very past for GL4Java
some 13 years ago, but never really completed it :)

Of course, using JOGL to implement the Graphics2D core to allow AWT/Swing
being rendered w/ GL seems to be very nice - KUDOS.
Especially if this could be done in GL2ES2 .. w/ shaders.

If I understand you right, you have implemented such a thing w/ glg2d ?
Do you like to add this to JOGL under our license / copyright ?
Of course you and others are more than welcome to do so,
especially if you like to maintain it as well. IE bugfixes, unit tests etc.

Please let me know, then we can discuss further steps.
Again: You are more than welcome.

Cheers, Sven

>
> This is my (incomplete) project https://github.com/brandonborkholder/glg2d