aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-11-26 18:55:09 +0000
committerSven Gothel <[email protected]>2008-11-26 18:55:09 +0000
commit511a3af08936b839218898ec3a3ee4c2cddec10e (patch)
tree7e873935d3d3b2e3a1bd8d7341ba4b34f4090bae /src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
parentcc770d96bada835c19a0b38ad9cb49fb8b91d23a (diff)
Newt Window
- Uses GLCapabilities for window creation - Note: This is implemented in the new KDWindow only, for now. - FIXME: Respect GLCapabilities for other implementations (X11, MacOS, Windows) visualID shall be determined by GLCapabilities, and set to 0 if not implemented. - New OpenKODE KDWindow - Compile native code at with 'ant -DuseKD=true' - Use KD in newt with the Java property set newt.ws.name=KD - API change: NewtFactory.createWindow() takes GLCapabilities insteast of a fake visualID git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1804 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/windows/WindowsWindow.java')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/windows/WindowsWindow.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
index e520b8394..e1a1255ff 100755
--- a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
+++ b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
@@ -33,6 +33,8 @@
package com.sun.javafx.newt.windows;
+import javax.media.opengl.GLCapabilities;
+
import com.sun.javafx.newt.*;
import com.sun.opengl.impl.*;
@@ -64,8 +66,10 @@ public class WindowsWindow extends Window {
return hdc;
}
- protected void createNative() {
+ protected void createNative(GLCapabilities caps) {
long wndClass = getWindowClass();
+ chosenCaps = (GLCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID)
+ visualID = 0; // n/a
windowHandle = CreateWindow(WINDOW_CLASS_NAME, getHInstance(), visualID, x, y, width, height);
if (windowHandle == 0) {
throw new RuntimeException("Error creating window");