From 4bb9fed247d8151b317c32dd1f8d7bde03a1bcb6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 23 Sep 2010 18:58:03 +0200 Subject: Sync with JOGL: 1c02f0eeb539ff5de7259b822893ab63a9cc3ab0 --- src/demos/applets/JOGLNewtAppletBase.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/demos/applets/JOGLNewtAppletBase.java') diff --git a/src/demos/applets/JOGLNewtAppletBase.java b/src/demos/applets/JOGLNewtAppletBase.java index 4b7377d..e07f34f 100755 --- a/src/demos/applets/JOGLNewtAppletBase.java +++ b/src/demos/applets/JOGLNewtAppletBase.java @@ -2,7 +2,6 @@ package demos.applets; import java.lang.reflect.*; -import com.jogamp.newt.*; import com.jogamp.newt.event.*; import com.jogamp.newt.opengl.GLWindow; @@ -91,16 +90,14 @@ public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, Mo return false; } - public void init(Window nWindow) { - init(Thread.currentThread().getThreadGroup(), nWindow); + public void init(GLWindow glWindow) { + init(Thread.currentThread().getThreadGroup(), glWindow); } - public void init(ThreadGroup tg, Window nWindow) { + public void init(ThreadGroup tg, GLWindow glWindow) { glEventListener = createInstance(glEventListenerClazzName); try { - glWindow = GLWindow.create(nWindow); - if(!setField(glEventListener, "window", glWindow)) { setField(glEventListener, "glWindow", glWindow); } @@ -147,8 +144,7 @@ public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, Mo } } - /** @param sendDisposeEvent should be false in a [time,reliable] critical shutdown */ - public void destroy(boolean sendDisposeEvent) { + public void destroy(boolean unrecoverable) { isValid = false; if(null!=glAnimator) { glAnimator.stop(); @@ -156,7 +152,7 @@ public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, Mo glAnimator=null; } if(null!=glWindow) { - glWindow.destroy(sendDisposeEvent); + glWindow.destroy(unrecoverable); glWindow=null; } } -- cgit v1.2.3