diff options
author | Kenneth Russel <[email protected]> | 2008-06-26 04:54:44 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-06-26 04:54:44 +0000 |
commit | f287efc004e6932cbb2efdf777798a381994ca48 (patch) | |
tree | ce9a159f1e05cd234dddd64dffbb22ccb5e7163e /src/classes/com/sun/javafx/newt/x11 | |
parent | 2a07b5aad1d5dcf9c699e74c7e94d98f827fd4f9 (diff) |
Added getSurfaceHandle() to NativeWindow abstraction in support of
Windows platform where there is a distinction between the window
handle (HWND) and window surface (HDC). WGL implementation now refers
to window surface instead of window handle. JAWT implementation
returns same value for both window handle and window surface. Newt
creates window surface on demand; unneeded for EGL binding. RedSquare
demo now runs on Windows with Newt + GL2.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1695 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/x11')
-rwxr-xr-x | src/classes/com/sun/javafx/newt/x11/X11Window.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/classes/com/sun/javafx/newt/x11/X11Window.java b/src/classes/com/sun/javafx/newt/x11/X11Window.java index 299b78429..217ce5cdb 100755 --- a/src/classes/com/sun/javafx/newt/x11/X11Window.java +++ b/src/classes/com/sun/javafx/newt/x11/X11Window.java @@ -35,6 +35,7 @@ package com.sun.javafx.newt.x11; import com.sun.javafx.newt.*; import com.sun.opengl.impl.*; +import javax.media.opengl.NativeWindowException; public class X11Window extends Window { private static final String WINDOW_CLASS_NAME = "NewtWindow"; @@ -52,6 +53,10 @@ public class X11Window extends Window { public X11Window() { } + public long getSurfaceHandle() { + throw new NativeWindowException("Unsupported and unnecessary on the X11 platform"); + } + protected void createNative() { long w = CreateWindow(getDisplayHandle(), getScreenHandle(), getScreenIndex(), visualID, x, y, width, height); if (w == 0 || w!=windowHandle) { |