You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
|
2
(4) |
3
(2) |
4
(4) |
5
|
6
|
|
7
(3) |
8
|
9
|
10
(1) |
11
|
12
|
13
(1) |
|
14
|
15
(1) |
16
|
17
(7) |
18
|
19
|
20
|
|
21
|
22
(2) |
23
(1) |
24
|
25
|
26
|
27
|
|
28
|
29
|
30
(1) |
31
(1) |
|
|
|
|
From: <eli...@us...> - 2007-01-31 14:07:21
|
Revision: 2735
http://svn.sourceforge.net/java-game-lib/?rev=2735&view=rev
Author: elias_naur
Date: 2007-01-31 06:07:20 -0800 (Wed, 31 Jan 2007)
Log Message:
-----------
Linux: Make sure the first Mouse.poll() return correct absolute X and Y values
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2007-01-30 13:08:51 UTC (rev 2734)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2007-01-31 14:07:20 UTC (rev 2735)
@@ -83,12 +83,22 @@
this.window = window;
this.input_window = input_window;
this.warp_atom = LinuxDisplay.nInternAtom(display, "_LWJGL", false);
- reset();
+ reset(false, false);
}
- private void reset() {
+ private void reset(boolean grab, boolean warp_pointer) {
event_queue = new EventQueue(event_buffer.capacity());
accum_dx = accum_dy = 0;
+ long root_window = nQueryPointer(display, window, query_pointer_buffer);
+
+ int root_x = query_pointer_buffer.get(0);
+ int root_y = query_pointer_buffer.get(1);
+ int win_x = query_pointer_buffer.get(2);
+ int win_y = query_pointer_buffer.get(3);
+ // Pretend that the cursor never moved
+ last_x = win_x;
+ last_y = transformY(win_y);
+ doHandlePointerMotion(grab, warp_pointer, root_window, root_x, root_y, win_x, win_y, last_event_nanos);
}
public void read(ByteBuffer buffer) {
@@ -171,17 +181,7 @@
}
public void changeGrabbed(boolean grab, boolean warp_pointer) {
- reset();
- long root_window = nQueryPointer(display, window, query_pointer_buffer);
-
- int root_x = query_pointer_buffer.get(0);
- int root_y = query_pointer_buffer.get(1);
- int win_x = query_pointer_buffer.get(2);
- int win_y = query_pointer_buffer.get(3);
- // Pretend that the cursor never moved
- last_x = win_x;
- last_y = transformY(win_y);
- doHandlePointerMotion(grab, warp_pointer, root_window, root_x, root_y, win_x, win_y, last_event_nanos);
+ reset(grab, warp_pointer);
}
public int getButtonCount() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-30 13:08:55
|
Revision: 2734
http://svn.sourceforge.net/java-game-lib/?rev=2734&view=rev
Author: elias_naur
Date: 2007-01-30 05:08:51 -0800 (Tue, 30 Jan 2007)
Log Message:
-----------
Windows AWTInput: Make sure the cursor is contained within the window when the Mouse is grabbed.
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2007-01-23 19:55:46 UTC (rev 2733)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2007-01-30 13:08:51 UTC (rev 2734)
@@ -99,15 +99,24 @@
cached_mouse = new WindowsMouse(dinput, hwnd);
// cached_keyboard = new WindowsKeyboard(dinput, hwnd);
}
- if (isGrabbed() && getCanvas().getCursor() != blank_cursor) {
- cached_cursor = getCanvas().getCursor();
+ if (isGrabbed()) {
/**
- * For some reason, DirectInput won't let us blank the cursor
- * with the EXCLUSIVE access mode, so we'll work around it with a
- * custom blank cursor
+ * DirectInput won't always stop the cursor from moving on top of the
+ * task bar and clicking on it. So we'll use ClipCursor to
+ * contain it while the cursor is grabbed.
*/
- getCanvas().setCursor(blank_cursor);
- }
+ WindowsDisplay.setupCursorClipping(hwnd);
+ if (getCanvas().getCursor() != blank_cursor) {
+ cached_cursor = getCanvas().getCursor();
+ /**
+ * For some reason, DirectInput won't let us blank the cursor
+ * with the EXCLUSIVE access mode, so we'll work around it with a
+ * custom blank cursor
+ */
+ getCanvas().setCursor(blank_cursor);
+ }
+ } else
+ WindowsDisplay.resetCursorClipping();
grab(isGrabbed());
} catch (LWJGLException e) {
LWJGLUtil.log("Failed to create windows mouse: " + e);
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-23 19:55:46 UTC (rev 2733)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-30 13:08:51 UTC (rev 2734)
@@ -145,8 +145,8 @@
resetCursorClipping();
}
private static native void nDestroyWindow();
- private static native void resetCursorClipping();
- private static native void setupCursorClipping(long hwnd) throws LWJGLException;
+ static native void resetCursorClipping();
+ static native void setupCursorClipping(long hwnd) throws LWJGLException;
public void switchDisplayMode(DisplayMode mode) throws LWJGLException {
nSwitchDisplayMode(mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2007-01-23 19:57:00
|
Revision: 2733
http://svn.sourceforge.net/java-game-lib/?rev=2733&view=rev
Author: matzon
Date: 2007-01-23 11:55:46 -0800 (Tue, 23 Jan 2007)
Log Message:
-----------
updated streams
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/test/fmod3/NetTest.java
Modified: trunk/LWJGL/src/java/org/lwjgl/test/fmod3/NetTest.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/fmod3/NetTest.java 2007-01-22 10:14:13 UTC (rev 2732)
+++ trunk/LWJGL/src/java/org/lwjgl/test/fmod3/NetTest.java 2007-01-23 19:55:46 UTC (rev 2733)
@@ -90,9 +90,8 @@
public static FloatBuffer spectrum;
/** List of known urls (monkeyradio, di streams) */
- public static String[] urls = new String[] { "http://207.200.96.227:8038/", "http://205.188.234.65:8020",
- "http://64.236.34.67:80/stream/1006", "http://64.236.34.67:80/stream/1003", "http://205.188.234.65:8026",
- "http://64.236.34.67:80/stream/2004", "http://64.236.34.67:80/stream/1019", "http://64.236.34.67:80/stream/2005"};
+ public static String[] urls = new String[] { "http://www.scenemusic.eu:8002/live.mp3",
+ "http://basu.cockos.com:6969/"};
/**
* Creates a new NetTest
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-22 10:14:15
|
Revision: 2732
http://svn.sourceforge.net/java-game-lib/?rev=2732&view=rev
Author: elias_naur
Date: 2007-01-22 02:14:13 -0800 (Mon, 22 Jan 2007)
Log Message:
-----------
Tweaked comment for Display.getAvailableDisplayModes to make it clear that invalid modes can be returned and that create() won't always detect such modes
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-22 09:24:06 UTC (rev 2731)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-22 10:14:13 UTC (rev 2732)
@@ -153,8 +153,13 @@
/**
* Returns the entire list of possible fullscreen display modes as an array, in no
- * particular order. Any given mode is not guaranteed to be available and
- * the only certain way to check is to call create() and make sure it works.
+ * particular order. Although best attempts to filter out invalid modes are done, any
+ * given mode is not guaranteed to be available nor is it guaranteed to be within the
+ * current monitor specs (this is especially a problem with the frequency parameter).
+ * Furthermore, it is not guaranteed that create() will detect an illegal display mode.
+ *
+ * The only certain way to check
+ * is to call create() and make sure it works.
* Only non-palette-indexed modes are returned (ie. bpp will be 16, 24, or 32).
* Only DisplayModes from this call can be used when the Display is in fullscreen
* mode.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-22 09:24:08
|
Revision: 2731
http://svn.sourceforge.net/java-game-lib/?rev=2731&view=rev
Author: elias_naur
Date: 2007-01-22 01:24:06 -0800 (Mon, 22 Jan 2007)
Log Message:
-----------
Changed version to RC2
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/Sys.java
trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java
trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java
Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 12:58:38 UTC (rev 2730)
+++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-22 09:24:06 UTC (rev 2731)
@@ -54,7 +54,7 @@
private static final String JNI_LIBRARY_NAME = "lwjgl";
/** Current version of library */
- private static final String VERSION = "1.0-rc1";
+ private static final String VERSION = "1.0-rc2";
/** Current version of the JNI library */
static final int JNI_VERSION = 8;
Modified: trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2007-01-17 12:58:38 UTC (rev 2730)
+++ trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2007-01-22 09:24:06 UTC (rev 2731)
@@ -53,7 +53,7 @@
private static String JNI_LIBRARY_NAME = "lwjgl-devil";
/** Version of IL */
- static final String VERSION = "1.0-rc1";
+ static final String VERSION = "1.0-rc2";
/** Current version of the JNI library */
static final int JNI_VERSION = 2;
Modified: trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java 2007-01-17 12:58:38 UTC (rev 2730)
+++ trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java 2007-01-22 09:24:06 UTC (rev 2731)
@@ -193,7 +193,7 @@
private static String JNI_LIBRARY_NAME = "lwjgl-fmod3";
/** Version of FMOD */
- private static final String VERSION = "1.0-rc1";
+ private static final String VERSION = "1.0-rc2";
/** Current version of the JNI library */
static final int JNI_VERSION = 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 12:58:41
|
Revision: 2730
http://svn.sourceforge.net/java-game-lib/?rev=2730&view=rev
Author: elias_naur
Date: 2007-01-17 04:58:38 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Remove the rest of the implementation reflection
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/Sys.java
trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
trunk/LWJGL/src/java/org/lwjgl/opengl/Context.java
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 12:49:20 UTC (rev 2729)
+++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 12:58:38 UTC (rev 2730)
@@ -108,7 +108,6 @@
}
private static SysImplementation createImplementation() {
- String class_name;
switch (LWJGLUtil.getPlatform()) {
case LWJGLUtil.PLATFORM_LINUX:
return new LinuxSysImplementation();
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-17 12:49:20 UTC (rev 2729)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-17 12:58:38 UTC (rev 2730)
@@ -86,30 +86,20 @@
static {
Sys.initialize();
- String class_name;
+ implementation = createImplementation();
+ }
+
+ private static AWTCanvasImplementation createImplementation() {
switch (LWJGLUtil.getPlatform()) {
case LWJGLUtil.PLATFORM_LINUX:
- class_name = "org.lwjgl.opengl.LinuxCanvasImplementation";
- break;
+ return new LinuxCanvasImplementation();
case LWJGLUtil.PLATFORM_WINDOWS:
- class_name = "org.lwjgl.opengl.WindowsCanvasImplementation";
- break;
+ return new WindowsCanvasImplementation();
case LWJGLUtil.PLATFORM_MACOSX:
- class_name = "org.lwjgl.opengl.MacOSXCanvasImplementation";
- break;
+ return new MacOSXCanvasImplementation();
default:
throw new IllegalStateException("Unsupported platform");
}
- try {
- Class impl_class = Class.forName(class_name);
- implementation = (AWTCanvasImplementation)impl_class.newInstance();
- } catch (ClassNotFoundException e) {
- throw new RuntimeException(e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException(e);
- } catch (InstantiationException e) {
- throw new RuntimeException(e);
- }
}
/**
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Context.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Context.java 2007-01-17 12:49:20 UTC (rev 2729)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Context.java 2007-01-17 12:58:38 UTC (rev 2730)
@@ -73,30 +73,20 @@
static {
Sys.initialize();
- String class_name;
+ implementation = createImplementation();
+ }
+
+ private static ContextImplementation createImplementation() {
switch (LWJGLUtil.getPlatform()) {
case LWJGLUtil.PLATFORM_LINUX:
- class_name = "org.lwjgl.opengl.LinuxContextImplementation";
- break;
+ return new LinuxContextImplementation();
case LWJGLUtil.PLATFORM_WINDOWS:
- class_name = "org.lwjgl.opengl.WindowsContextImplementation";
- break;
+ return new WindowsContextImplementation();
case LWJGLUtil.PLATFORM_MACOSX:
- class_name = "org.lwjgl.opengl.MacOSXContextImplementation";
- break;
+ return new MacOSXContextImplementation();
default:
throw new IllegalStateException("Unsupported platform");
}
- try {
- Class impl_class = Class.forName(class_name);
- implementation = (ContextImplementation)impl_class.newInstance();
- } catch (ClassNotFoundException e) {
- throw new RuntimeException(e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException(e);
- } catch (InstantiationException e) {
- throw new RuntimeException(e);
- }
}
PeerInfo getPeerInfo() {
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-17 12:49:20 UTC (rev 2729)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-17 12:58:38 UTC (rev 2730)
@@ -133,30 +133,16 @@
}
private static DisplayImplementation createDisplayImplementation() {
- String class_name;
switch (LWJGLUtil.getPlatform()) {
case LWJGLUtil.PLATFORM_LINUX:
- class_name = "org.lwjgl.opengl.LinuxDisplay";
- break;
+ return new LinuxDisplay();
case LWJGLUtil.PLATFORM_WINDOWS:
- class_name = "org.lwjgl.opengl.WindowsDisplay";
- break;
+ return new WindowsDisplay();
case LWJGLUtil.PLATFORM_MACOSX:
- class_name = "org.lwjgl.opengl.MacOSXDisplay";
- break;
+ return new MacOSXDisplay();
default:
throw new IllegalStateException("Unsupported platform");
}
- try {
- Class display_class = Class.forName(class_name);
- return (DisplayImplementation)display_class.newInstance();
- } catch (ClassNotFoundException e) {
- throw new RuntimeException(e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException(e);
- } catch (InstantiationException e) {
- throw new RuntimeException(e);
- }
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 12:49:26
|
Revision: 2729
http://svn.sourceforge.net/java-game-lib/?rev=2729&view=rev
Author: elias_naur
Date: 2007-01-17 04:49:20 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Sys.java: Don't use reflection to create platform specific implementations
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/Sys.java
Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 08:22:31 UTC (rev 2728)
+++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 12:49:20 UTC (rev 2729)
@@ -111,27 +111,14 @@
String class_name;
switch (LWJGLUtil.getPlatform()) {
case LWJGLUtil.PLATFORM_LINUX:
- class_name = "org.lwjgl.LinuxSysImplementation";
- break;
+ return new LinuxSysImplementation();
case LWJGLUtil.PLATFORM_WINDOWS:
- class_name = "org.lwjgl.WindowsSysImplementation";
- break;
+ return new org.lwjgl.WindowsSysImplementation();
case LWJGLUtil.PLATFORM_MACOSX:
- class_name = "org.lwjgl.MacOSXSysImplementation";
- break;
+ return new org.lwjgl.MacOSXSysImplementation();
default:
throw new IllegalStateException("Unsupported platform");
}
- try {
- Class impl_class = Class.forName(class_name);
- return (SysImplementation)impl_class.newInstance();
- } catch (ClassNotFoundException e) {
- throw new RuntimeException(e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException(e);
- } catch (InstantiationException e) {
- throw new RuntimeException(e);
- }
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 08:22:32
|
Revision: 2728
http://svn.sourceforge.net/java-game-lib/?rev=2728&view=rev
Author: elias_naur
Date: 2007-01-17 00:22:31 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Bumped native version because of internal linux API change
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/Sys.java
Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 08:16:16 UTC (rev 2727)
+++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-01-17 08:22:31 UTC (rev 2728)
@@ -57,7 +57,7 @@
private static final String VERSION = "1.0-rc1";
/** Current version of the JNI library */
- static final int JNI_VERSION = 7;
+ static final int JNI_VERSION = 8;
/** The implementation instance to delegate platform specific behavior to */
private final static SysImplementation implementation;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 08:16:21
|
Revision: 2727
http://svn.sourceforge.net/java-game-lib/?rev=2727&view=rev
Author: elias_naur
Date: 2007-01-17 00:16:16 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Linux: Fixed wrong return type in LinuxEvent.nGetKeyAddress
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxEvent.java
trunk/LWJGL/src/native/linux/org_lwjgl_opengl_LinuxEvent.c
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxEvent.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxEvent.java 2007-01-17 08:01:49 UTC (rev 2726)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxEvent.java 2007-01-17 08:16:16 UTC (rev 2727)
@@ -149,7 +149,7 @@
public final long getKeyAddress() {
return nGetKeyAddress(event_buffer);
}
- private static native int nGetKeyAddress(ByteBuffer event_buffer);
+ private static native long nGetKeyAddress(ByteBuffer event_buffer);
public final long getKeyTime() {
return nGetKeyTime(event_buffer);
Modified: trunk/LWJGL/src/native/linux/org_lwjgl_opengl_LinuxEvent.c
===================================================================
--- trunk/LWJGL/src/native/linux/org_lwjgl_opengl_LinuxEvent.c 2007-01-17 08:01:49 UTC (rev 2726)
+++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_LinuxEvent.c 2007-01-17 08:16:16 UTC (rev 2727)
@@ -135,9 +135,10 @@
return event->xbutton.y;
}
-JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_LinuxEvent_nGetKeyAddress(JNIEnv *env, jclass unused, jobject event_buffer) {
+JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_LinuxEvent_nGetKeyAddress(JNIEnv *env, jclass unused, jobject event_buffer) {
XEvent *event = (XEvent *)(*env)->GetDirectBufferAddress(env, event_buffer);
- return (jlong)(intptr_t)&(event->xkey);
+ XKeyEvent *key_event = &(event->xkey);
+ return (jlong)(intptr_t)key_event;
}
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_LinuxEvent_nGetKeyTime(JNIEnv *env, jclass unused, jobject event_buffer) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 08:01:50
|
Revision: 2726
http://svn.sourceforge.net/java-game-lib/?rev=2726&view=rev
Author: elias_naur
Date: 2007-01-17 00:01:49 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Auto generated files update
Modified Paths:
--------------
trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c
Modified: trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c
===================================================================
--- trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c 2007-01-17 08:01:37 UTC (rev 2725)
+++ trunk/LWJGL/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c 2007-01-17 08:01:49 UTC (rev 2726)
@@ -3,10 +3,10 @@
#include <jni.h>
#include "extgl.h"
-typedef void (APIENTRY *glRenderbufferStorageMultsampleCoverageNVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (APIENTRY *glRenderbufferStorageMultisampleCoverageNVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFramebufferMultisampleCoverage_nglRenderbufferStorageMultsampleCoverageNV(JNIEnv *env, jclass clazz, jint target, jint coverageSamples, jint colorSamples, jint internalformat, jint width, jint height, jlong function_pointer) {
- glRenderbufferStorageMultsampleCoverageNVPROC glRenderbufferStorageMultsampleCoverageNV = (glRenderbufferStorageMultsampleCoverageNVPROC)((intptr_t)function_pointer);
- glRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height);
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFramebufferMultisampleCoverage_nglRenderbufferStorageMultisampleCoverageNV(JNIEnv *env, jclass clazz, jint target, jint coverageSamples, jint colorSamples, jint internalformat, jint width, jint height, jlong function_pointer) {
+ glRenderbufferStorageMultisampleCoverageNVPROC glRenderbufferStorageMultisampleCoverageNV = (glRenderbufferStorageMultisampleCoverageNVPROC)((intptr_t)function_pointer);
+ glRenderbufferStorageMultisampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 08:01:39
|
Revision: 2725
http://svn.sourceforge.net/java-game-lib/?rev=2725&view=rev
Author: elias_naur
Date: 2007-01-17 00:01:37 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Auto generated files update
Modified Paths:
--------------
trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java
trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java 2007-01-17 08:00:54 UTC (rev 2724)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java 2007-01-17 08:01:37 UTC (rev 2725)
@@ -989,7 +989,7 @@
long NV_fragment_program_glProgramNamedParameter4dNV_pointer;
long NV_fragment_program_glGetProgramNamedParameterfvNV_pointer;
long NV_fragment_program_glGetProgramNamedParameterdvNV_pointer;
- long NV_framebuffer_multisample_coverage_glRenderbufferStorageMultsampleCoverageNV_pointer;
+ long NV_framebuffer_multisample_coverage_glRenderbufferStorageMultisampleCoverageNV_pointer;
long NV_geometry_program4_glProgramVertexLimitNV_pointer;
long NV_geometry_program4_glFramebufferTextureEXT_pointer;
long NV_geometry_program4_glFramebufferTextureLayerEXT_pointer;
@@ -2214,7 +2214,7 @@
private boolean NV_framebuffer_multisample_coverage_initNativeFunctionAddresses() {
return
- (NV_framebuffer_multisample_coverage_glRenderbufferStorageMultsampleCoverageNV_pointer = GLContext.getFunctionAddress("glRenderbufferStorageMultsampleCoverageNV")) != 0;
+ (NV_framebuffer_multisample_coverage_glRenderbufferStorageMultisampleCoverageNV_pointer = GLContext.getFunctionAddress("glRenderbufferStorageMultisampleCoverageNV")) != 0;
}
private boolean NV_geometry_program4_initNativeFunctionAddresses() {
Modified: trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java
===================================================================
--- trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java 2007-01-17 08:00:54 UTC (rev 2724)
+++ trunk/LWJGL/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java 2007-01-17 08:01:37 UTC (rev 2725)
@@ -17,11 +17,11 @@
}
- public static void glRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height) {
+ public static void glRenderbufferStorageMultisampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height) {
ContextCapabilities caps = GLContext.getCapabilities();
- long function_pointer = caps.NV_framebuffer_multisample_coverage_glRenderbufferStorageMultsampleCoverageNV_pointer;
+ long function_pointer = caps.NV_framebuffer_multisample_coverage_glRenderbufferStorageMultisampleCoverageNV_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
- nglRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height, function_pointer);
+ nglRenderbufferStorageMultisampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height, function_pointer);
}
- private static native void nglRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height, long function_pointer);
+ private static native void nglRenderbufferStorageMultisampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height, long function_pointer);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-17 08:00:55
|
Revision: 2724
http://svn.sourceforge.net/java-game-lib/?rev=2724&view=rev
Author: elias_naur
Date: 2007-01-17 00:00:54 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Fixed type in NV_framebuffer_multisample_coverage.java
Modified Paths:
--------------
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_framebuffer_multisample_coverage.java
Modified: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_framebuffer_multisample_coverage.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_framebuffer_multisample_coverage.java 2007-01-13 19:24:05 UTC (rev 2723)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_framebuffer_multisample_coverage.java 2007-01-17 08:00:54 UTC (rev 2724)
@@ -40,6 +40,6 @@
int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB;
int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10;
- void glRenderbufferStorageMultsampleCoverageNV(@GLenum int target, @GLsizei int coverageSamples, @GLsizei int colorSamples,
+ void glRenderbufferStorageMultisampleCoverageNV(@GLenum int target, @GLsizei int coverageSamples, @GLsizei int colorSamples,
@GLenum int internalformat, @GLsizei int width, @GLsizei int height);
-}
\ No newline at end of file
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Otcbb A. <fd...@ca...> - 2007-01-15 05:51:39
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-125=
1">
<meta http-equiv=3D"Content-Style-Type" content=3D"text/css">
</head>
<body>
<html>
<head>
"We'll continue to be flexible and we'll make the changes necessary to succ=
eed," the president said.<br><br>
<style type=3D"text/css">
<!--
style1 {
font-weight: bold;
color: #CC0033;
}
body {
background-color: #CCCCFF;
}
style10 {color: #FFFF00}
style11 {color: blue}
style14 {color: #0000FF}
style16 {
color: #990066;
font-size: large;
}
-->
</style>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1"></head>
<body>
<hr size=3D"2">
<strong><tt>WE REPRESENT YOU STOCK WITH GOOD GROWTH POTENTIAL-<span class=
=3D"style10">MARSHALL HOLDINGS INTERNATIONAL(MHII.OB)</span>!!!</tt><br>
<tt>THIS SHARE CONTAINS OF:</tt></strong></strong>
<div align=3D"left">
<ul class=3D"style1">
<li><tt>FINANCIAL ADVANTAGE</tt></li>
<li><tt>STRONG CASH FLOWS</tt></li>
<li><tt>STEADY AND INCREASING COURSE</tt></li>
</ul>
<strong><tt>FAST GRAB THIS INCREDIBLE STOCK!!!<br>
THE NEXT PRICES ARE: <u><span class=3D"style14">JAN 8=3D0.01$</span></u> A=
ND CURRENT <u><span class=3D"style14">JAN 12=3D0.04$</span></u> ON TUESDAY =
<span class=3D"style14"><u>IT WILL 0.17$</u>!!!</span><br>
IT GROWTHS MORE THAN <span class=3D"style11">30%</span> EVERY DAY!!! BE CA=
REFUL JOIN THIS STOCK<br>
<span class=3D"style10">(MHII.OB)</span> SHARES ASSIST YOU TO GRANT YOUR W=
ISHES.<br>
BUY IT EXACTLY ON <span class=3D"style16">TUESDAY</span> NEXT WEEK!!!
</tt></strong>
</div>
<hr size=3D"2">
</body>
Recent U.S. elections added fuel to the argument from Democrats that U.S. s=
oldiers need to come home. But Bush has resisted that, even while projectin=
g the need for a different approach."We'll continue to be flexible and we'l=
l make the changes necessary to succeed," the president said."There's one t=
hing I'm not going to do, I'm not going to pull our troops off the battlefi=
eld before the mission is complete," he said in a speech setting the stage =
for high-stakes meetings with the Iraqi prime minister later this week. "We=
can accept nothing less than victory for our children and our grandchildre=
n."In Riga to attend a NATO summit, Bush also enlisted renewed commi=
tments from the NATO allies that have deployed 32,000 troops to Afgh=
anistan. He said NATO commanders must have the resources and flexibility to=
do the job =97 an apparent reference to the fact that only a handful of co=
untries =97 primarily Canada, Britain, the United States and the Netherland=
s =97 are doing much of the heavy lifting in the dangerous southern provinc=
es against a resurgent Taliban.<br><br>
</html>
</body></html>
|
|
From: <eli...@us...> - 2007-01-13 19:24:07
|
Revision: 2723
http://svn.sourceforge.net/java-game-lib/?rev=2723&view=rev
Author: elias_naur
Date: 2007-01-13 11:24:05 -0800 (Sat, 13 Jan 2007)
Log Message:
-----------
Display: Fixed a NPE when create() fails on context creation
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-10 13:55:42 UTC (rev 2722)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-13 19:24:05 UTC (rev 2723)
@@ -277,7 +277,7 @@
return;
}
try {
- if (context.isCurrent()) {
+ if (context != null && context.isCurrent()) {
context.releaseDrawable();
Context.releaseCurrentContext();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-10 13:55:43
|
Revision: 2722
http://svn.sourceforge.net/java-game-lib/?rev=2722&view=rev
Author: elias_naur
Date: 2007-01-10 05:55:42 -0800 (Wed, 10 Jan 2007)
Log Message:
-----------
AWTInput: Don't create the Robot before it is needed
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-01-07 23:21:24 UTC (rev 2721)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-01-10 13:55:42 UTC (rev 2722)
@@ -56,7 +56,6 @@
protected AbstractAWTInput(AWTGLCanvas canvas) {
this.canvas = canvas;
- this.robot = AWTUtil.createRobot(canvas);
}
protected MouseEventQueue getMouseEventQueue() {
@@ -127,6 +126,8 @@
}
public void setCursorPosition(int x, int y) {
+ if (robot == null)
+ robot = AWTUtil.createRobot(canvas);
AWTUtil.setCursorPosition(canvas, robot, x, y);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2007-01-07 23:21:27
|
Revision: 2721
http://svn.sourceforge.net/java-game-lib/?rev=2721&view=rev
Author: matzon
Date: 2007-01-07 15:21:24 -0800 (Sun, 07 Jan 2007)
Log Message:
-----------
tagging rc1
Added Paths:
-----------
tags/lwjgl1.0-rc1/
Copied: tags/lwjgl1.0-rc1 (from rev 2720, trunk)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2007-01-07 20:41:46
|
Revision: 2720
http://svn.sourceforge.net/java-game-lib/?rev=2720&view=rev
Author: matzon
Date: 2007-01-07 12:41:45 -0800 (Sun, 07 Jan 2007)
Log Message:
-----------
added Display.create/destroy. Fixes an error on mac, since OpenGL has to be initialized before creating ILUT
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/test/devil/BasicTest.java
Modified: trunk/LWJGL/src/java/org/lwjgl/test/devil/BasicTest.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/devil/BasicTest.java 2007-01-07 08:41:33 UTC (rev 2719)
+++ trunk/LWJGL/src/java/org/lwjgl/test/devil/BasicTest.java 2007-01-07 20:41:45 UTC (rev 2720)
@@ -52,6 +52,7 @@
public static void main(String args[]) {
try {
+ org.lwjgl.opengl.Display.create();
IL.create();
ILU.create();
ILUT.create();
@@ -118,6 +119,7 @@
ILUT.destroy();
ILU.destroy();
IL.destroy();
+ org.lwjgl.opengl.Display.destroy();
} catch (Exception e) {
e.printStackTrace();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-07 08:41:36
|
Revision: 2719
http://svn.sourceforge.net/java-game-lib/?rev=2719&view=rev
Author: elias_naur
Date: 2007-01-07 00:41:33 -0800 (Sun, 07 Jan 2007)
Log Message:
-----------
Linux: Devil and FMOD: Add alternative paths to JNI header files
Modified Paths:
--------------
trunk/LWJGL/platform_build/linux_ant/build_devil.xml
trunk/LWJGL/platform_build/linux_ant/build_fmod3.xml
Modified: trunk/LWJGL/platform_build/linux_ant/build_devil.xml
===================================================================
--- trunk/LWJGL/platform_build/linux_ant/build_devil.xml 2007-01-04 23:28:33 UTC (rev 2718)
+++ trunk/LWJGL/platform_build/linux_ant/build_devil.xml 2007-01-07 08:41:33 UTC (rev 2719)
@@ -28,6 +28,8 @@
<property name="linker_flags" value="-Wl,--version-script=${native}/linux/lwjgl.map -shared -O2 -Wall -o ${libname} ${libs}"/>
<apply dir="." executable="cc" dest="." skipemptyfilesets="true" failonerror="true">
<arg line="${cflags}"/>
+ <arg value="-I${java.home}/../include"/>
+ <arg value="-I${java.home}/../include/linux"/>
<arg value="-I${java.home}/include"/>
<arg value="-I${java.home}/include/linux"/>
<arg value="-I${native}/common"/>
Modified: trunk/LWJGL/platform_build/linux_ant/build_fmod3.xml
===================================================================
--- trunk/LWJGL/platform_build/linux_ant/build_fmod3.xml 2007-01-04 23:28:33 UTC (rev 2718)
+++ trunk/LWJGL/platform_build/linux_ant/build_fmod3.xml 2007-01-07 08:41:33 UTC (rev 2719)
@@ -32,6 +32,8 @@
<property name="linker_flags" value="-Wl,--version-script=${native}/linux/lwjgl.map -shared -O2 -Wall -o ${libname} ${libs}"/>
<apply dir="." executable="cc" dest="." skipemptyfilesets="true" failonerror="true">
<arg line="${cflags}"/>
+ <arg value="-I${java.home}/../include"/>
+ <arg value="-I${java.home}/../include/linux"/>
<arg value="-I${java.home}/include"/>
<arg value="-I${java.home}/include/linux"/>
<arg value="-I${fmod.home}/api/inc"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2007-01-04 23:28:35
|
Revision: 2718
http://svn.sourceforge.net/java-game-lib/?rev=2718&view=rev
Author: matzon
Date: 2007-01-04 15:28:33 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
osx cursor animation emulation enabled
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
Modified: trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-01-04 14:12:36 UTC (rev 2717)
+++ trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-01-04 23:28:33 UTC (rev 2718)
@@ -136,8 +136,9 @@
private static InputImplementation implementation;
- /** Whether we're running windows - which need to manually update cursor animation */
- private static final boolean isWindows = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS;
+ /** Whether we need cursor animation emulation */
+ private static final boolean emulateCursorAnimation = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS ||
+ LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_MACOSX;
/**
* Mouse cannot be constructed.
@@ -584,7 +585,7 @@
* shouldn't be called otherwise
*/
public static synchronized void updateCursor() {
- if (isWindows && currentCursor != null && currentCursor.hasTimedOut()) {
+ if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut()) {
currentCursor.nextCursor();
try {
setNativeCursor(currentCursor);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-04 14:12:41
|
Revision: 2717
http://svn.sourceforge.net/java-game-lib/?rev=2717&view=rev
Author: elias_naur
Date: 2007-01-04 06:12:36 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
Windows: Clear the window with OpenGL to replace UpdateWindow(HWND) and run message loop once in Display.create().
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-04 14:00:45 UTC (rev 2716)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-04 14:12:36 UTC (rev 2717)
@@ -734,6 +734,9 @@
GL11.glMatrixMode(GL11.GL_MODELVIEW);
GL11.glLoadIdentity();
GL11.glViewport(0, 0, current_mode.getWidth(), current_mode.getHeight());
+ // Clear window to avoid the desktop "showing through"
+ GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
+ update();
}
static DisplayImplementation getImplementation() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-04 14:00:47
|
Revision: 2716
http://svn.sourceforge.net/java-game-lib/?rev=2716&view=rev
Author: elias_naur
Date: 2007-01-04 06:00:45 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
Windows: Don't use UpdateWindow after all. Instead, don't use a background brush at all to avoid windows clearing windows with non OpenGL drawing commands. Hopefully this will improve compatibility (The NeHe tutorials also don't specify a background brush).
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
trunk/LWJGL/src/native/windows/context.c
trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-04 13:44:23 UTC (rev 2715)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-04 14:00:45 UTC (rev 2716)
@@ -136,7 +136,6 @@
showWindow(getHwnd(), SW_SHOWDEFAULT);
setForegroundWindow(getHwnd());
setFocus(getHwnd());
- updateWindow(getHwnd());
}
private native void nCreateWindow(DisplayMode mode, boolean fullscreen, int x, int y) throws LWJGLException;
@@ -182,7 +181,6 @@
private static native void showWindow(long hwnd, int mode);
private static native void setForegroundWindow(long hwnd);
private static native void setFocus(long hwnd);
- private static native void updateWindow(long hwnd);
private void restoreDisplayMode() {
try {
Modified: trunk/LWJGL/src/native/windows/context.c
===================================================================
--- trunk/LWJGL/src/native/windows/context.c 2007-01-04 13:44:23 UTC (rev 2715)
+++ trunk/LWJGL/src/native/windows/context.c 2007-01-04 14:00:45 UTC (rev 2716)
@@ -55,6 +55,7 @@
bool registerWindow(WNDPROC win_proc, LPCTSTR class_name)
{
WNDCLASS windowClass;
+ memset(&windowClass, 0, sizeof(windowClass));
windowClass.style = CS_OWNDC;
windowClass.lpfnWndProc = win_proc;
windowClass.cbClsExtra = 0;
@@ -62,7 +63,7 @@
windowClass.hInstance = dll_handle;
windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
- windowClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
+ windowClass.hbrBackground = NULL;
windowClass.lpszMenuName = NULL;
windowClass.lpszClassName = class_name;
Modified: trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c
===================================================================
--- trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c 2007-01-04 13:44:23 UTC (rev 2715)
+++ trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c 2007-01-04 14:00:45 UTC (rev 2716)
@@ -247,11 +247,6 @@
setGammaRamp(env, gamma_buffer);
}
-JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_updateWindow(JNIEnv *env, jclass unused, jlong hwnd_ptr) {
- HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
- UpdateWindow(hwnd);
-}
-
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_showWindow(JNIEnv *env, jclass unused, jlong hwnd_ptr, jint mode) {
HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
ShowWindow(hwnd, mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-04 13:44:25
|
Revision: 2715
http://svn.sourceforge.net/java-game-lib/?rev=2715&view=rev
Author: elias_naur
Date: 2007-01-04 05:44:23 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
Windows: Re-add UpdateWindow to make sure fullscreen windows are cleared faster
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-03 09:16:13 UTC (rev 2714)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2007-01-04 13:44:23 UTC (rev 2715)
@@ -136,6 +136,7 @@
showWindow(getHwnd(), SW_SHOWDEFAULT);
setForegroundWindow(getHwnd());
setFocus(getHwnd());
+ updateWindow(getHwnd());
}
private native void nCreateWindow(DisplayMode mode, boolean fullscreen, int x, int y) throws LWJGLException;
@@ -181,6 +182,7 @@
private static native void showWindow(long hwnd, int mode);
private static native void setForegroundWindow(long hwnd);
private static native void setFocus(long hwnd);
+ private static native void updateWindow(long hwnd);
private void restoreDisplayMode() {
try {
Modified: trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c
===================================================================
--- trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c 2007-01-03 09:16:13 UTC (rev 2714)
+++ trunk/LWJGL/src/native/windows/org_lwjgl_opengl_Display.c 2007-01-04 13:44:23 UTC (rev 2715)
@@ -247,6 +247,11 @@
setGammaRamp(env, gamma_buffer);
}
+JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_updateWindow(JNIEnv *env, jclass unused, jlong hwnd_ptr) {
+ HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
+ UpdateWindow(hwnd);
+}
+
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_showWindow(JNIEnv *env, jclass unused, jlong hwnd_ptr, jint mode) {
HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
ShowWindow(hwnd, mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-03 09:16:14
|
Revision: 2714
http://svn.sourceforge.net/java-game-lib/?rev=2714&view=rev
Author: elias_naur
Date: 2007-01-03 01:16:13 -0800 (Wed, 03 Jan 2007)
Log Message:
-----------
AWTGLCanvas: Release the lock before calling exceptionOccurred
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-03 09:13:38 UTC (rev 2713)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-03 09:16:13 UTC (rev 2714)
@@ -285,6 +285,7 @@
* be overridden to do GL operations.
*/
public final void paint(Graphics g) {
+ LWJGLException exception = null;
synchronized (SYNC_LOCK) {
if (!isDisplayable())
return;
@@ -324,9 +325,11 @@
peer_info.unlock();
}
} catch (LWJGLException e) {
- exceptionOccurred(e);
+ exception = e;
}
}
+ if (exception != null)
+ exceptionOccurred(exception);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <eli...@us...> - 2007-01-03 09:13:39
|
Revision: 2713
http://svn.sourceforge.net/java-game-lib/?rev=2713&view=rev
Author: elias_naur
Date: 2007-01-03 01:13:38 -0800 (Wed, 03 Jan 2007)
Log Message:
-----------
AWTGLCanvas: Added exceptionOccurred to allow users to be notified of unhandled LWJGLExceptions in paint()
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-02 19:02:25 UTC (rev 2712)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTGLCanvas.java 2007-01-03 09:13:38 UTC (rev 2713)
@@ -324,12 +324,22 @@
peer_info.unlock();
}
} catch (LWJGLException e) {
- LWJGLUtil.log("Failed to lock surface, skipping paint(): " + e);
+ exceptionOccurred(e);
}
}
}
/**
+ * This method will be called if an unhandled LWJGLException occurs in paint().
+ * Override this method to be notified of this.
+ *
+ * @param exception The exception that occurred.
+ */
+ protected void exceptionOccurred(LWJGLException exception) {
+ LWJGLUtil.log("Unhandled exception occurred, skipping paint(): " + exception);
+ }
+
+ /**
* override update to avoid clearing
*/
public void update(Graphics g) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2007-01-02 19:02:37
|
Revision: 2712
http://svn.sourceforge.net/java-game-lib/?rev=2712&view=rev
Author: matzon
Date: 2007-01-02 11:02:25 -0800 (Tue, 02 Jan 2007)
Log Message:
-----------
use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java
Modified: trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java 2007-01-02 11:12:37 UTC (rev 2711)
+++ trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java 2007-01-02 19:02:25 UTC (rev 2712)
@@ -207,7 +207,7 @@
}
cursorImages.flip();
cursorDelays.flip();
- cursor[2] = new Cursor(Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize()/2, Cursor.getMaxCursorSize()/2, cursorImageCount, cursorImages, cursorDelays);
+ cursor[2] = new Cursor(cursorWidth, cursorHeight, cursorWidth/2, cursorHeight/2, cursorImageCount, cursorImages, cursorDelays);
// ----------------------------------
Mouse.setNativeCursor(cursor[0]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|