Re: Creating large GLWindows on multiple monitor setups
Posted by
ac on
Dec 03, 2014; 3:50pm
URL: https://forum.jogamp.org/Creating-large-GLWindows-on-multiple-monitor-setups-tp4033552p4033702.html
Basically:
Display display = NewtFactory.createDisplay(null);
display.addReference();
Screen screen = NewtFactory.createScreen(display, 0);
screen.addReference();
profile = GLProfile.getGL2ES1();
GLCapabilities caps = new GLCapabilities(profile);
window = GLWindow.create(screen, caps);
window.setPosition(sketchX, sketchY);
window.setSize(sketchWidth, sketchHeight);
if (fullScreen) {
if (spanDisplays) {
window.setFullscreen(monitors);
} else {
window.setFullscreen(true);
}
}
where sketchX, sketchY, sketchWidth, fullScreen, etc. are the arguments of the init method. The full thing is in the initCanvas() method in:
https://github.com/processing/processing/blob/master/core/src/processing/opengl/PSurfaceNEWT.java