From 87470a5a0d41c3eb1e54da1c388c4f56283bd9b1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 6 Mar 2012 17:58:34 +0100 Subject: Adapt to JOGL's NativeWindow changes --- src/demos/context/DualContext.java | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit v1.2.3