Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6509/java/org/lwjgl/opengl Modified Files: Context.java Display.java GLContext.java LinuxDisplay.java MacOSXDisplay.java Pbuffer.java Win32Display.java Log Message: moved Sys.log to LWJGLUtils and renamed property to org.lwjgl.util.Debug Index: Win32Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Win32Display.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Win32Display.java 24 Feb 2005 13:24:08 -0000 1.15 +++ Win32Display.java 29 Mar 2005 18:09:30 -0000 1.16 @@ -42,7 +42,7 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; -import org.lwjgl.Sys; +import org.lwjgl.LWJGLUtil; import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.input.Cursor; @@ -84,7 +84,7 @@ if (Display.getContext().isCurrent()) Display.getContext().makeCurrent(); } catch (LWJGLException e) { - Sys.log("Exception occurred while trying to make context current: " + e); + LWJGLUtil.log("Exception occurred while trying to make context current: " + e); } } } @@ -129,7 +129,7 @@ // Return the capabilities of a minimum pixel format return nGetPbufferCapabilities(new PixelFormat(0, 0, 0, 0, 0, 0, 0, 0, false)); } catch (LWJGLException e) { - Sys.log("Exception occurred while determining pbuffer capabilities: " + e); + LWJGLUtil.log("Exception occurred while determining pbuffer capabilities: " + e); return 0; } } Index: Pbuffer.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Pbuffer.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- Pbuffer.java 23 Feb 2005 11:11:07 -0000 1.39 +++ Pbuffer.java 29 Mar 2005 18:09:30 -0000 1.40 @@ -34,6 +34,7 @@ import java.nio.ByteBuffer; import org.lwjgl.LWJGLException; +import org.lwjgl.LWJGLUtil; import org.lwjgl.Sys; /** @@ -250,7 +251,7 @@ peer_info.destroy(); destroyed = true; } catch (LWJGLException e) { - Sys.log("Exception occurred while destroying pbuffer: " + e); + LWJGLUtil.log("Exception occurred while destroying pbuffer: " + e); } } Index: LinuxDisplay.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- LinuxDisplay.java 29 Mar 2005 11:31:21 -0000 1.21 +++ LinuxDisplay.java 29 Mar 2005 18:09:30 -0000 1.22 @@ -42,7 +42,7 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; -import org.lwjgl.Sys; +import org.lwjgl.LWJGLUtil; import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.input.Keyboard; @@ -383,7 +383,7 @@ decDisplay(); return caps; } catch (LWJGLException e) { - Sys.log("Exception occurred in getPbufferCapabilities: " + e); + LWJGLUtil.log("Exception occurred in getPbufferCapabilities: " + e); return 0; } finally { unlockAWT(); Index: Context.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Context.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Context.java 23 Feb 2005 12:12:46 -0000 1.3 +++ Context.java 29 Mar 2005 18:09:29 -0000 1.4 @@ -34,6 +34,7 @@ import java.nio.ByteBuffer; import org.lwjgl.LWJGLException; +import org.lwjgl.LWJGLUtil; import org.lwjgl.Sys; /** @@ -198,7 +199,7 @@ thread = null; GLContext.unloadOpenGLLibrary(); } catch (LWJGLException e) { - Sys.log("Exception occurred while destroying context: " + e); + LWJGLUtil.log("Exception occurred while destroying context: " + e); } } } Index: GLContext.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLContext.java,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- GLContext.java 21 Feb 2005 14:46:42 -0000 1.48 +++ GLContext.java 29 Mar 2005 18:09:29 -0000 1.49 @@ -32,6 +32,7 @@ package org.lwjgl.opengl; import org.lwjgl.LWJGLException; +import org.lwjgl.LWJGLUtil; import org.lwjgl.Sys; import java.lang.reflect.Method; @@ -169,7 +170,7 @@ Method init_stubs_method = extension_class.getDeclaredMethod("initNativeStubs", null); init_stubs_method.invoke(null, null); } catch (Exception e) { - Sys.log("Failed to initialize extension " + extension_class + " - exception: " + e); + LWJGLUtil.log("Failed to initialize extension " + extension_class + " - exception: " + e); supported_extensions.remove(ext_name); } } Index: MacOSXDisplay.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- MacOSXDisplay.java 24 Feb 2005 11:09:16 -0000 1.25 +++ MacOSXDisplay.java 29 Mar 2005 18:09:30 -0000 1.26 @@ -57,7 +57,7 @@ import org.lwjgl.LWJGLException; import org.lwjgl.BufferUtils; -import org.lwjgl.Sys; +import org.lwjgl.LWJGLUtil; import org.lwjgl.input.Keyboard; final class MacOSXDisplay implements DisplayImplementation { @@ -376,7 +376,7 @@ if (major_version > 10 || (major_version == 10 && minor_version >= 3)) return Pbuffer.PBUFFER_SUPPORTED; } catch (Exception e) { - Sys.log("Exception occurred when trying to determine OS version: " + e); + LWJGLUtil.log("Exception occurred when trying to determine OS version: " + e); } return 0; } Index: Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Display.java,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- Display.java 23 Feb 2005 11:11:06 -0000 1.45 +++ Display.java 29 Mar 2005 18:09:29 -0000 1.46 @@ -49,6 +49,7 @@ import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; +import org.lwjgl.LWJGLUtil; import org.lwjgl.Sys; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; @@ -96,7 +97,7 @@ display_impl = createDisplayImplementation(); try { current_mode = initial_mode = display_impl.init(); - Sys.log("Initial mode: " + initial_mode); + LWJGLUtil.log("Initial mode: " + initial_mode); Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { reset(); @@ -177,7 +178,7 @@ DisplayMode[] filteredModes = new DisplayMode[modes.size()]; modes.toArray(filteredModes); - Sys.log("Removed " + (unfilteredModes.length - filteredModes.length) + " duplicate displaymodes"); + LWJGLUtil.log("Removed " + (unfilteredModes.length - filteredModes.length) + " duplicate displaymodes"); return filteredModes; } @@ -257,7 +258,7 @@ if (context.isCurrent()) Context.releaseCurrentContext(); } catch (LWJGLException e) { - Sys.log("Exception occurred while trying to release context"); + LWJGLUtil.log("Exception occurred while trying to release context"); } if (!window_created) @@ -316,7 +317,7 @@ gammaRamp.put(i, rampEntry); } display_impl.setGammaRamp(gammaRamp); - Sys.log("Gamma set, gamma = " + gamma + ", brightness = " + brightness + ", contrast = " + contrast); + LWJGLUtil.log("Gamma set, gamma = " + gamma + ", brightness = " + brightness + ", contrast = " + contrast); } /** @@ -628,10 +629,10 @@ try { Mouse.create(); } catch (LWJGLException e) { - if (Sys.DEBUG) { + if (LWJGLUtil.DEBUG) { e.printStackTrace(System.err); } else { - Sys.log("Failed to create Mouse: "+e); + LWJGLUtil.log("Failed to create Mouse: "+e); } } } @@ -639,10 +640,10 @@ try { Keyboard.create(); } catch (LWJGLException e) { - if (Sys.DEBUG) { + if (LWJGLUtil.DEBUG) { e.printStackTrace(System.err); } else { - Sys.log("Failed to create Keyboard: "+e); + LWJGLUtil.log("Failed to create Keyboard: "+e); } } } |