Login  Register

Any way to wrap an existing Window handle under Windows, e.g. Window.wrapHandle?

Posted by Dejay on Apr 29, 2012; 10:59pm
URL: https://forum.jogamp.org/Any-way-to-wrap-an-existing-Window-handle-under-Windows-e-g-Window-wrapHandle-tp3949664.html


Hello =)

I want to embed JOGL into an already existing window under Windows.
When I researched I found: static Window com.sun.javafx.newt.Window.wrapHandle(...)
but when trying to use the function, the package wasn't there anymore :/ Searching through the current jogl javadoc with its various window/surface/etc I did not find a substitute.

So I get a native window handle and need to create a GLWindow. What would be the best way to do this?

Would I attach the window as a child window? Would I have to handle resizing / placement?

thanks in advance =)

http://download.java.net/media/jogl/jogl-2.x-docs/com/sun/javafx/newt/Window.html#wrapHandle(java.lang.String, com.sun.javafx.newt.Screen, javax.media.nativewindow.AbstractGraphicsConfiguration, long, boolean, boolean, int, int, int, int)


PS.: I just found "NewtFactory" with the "wrapHandle" static method, but then found out it was again the 2.0x docs. In the new
version, it's gone too.