OpenGL integration in Java SE6?

Hi all!

Java SE6 is out and many people write blog entries. On java.net I found an interesting one from James Gosling:

[quote]JavaSE 6 is finally out in its glorious FCS bits. It’s got all manner of cool new features (I particularly love the OpenGL integration that makes GLJPanel fly like the wind). Instead of the usual flag waving and “what’s cool in JDK6” lists, I’d just like to say thanksto all of the folks in the community who have contributed to it. All of your error reports, feature requests, bug fixes, code contribtions and spec work are deeply appreciated. We couldn’t do it without you. This truly is a community effort.
[/quote]
Link: http://blogs.sun.com/jag/entry/thanks_everyone

What does that mean?

Greeting
olli73

Yay! No more jogl or lwjgl.

Ha!

What makes you think LWJGL is no more.

Neither Swing, nor AWT killed SWT.

Besides, JOGL doesn’t seem to be included in the JRE anyway.

yeah, im also a bit confused now.
is all the openGL functionality available within the JRE now? want i need jogl.jar, jogl.dll, jogl_awt.dll anymore?

James Gosling is refering to the possibility to integrate jogl and java2d. One of the java2d implementations (not the default one) in jse6 is based on opengl. It has been designed so that you can take the opengl rendering context of a component and render on it using both java2d and jogl. In other words you can easily combine 2d and 3d rendering in a single component without having to render to intermediate images. See the Java2D/JOGL Interoperability thread for more detailed info.

I really don’t see why you’re telling that. You can “interoperate with” doesn’t name you can delete it…
I think that you can interoperate with MySql with the JDK and nobody says “No more MySql”!

For more details, I have two blogs that talk about the Java2D/JOGL interoperability stuff in Java SE 6:
http://weblogs.java.net/blog/campbell/archive/2005/09/java2djogl_inte_1.html
http://weblogs.java.net/blog/campbell/archive/2006/10/easy_2d3d_mixin.html

And for more on the OpenGL-based Java2D pipeline improvements in Java SE 6:
http://weblogs.java.net/blog/campbell/archive/2005/03/strcrazy_improv_1.html
http://weblogs.java.net/blog/campbell/archive/2005/07/strcrazier_perf.html

Thanks,
Chris

Ok, I understand. Thanks!

Greetings
olli73

still don’t get it how JOGL fits into this update? is it included with Java6 or it just integrates better or something?

No, JOGL is not included with Java SE 6. Read the blogs linked above for more on how JOGL is able to communicate more closely with Java 2D in the Java SE 6 release.

Chris

Just to clarify a little more, new functionality was added to the OpenGL pipeline for Java 2D in Java SE 6 which allows external libraries like JOGL a little insight into how the OpenGL context management is done by Java 2D. So far we’ve used this in the JOGL implementation to accelerate the GLJPanel to essentially the same speed as the GLCanvas. Right now this acceleration works on Windows, Solaris and Linux, and we’ve worked with Apple to hopefully get support for this on OS X soon.