Login  Register

Re: Some issues using NEWT

Posted by ac on Feb 20, 2012; 3:08pm
URL: https://forum.jogamp.org/Some-issues-using-NEWT-tp3757230p3760961.html

Ok, here is the bug report:

 https://jogamp.org/bugzilla/show_bug.cgi?id=555

Another question. I realized that I can create my GLWindow using a native window as argument in addition to the gl capabilities. Something like this:

AWTGraphicsScreen screen = (AWTGraphicsScreen)AWTGraphicsScreen.createDefault();
AWTGraphicsConfiguration config = (AWTGraphicsConfiguration)GraphicsConfigurationFactory
        .getFactory(AWTGraphicsDevice.class).chooseGraphicsConfiguration(capabilities, capabilities, null, screen);
NativeWindow natWin = NativeWindowFactory.getNativeWindow(applet, config);  
   
window = GLWindow.create(natWin, capabilities);
canvas = new NewtCanvasAWT(window);

where I pass the parent applet objet to the getNativeWindow() method. Is this recommended, not recommended, or same as creating the GLWindow passing only the capablilities?