diff options
author | Sven Gothel <[email protected]> | 2009-03-13 11:55:23 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-03-13 11:55:23 +0000 |
commit | a74f1100b11eb3a6944a73eea48bf17d14ede8c1 (patch) | |
tree | 48a1d2e9fb9a7beb0c71ce016104022e79d736d3 /src/classes/com/sun/javafx/newt/macosx/MacWindow.java | |
parent | 3f0266e5d20216f68f515a943ad647d01e0ff567 (diff) |
New package Native Window Interface 'java.media.nwi',
to loose JOGL dependencies for the moved interfaces, mainly NativeWindow.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1863 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/macosx/MacWindow.java')
-rwxr-xr-x | src/classes/com/sun/javafx/newt/macosx/MacWindow.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java index 345ebe0e1..f80f0b3ab 100755 --- a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java +++ b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java @@ -33,7 +33,8 @@ package com.sun.javafx.newt.macosx; -import javax.media.opengl.GLCapabilities; +import javax.media.nwi.NWCapabilities; +import javax.media.nwi.NativeWindowException; import com.sun.javafx.newt.*; import com.sun.opengl.impl.*; @@ -135,15 +136,15 @@ public class MacWindow extends Window { NativeLibLoader.loadNEWT(); if (!initIDs()) { - throw new RuntimeException("Failed to initialize jmethodIDs"); + throw new NativeWindowException("Failed to initialize jmethodIDs"); } } public MacWindow() { } - protected void createNative(GLCapabilities caps) { - chosenCaps = (GLCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID) + protected void createNative(NWCapabilities caps) { + chosenCaps = (NWCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID) visualID = 0; // n/a } |