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
Free forum by Nabble | Edit this page |