diff options
author | Sven Gothel <[email protected]> | 2008-11-26 18:55:31 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-11-26 18:55:31 +0000 |
commit | c05c08f676e4aadd1ff1c8b3dfbd3b76e50b6b4b (patch) | |
tree | 4f2c26ba1aaf65ca64f14b448eaf8171473a5b8c /src/jbullet | |
parent | 71593624be3fc02a30772f8fe966b1ffacda1e55 (diff) |
Reflect JOGL2 NEWT changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@298 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/jbullet')
-rw-r--r-- | src/jbullet/src/javabullet/demos/opengl/JOGL.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jbullet/src/javabullet/demos/opengl/JOGL.java b/src/jbullet/src/javabullet/demos/opengl/JOGL.java index 8b3c418..5498544 100644 --- a/src/jbullet/src/javabullet/demos/opengl/JOGL.java +++ b/src/jbullet/src/javabullet/demos/opengl/JOGL.java @@ -68,19 +68,19 @@ public class JOGL implements MouseListener { System.err.println(" run()"); GLProfile.setProfileGLAny(); try { - 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, 0); // dummy VisualID - } - GLCapabilities caps = new GLCapabilities(); // For emulation library, use 16 bpp caps.setRedBits(5); caps.setGreenBits(6); caps.setBlueBits(5); caps.setDepthBits(16); + + 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); + } window = GLWindow.create(nWindow, caps); window.addMouseListener(this); |