Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl
In directory sc8-pr-cvs1:/tmp/cvs-serv14073/src/java/org/lwjgl
Modified Files:
Window.java
Log Message:
Linux/win32 changes for 0.6
Index: Window.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Window.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Window.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Window.java 28 Mar 2003 23:15:53 -0000 1.6
+++ Window.java 30 Mar 2003 19:26:38 -0000 1.7
@@ -114,14 +114,14 @@
*/
public final void setTitle(String newTitle) {
title = newTitle;
- nSetTitle();
+ nSetTitle(title);
}
/**
* Native implementation of setTitle(). This will read the window's title member
* and stash it in the native title of the window.
*/
- private native void nSetTitle();
+ private native void nSetTitle(String title);
/**
* @return true if the user or operating system has asked the window to close
@@ -156,13 +156,10 @@
*/
public final void paint() {
dirty = false;
- swapBuffers();
+ doPaint();
}
-
- /**
- * Swap the buffers.
- */
- private native void swapBuffers();
+
+ protected abstract void doPaint();
/**
* Create the window.
@@ -188,7 +185,6 @@
if (!created)
return;
doDestroy();
- nDestroy();
currentWindow = null;
created = false;
}
@@ -198,10 +194,6 @@
*/
protected abstract void doDestroy();
- /**
- * Natively destroy the window
- */
- private native void nDestroy();
/**
* @return the native window handle
|