From 2421ce2d3bfe169336c4009639e24e197908477f Mon Sep 17 00:00:00 2001
From: Sven Gothel
NewtCanvasAWT, -representing an AWT Canvas, allows you to hook a NEWT Window into it.
+representing an AWT Canvas, allows you to hook a NEWT Window into it. Since the NewtCanvasAWT is an AWT heavyweight Component, this gives you the ability hook NEWT into an AWT UI.
The implementation uses the AWT native JAWT API to reparent the NEWT Window natively into the AWT one
-and hence is even more compatible with JOGL’s GLCanvas implementation.
This enables us to use both worlds, AWT/Swing UI and decoupled high performance rendering.
TestParenting01cAWT.java
[v2.0-rc3]
-shows you how to add an GLWindow to an NewtCanvasAWT, which iself is added to an AWT Frame.
+shows you how to add an GLWindow to an NewtCanvasAWT, which iself is added to an AWT Frame.
It also shows how the NewtCanvasAWT can be easily removed from the AWT Frame and placed into another AWT Container.
Since we use native reparenting, the native window resource keeps alive and hence your OpenGL application (GLEventListener)
is not being asked to dispose all resources.
--
cgit v1.2.3