aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/awt
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-16 16:33:47 +0200
committerMichael Bien <[email protected]>2010-06-16 16:33:47 +0200
commitb527a615f7ad75f7f2e8e69af5490689921c2cbb (patch)
treed94cbef56993e95b2c2f9ea6a1e18a88d8390e3f /src/jogl/classes/javax/media/opengl/awt
parent4a6f652591f684a28ac3af60e8d0b79e95235ee8 (diff)
parent0d24458c68ac1bb92da21a1701633f8f32a267bb (diff)
Merge branch 'master' of github.com:sgothel/jogl
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLCanvas.java8
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLJPanel.java8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
index 77b8e45d3..2dafd691a 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
@@ -484,10 +484,18 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable {
drawableHelper.addGLEventListener(listener);
}
+ public void addGLEventListener(int index, GLEventListener listener) {
+ drawableHelper.addGLEventListener(index, listener);
+ }
+
public void removeGLEventListener(GLEventListener listener) {
drawableHelper.removeGLEventListener(listener);
}
+ public void invoke(boolean wait, GLRunnable glRunnable) {
+ drawableHelper.invoke(wait, glRunnable);
+ }
+
public void setContext(GLContext ctx) {
context=(GLContextImpl)ctx;
}
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
index 955949415..73962e979 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
@@ -372,10 +372,18 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable {
drawableHelper.addGLEventListener(listener);
}
+ public void addGLEventListener(int index, GLEventListener listener) {
+ drawableHelper.addGLEventListener(index, listener);
+ }
+
public void removeGLEventListener(GLEventListener listener) {
drawableHelper.removeGLEventListener(listener);
}
+ public void invoke(boolean wait, GLRunnable glRunnable) {
+ drawableHelper.invoke(wait, glRunnable);
+ }
+
public GLContext createContext(GLContext shareWith) {
return backend.createContext(shareWith);
}