summaryrefslogtreecommitdiffstats
path: root/src/demos/applets/JOGLNewtAppletBase.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-09-23 18:58:03 +0200
committerSven Gothel <[email protected]>2010-09-23 18:58:03 +0200
commit4bb9fed247d8151b317c32dd1f8d7bde03a1bcb6 (patch)
treedd097af09126ce7d7e7b3bf3ff0cd3132cbd80b9 /src/demos/applets/JOGLNewtAppletBase.java
parent35da0bfcb126c8b296a64274dcf5b757daa723d3 (diff)
Sync with JOGL: 1c02f0eeb539ff5de7259b822893ab63a9cc3ab0
Diffstat (limited to 'src/demos/applets/JOGLNewtAppletBase.java')
-rwxr-xr-xsrc/demos/applets/JOGLNewtAppletBase.java14
1 files changed, 5 insertions, 9 deletions
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;
}
}