summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/joglutils')
-rw-r--r--src/net/java/joglutils/GLJFrame.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/joglutils/GLJFrame.java b/src/net/java/joglutils/GLJFrame.java
index 5760e60..9538c2f 100644
--- a/src/net/java/joglutils/GLJFrame.java
+++ b/src/net/java/joglutils/GLJFrame.java
@@ -548,4 +548,11 @@ public class GLJFrame extends JFrame {
return ((GLCanvas)mainCanvas).getContext();
}
+ /**
+ * Retrieves a GLAutoDrawable view of the associated GLCanvas
+ * @return a GLAutoDrawable corresponding to the GLCanvas on this GLJFrame
+ */
+ public GLAutoDrawable getAutoDrawable() {
+ return (GLAutoDrawable)mainCanvas;
+ }
}