Login  Register

Re: Native Windows with basic features

Posted by Christian Catchpole on May 16, 2010; 6:44am
URL: https://forum.jogamp.org/Native-Windows-with-basic-features-tp816127p821181.html

Thanks bill. Looks impressive.

I couldn't find an example which rendered GL to a native window.  But i did find 2 examples, one which did the native window dispatch and another which did the GLContext selection and rendering.  so i combined them and this is what i came up with..

http://code.google.com/p/kumi/source/browse/trunk/src/java/net/catchpole/view/scene/Scene.java

I use NewtFactory.createDisplay(null); and GLWindow.create(capabilities, false) so the Display and Screen are not properly associated I assume.  Next step is detecting multiple screens, managing those and switching to fullscreen / borderless maximised.

I then delegate to my own Renderer interface.  When I used LWJGL I made my own runtime proxy to an identical GL interface (to be LWJGL independent).  But JOGL seems so far ahead, especially with the profiles, I'm happy to have JOGL as a dependancy with all the benefits.

And here are some spinning tutti frutti cubes..

http://twitpic.com/1o8ukc