summaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2012-03-06 17:58:34 +0100
committerSven Gothel <sgothel@jausoft.com>2012-03-06 17:58:34 +0100
commit87470a5a0d41c3eb1e54da1c388c4f56283bd9b1 (patch)
tree9f7d0a48f897acdf9071efe867faae03d69def0e /src/demos
parentf1571df02103fb48bcd4b72acc3fa44066fe7d1a (diff)
Adapt to JOGL's NativeWindow changes
Diffstat (limited to 'src/demos')
-rwxr-xr-xsrc/demos/context/DualContext.java22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/demos/context/DualContext.java b/src/demos/context/DualContext.java
index 318a399..05f01c8 100755
--- a/src/demos/context/DualContext.java
+++ b/src/demos/context/DualContext.java
@@ -39,21 +39,33 @@
package demos.context;
-import com.jogamp.opengl.util.gl2.GLUT;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.GraphicsConfiguration;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
-import javax.media.nativewindow.*;
-import javax.media.nativewindow.awt.*;
-import javax.media.opengl.*;
-import javax.media.opengl.awt.*;
+
+import javax.media.nativewindow.GraphicsConfigurationFactory;
+import javax.media.nativewindow.NativeWindow;
+import javax.media.nativewindow.NativeWindowFactory;
+import javax.media.opengl.GL;
+import javax.media.opengl.GL2;
+import javax.media.opengl.GL2ES1;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLContext;
+import javax.media.opengl.GLDrawable;
+import javax.media.opengl.GLDrawableFactory;
+import javax.media.opengl.GLProfile;
import javax.media.opengl.glu.GLU;
import javax.swing.JButton;
import javax.swing.JFrame;
+import com.jogamp.nativewindow.awt.AWTGraphicsConfiguration;
+import com.jogamp.nativewindow.awt.AWTGraphicsDevice;
+import com.jogamp.nativewindow.awt.AWTGraphicsScreen;
+import com.jogamp.opengl.util.gl2.GLUT;
+
/** This demo illustrates the use of the GLDrawable and GLContext APIs