Login  Register

Re: Want to share JOGL Port of TWL

Posted by mahesh on Nov 29, 2017; 9:36am
URL: https://forum.jogamp.org/Want-to-share-JOGL-Port-of-TWL-tp4038346p4038350.html

Hi Julien,
I am already using GLWindow

GLWindow window = GLWindow.create(caps);
window.setUndecorated(true);
window.addGLEventListener(this);
this.root=root;
this.useEffects=useEffects;
Dimension canvasSize = new Dimension(width, height);
// Use the newt/awt bridge to allow us to use swing gui elements
// and the fast rendering capabilities of NEWT
this.canvas = new NewtCanvasAWT(window);
pnlRoot.add(canvas, BorderLayout.CENTER);
// create an animator to animated the canvas
this.animator = new FPSAnimator(window, FPS, true);
this.setVisible(true);	
this.animator.start();

I have't used maven ever, will be very glad if someone converts it to maven project