summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/angeles/Main.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-05-29 02:06:27 +0000
committerSven Gothel <[email protected]>2009-05-29 02:06:27 +0000
commit79466d482c8dd58907c9c414b851e4895c06d6cc (patch)
treec91b68d3482ce341e62182ae3d774fc236f50339 /src/demos/es1/angeles/Main.java
parent92bf955f17d1c070322ccf94d2de76d74f3eaa40 (diff)
GLInfo gives some usefull info, fix with GL3 changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@336 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es1/angeles/Main.java')
-rwxr-xr-xsrc/demos/es1/angeles/Main.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java
index 226f595..3346a1f 100755
--- a/src/demos/es1/angeles/Main.java
+++ b/src/demos/es1/angeles/Main.java
@@ -2,6 +2,7 @@ package demos.es1.angeles;
import java.nio.*;
import javax.media.opengl.*;
+import javax.media.nativewindow.*;
import com.sun.javafx.newt.*;
import com.sun.javafx.newt.opengl.*;
@@ -61,9 +62,9 @@ public class Main implements WindowListener, MouseListener {
Window nWindow = null;
if(0!=(type&USE_AWT)) {
- Display nDisplay = NewtFactory.createDisplay(NewtFactory.AWT, null); // local display
- Screen nScreen = NewtFactory.createScreen(NewtFactory.AWT, nDisplay, 0); // screen 0
- nWindow = NewtFactory.createWindow(NewtFactory.AWT, nScreen, caps);
+ Display nDisplay = NewtFactory.createDisplay(NativeWindowFactory.TYPE_AWT, null); // local display
+ Screen nScreen = NewtFactory.createScreen(NativeWindowFactory.TYPE_AWT, nDisplay, 0); // screen 0
+ nWindow = NewtFactory.createWindow(NativeWindowFactory.TYPE_AWT, nScreen, caps);
}
window = GLWindow.create(nWindow, caps);