aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-03 20:36:23 -0700
committerSven Gothel <[email protected]>2009-10-03 20:36:23 -0700
commit4d4b7c52d032d0c9302e4e16560f2e874e31b8bc (patch)
tree6e74ed48af864dcd3ca37b5d8ad45f07c30be2a7 /src/nativewindow
parent907c249a5a6f80d10912440aa073ba42b94ae6de (diff)
surfaceupdated:: NativeWindow: passing 'updater'; NEWT: adding event listener
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java2
-rw-r--r--src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java2
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java6
3 files changed, 7 insertions, 3 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java
index 800148b8d..c5a617990 100644
--- a/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java
+++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java
@@ -96,7 +96,7 @@ public class NullWindow implements NativeWindow {
return false;
}
- public void surfaceUpdated() { }
+ public void surfaceUpdated(Object updater) { }
public long getDisplayHandle() {
return displayHandle;
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java
index 4bb240e94..b4975706d 100644
--- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java
+++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java
@@ -129,7 +129,7 @@ public abstract class JAWTWindow implements NativeWindow {
return false;
}
- public void surfaceUpdated() { }
+ public void surfaceUpdated(Object updater) { }
public long getDisplayHandle() {
return config.getScreen().getDevice().getHandle();
diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java
index cdac2de71..1b000072e 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java
@@ -126,8 +126,11 @@ public interface NativeWindow {
/**
* Method invoked after the render toolkit (e.g. JOGL)
* swapped/changed the buffer/surface.
+ *
+ * @param updater is the caller object who updated the surface,
+ * e.g. a JOGL GLDrawable.
*/
- public void surfaceUpdated();
+ public void surfaceUpdated(Object updater);
/**
* render all native window information invalid,
@@ -199,4 +202,5 @@ public interface NativeWindow {
* AbstractGraphicsConfiguration . AbstractGraphicsScreen
*/
public int getScreenIndex();
+
}