summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreteq <[email protected]>2006-08-27 08:51:53 +0000
committereteq <[email protected]>2006-08-27 08:51:53 +0000
commit14ca014c822bc772b9d1d04c0a82c867e3344bfc (patch)
treeb2502bad0ed325d8e861acc5f0915881801217ab
parent2b326747916fb5f5e1067dd0783aa48810f3f45a (diff)
Added getAutoDrawable to GLJFrame
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@18 83d24430-9974-4f80-8418-2cc3294053b9
-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;
+ }
}