diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferChecks.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferChecks.java index 828fd4da452e8116aa2fed356cc1e22f942855c3..7990d2978bc0ca586f848a9c3237b3f1419f21fc 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferChecks.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferChecks.java @@ -43,7 +43,7 @@ import java.nio.*; * @author cix_foo <cix_foo@users.sourceforge.net> * @author elias_naur <elias_naur@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class BufferChecks { /** Static methods only! */ diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferUtils.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferUtils.java index b3427224551cd290df7d70c5b5cf239814149c09..9ae774e47d08cd715b2c079a9ccbfcb75272d9bb 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferUtils.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/BufferUtils.java @@ -44,16 +44,17 @@ import java.nio.ShortBuffer; /** * Some often-used Buffer code for creating native buffers of the appropriate size. * - * @author $Author$ - * @version $Revision$ - * $Id$ + * @author hoelzl + * | | */ public final class BufferUtils { /** * Construct a direct native-ordered bytebuffer with the specified size. - * @param size The size, in bytes + * + * @param size + * The size, in bytes * @return a ByteBuffer */ public static ByteBuffer createByteBuffer(int size) { @@ -63,7 +64,9 @@ public final class BufferUtils { /** * Construct a direct native-order shortbuffer with the specified number * of elements. - * @param size The size, in shorts + * + * @param size + * The size, in shorts * @return a ShortBuffer */ public static ShortBuffer createShortBuffer(int size) { @@ -73,7 +76,9 @@ public final class BufferUtils { /** * Construct a direct native-order charbuffer with the specified number * of elements. - * @param size The size, in chars + * + * @param size + * The size, in chars * @return an CharBuffer */ public static CharBuffer createCharBuffer(int size) { @@ -83,7 +88,9 @@ public final class BufferUtils { /** * Construct a direct native-order intbuffer with the specified number * of elements. - * @param size The size, in ints + * + * @param size + * The size, in ints * @return an IntBuffer */ public static IntBuffer createIntBuffer(int size) { @@ -93,7 +100,9 @@ public final class BufferUtils { /** * Construct a direct native-order longbuffer with the specified number * of elements. - * @param size The size, in longs + * + * @param size + * The size, in longs * @return an LongBuffer */ public static LongBuffer createLongBuffer(int size) { @@ -103,7 +112,9 @@ public final class BufferUtils { /** * Construct a direct native-order floatbuffer with the specified number * of elements. - * @param size The size, in floats + * + * @param size + * The size, in floats * @return a FloatBuffer */ public static FloatBuffer createFloatBuffer(int size) { @@ -113,7 +124,9 @@ public final class BufferUtils { /** * Construct a direct native-order doublebuffer with the specified number * of elements. - * @param size The size, in floats + * + * @param size + * The size, in floats * @return a FloatBuffer */ public static DoubleBuffer createDoubleBuffer(int size) { @@ -123,7 +136,9 @@ public final class BufferUtils { /** * Construct a PointerBuffer with the specified number * of elements. - * @param size The size, in memory addresses + * + * @param size + * The size, in memory addresses * @return a PointerBuffer */ public static PointerBuffer createPointerBuffer(int size) { @@ -134,13 +149,13 @@ public final class BufferUtils { * @return n, where buffer_element_size=2^n. */ public static int getElementSizeExponent(Buffer buf) { - if (buf instanceof ByteBuffer) + if(buf instanceof ByteBuffer) return 0; - else if (buf instanceof ShortBuffer || buf instanceof CharBuffer) + else if(buf instanceof ShortBuffer || buf instanceof CharBuffer) return 1; - else if (buf instanceof FloatBuffer || buf instanceof IntBuffer) + else if(buf instanceof FloatBuffer || buf instanceof IntBuffer) return 2; - else if (buf instanceof LongBuffer || buf instanceof DoubleBuffer) + else if(buf instanceof LongBuffer || buf instanceof DoubleBuffer) return 3; else throw new IllegalStateException("Unsupported buffer type: " + buf); @@ -149,6 +164,7 @@ public final class BufferUtils { /** * A helper function which is used to get the byte offset in an arbitrary buffer * based on its position + * * @return the position of the buffer, in BYTES */ public static int getOffset(Buffer buffer) { @@ -157,37 +173,37 @@ public final class BufferUtils { /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(ByteBuffer b) { - zeroBuffer0(b, b.position(), b.remaining()); + zeroBuffer0(b, b.position(), b.remaining()); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(ShortBuffer b) { - zeroBuffer0(b, b.position()*2L, b.remaining()*2L); + zeroBuffer0(b, b.position() * 2L, b.remaining() * 2L); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(CharBuffer b) { - zeroBuffer0(b, b.position()*2L, b.remaining()*2L); + zeroBuffer0(b, b.position() * 2L, b.remaining() * 2L); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(IntBuffer b) { - zeroBuffer0(b, b.position()*4L, b.remaining()*4L); + zeroBuffer0(b, b.position() * 4L, b.remaining() * 4L); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(FloatBuffer b) { - zeroBuffer0(b, b.position()*4L, b.remaining()*4L); + zeroBuffer0(b, b.position() * 4L, b.remaining() * 4L); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(LongBuffer b) { - zeroBuffer0(b, b.position()*8L, b.remaining()*8L); + zeroBuffer0(b, b.position() * 8L, b.remaining() * 8L); } /** Fill buffer with zeros from position to remaining */ public static void zeroBuffer(DoubleBuffer b) { - zeroBuffer0(b, b.position()*8L, b.remaining()*8L); + zeroBuffer0(b, b.position() * 8L, b.remaining() * 8L); } /** Fill buffer with zeros from position to remaining */ @@ -196,7 +212,8 @@ public final class BufferUtils { /** * Returns the memory address of the specified buffer. * - * @param buffer the buffer + * @param buffer + * the buffer * * @return the memory address */ diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLException.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLException.java index 5d2c33f75ae9849341786168d6edf2f328cfee76..2cfbaa29c0c832f50bb82c2e2a18cdba99d607db 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLException.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLException.java @@ -39,7 +39,7 @@ package org.lwjglx; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public class LWJGLException extends Exception { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLUtil.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLUtil.java index 77022b0e9271c67e92942aa7818da886a555e19e..20acf7744250662376888560e8a6c063307ccc6b 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLUtil.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/LWJGLUtil.java @@ -49,7 +49,7 @@ import java.util.*; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public class LWJGLUtil { public static final int PLATFORM_LINUX = 1; diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/input/Cursor.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/input/Cursor.java index 118e3d979f03dc1301398929e4c258dedcd9352d..200d7b6c5e3571c483b50c4cef8f3a5e04d0693c 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/input/Cursor.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/input/Cursor.java @@ -47,7 +47,7 @@ import org.lwjglx.LWJGLException; * * @author elias_naur <elias_naur@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Cursor { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCcontext.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCcontext.java index 3582e8e95c66d6ef4eb7f943b3f177949ec3aec6..4b33b024dd30d73a652e1f67a8ab254be5fa525e 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCcontext.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCcontext.java @@ -47,7 +47,7 @@ import org.lwjgl.BufferUtils; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public final class ALCcontext { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCdevice.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCdevice.java index d8822f3ed5ecf65767a7067b51cf163fd0409d38..2c701db32d3e1de947715f6f2e349f90c2171868 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCdevice.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/ALCdevice.java @@ -45,7 +45,7 @@ import java.util.HashMap; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public final class ALCdevice { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/OpenALException.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/OpenALException.java index a2642a98cf6576d4279534a2dc35dab74465d96d..43aeba8b8e7d52072f7f9d972f6800d353b3d81b 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/OpenALException.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/openal/OpenALException.java @@ -38,7 +38,7 @@ package org.lwjglx.openal; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public class OpenALException extends RuntimeException { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/ContextGL.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/ContextGL.java index a226bab866278574afe8c7aa16b7f5e78b2f9f67..5b02bebdb9ec24f3f3437f722c3dfc447337fbd4 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/ContextGL.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/ContextGL.java @@ -43,7 +43,7 @@ import org.lwjglx.PointerBuffer; * * @author elias_naur <elias_naur@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ final class ContextGL implements Context { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/DisplayMode.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/DisplayMode.java index a2720daf7fac6eb9d6e4af201260aeee16f5e4cd..b831378daf5aa8f796df58a3d66c15cb5fa8ec74 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/DisplayMode.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/DisplayMode.java @@ -39,7 +39,7 @@ package org.lwjglx.opengl; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public final class DisplayMode { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/OpenGLException.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/OpenGLException.java index eeb86711df966c199d64cb89d2f0c46409144eef..7f4edf8b849cffd56a4328ce657426d1ec84ef3d 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/OpenGLException.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/OpenGLException.java @@ -37,7 +37,7 @@ package org.lwjglx.opengl; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class OpenGLException extends RuntimeException { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/Pbuffer.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/Pbuffer.java index 20b4ecbbd4fd1eb78feec4447d4a5c0120e0de22..abe3d5daefafb58ec195ccb5430120eecbff3088 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/Pbuffer.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/Pbuffer.java @@ -46,7 +46,7 @@ import org.lwjglx.Sys; * * @author elias_naur <elias_naur@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public final class Pbuffer extends DrawableGL { /** diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/PeerInfo.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/PeerInfo.java index 91c55ffab2726e2274bbb8de40fe77ee630d116b..9892dcd0b9412086605665ed7dc7d7bb689c9085 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/PeerInfo.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/opengl/PeerInfo.java @@ -40,7 +40,7 @@ import org.lwjglx.LWJGLUtil; * * @author elias_naur <elias_naur@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ abstract class PeerInfo { private final ByteBuffer handle; diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/Display.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/Display.java index d23473fee83f7869eb214c6ec77ee34bb0efe4c8..b9c1c52fef3970870a066495c6f97c7fe86171a3 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/Display.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/Display.java @@ -42,9 +42,9 @@ import org.lwjglx.opengl.DisplayMode; /** * Display initialization utility, that can be used to find display modes and pick * one for you based on your criteria. - * @author $Author$ - * @version $Revision$ - * $Id$ + * + * @author hoelzl + * | | */ public final class Display { @@ -54,51 +54,58 @@ public final class Display { * Determine the available display modes that match the specified minimum and maximum criteria. * If any given criterium is specified as -1 then it is ignored. * - * @param minWidth the minimum display resolution in pixels - * @param minHeight the minimum display resolution in pixels - * @param maxWidth the maximum display resolution in pixels - * @param maxHeight the maximum display resolution in pixels - * @param minBPP the minimum bit depth per pixel - * @param maxBPP the maximum bit depth per pixel - * @param minFreq the minimum display frequency in Hz - * @param maxFreq the maximum display frequency in Hz + * @param minWidth + * the minimum display resolution in pixels + * @param minHeight + * the minimum display resolution in pixels + * @param maxWidth + * the maximum display resolution in pixels + * @param maxHeight + * the maximum display resolution in pixels + * @param minBPP + * the minimum bit depth per pixel + * @param maxBPP + * the maximum bit depth per pixel + * @param minFreq + * the minimum display frequency in Hz + * @param maxFreq + * the maximum display frequency in Hz * @return an array of matching display modes */ - public static DisplayMode[] getAvailableDisplayModes(int minWidth, int minHeight, int maxWidth, int maxHeight, int minBPP, int maxBPP, - int minFreq, int maxFreq) throws LWJGLException - { + public static DisplayMode[] getAvailableDisplayModes(int minWidth, int minHeight, int maxWidth, + int maxHeight, int minBPP, int maxBPP, int minFreq, int maxFreq) throws LWJGLException { // First get the available display modes DisplayMode[] modes = org.lwjglx.opengl.Display.getAvailableDisplayModes(); - if (LWJGLUtil.DEBUG || DEBUG) { + if(LWJGLUtil.DEBUG || DEBUG) { System.out.println("Available screen modes:"); - for ( DisplayMode mode : modes ) { + for(DisplayMode mode : modes) { System.out.println(mode); } } ArrayList<DisplayMode> matches = new ArrayList<DisplayMode>(modes.length); - for (int i = 0; i < modes.length; i ++) { - assert modes[i] != null : ""+i+" "+modes.length; - if (minWidth != -1 && modes[i].getWidth() < minWidth) + for(int i = 0; i < modes.length; i++) { + assert modes[i] != null : "" + i + " " + modes.length; + if(minWidth != -1 && modes[i].getWidth() < minWidth) continue; - if (maxWidth != -1 && modes[i].getWidth() > maxWidth) + if(maxWidth != -1 && modes[i].getWidth() > maxWidth) continue; - if (minHeight != -1 && modes[i].getHeight() < minHeight) + if(minHeight != -1 && modes[i].getHeight() < minHeight) continue; - if (maxHeight != -1 && modes[i].getHeight() > maxHeight) + if(maxHeight != -1 && modes[i].getHeight() > maxHeight) continue; - if (minBPP != -1 && modes[i].getBitsPerPixel() < minBPP) + if(minBPP != -1 && modes[i].getBitsPerPixel() < minBPP) continue; - if (maxBPP != -1 && modes[i].getBitsPerPixel() > maxBPP) + if(maxBPP != -1 && modes[i].getBitsPerPixel() > maxBPP) continue; - //if (modes[i].bpp == 24) - // continue; - if (modes[i].getFrequency() != 0) { - if (minFreq != -1 && modes[i].getFrequency() < minFreq) + // if (modes[i].bpp == 24) + // continue; + if(modes[i].getFrequency() != 0) { + if(minFreq != -1 && modes[i].getFrequency() < minFreq) continue; - if (maxFreq != -1 && modes[i].getFrequency() > maxFreq) + if(maxFreq != -1 && modes[i].getFrequency() > maxFreq) continue; } matches.add(modes[i]); @@ -106,9 +113,9 @@ public final class Display { DisplayMode[] ret = new DisplayMode[matches.size()]; matches.toArray(ret); - if (LWJGLUtil.DEBUG && DEBUG) { + if(LWJGLUtil.DEBUG && DEBUG) { System.out.println("Filtered screen modes:"); - for ( DisplayMode mode : ret ) { + for(DisplayMode mode : ret) { System.out.println(mode); } } @@ -118,44 +125,56 @@ public final class Display { /** * Create the display by choosing from a list of display modes based on an order of preference. - * You must supply a list of allowable display modes, probably by calling getAvailableDisplayModes(), + * You must supply a list of allowable display modes, probably by calling + * getAvailableDisplayModes(), * and an array with the order in which you would like them sorted in descending order. - * This method attempts to create the topmost display mode; if that fails, it will try the next one, - * and so on, until there are no modes left. If no mode is set at the end, an exception is thrown. - * @param dm a list of display modes to choose from - * @param param the names of the DisplayMode fields in the order in which you would like them sorted. + * This method attempts to create the topmost display mode; if that fails, it will try the next + * one, + * and so on, until there are no modes left. If no mode is set at the end, an exception is + * thrown. + * + * @param dm + * a list of display modes to choose from + * @param param + * the names of the DisplayMode fields in the order in which you would like them + * sorted. * @return the chosen display mode - * @throws NoSuchFieldException if one of the params is not a field in DisplayMode - * @throws Exception if no display mode could be set + * @throws NoSuchFieldException + * if one of the params is not a field in DisplayMode + * @throws Exception + * if no display mode could be set * @see org.lwjgl.opengl.DisplayMode */ - public static DisplayMode setDisplayMode(DisplayMode[] dm, final String[] param) throws Exception { + public static DisplayMode setDisplayMode(DisplayMode[] dm, final String[] param) + throws Exception { class FieldAccessor { final String fieldName; final int order; final int preferred; final boolean usePreferred; + FieldAccessor(String fieldName, int order, int preferred, boolean usePreferred) { this.fieldName = fieldName; this.order = order; this.preferred = preferred; this.usePreferred = usePreferred; } + int getInt(DisplayMode mode) { - if ("width".equals(fieldName)) { + if("width".equals(fieldName)) { return mode.getWidth(); } - if ("height".equals(fieldName)) { + if("height".equals(fieldName)) { return mode.getHeight(); } - if ("freq".equals(fieldName)) { + if("freq".equals(fieldName)) { return mode.getFrequency(); } - if ("bpp".equals(fieldName)) { + if("bpp".equals(fieldName)) { return mode.getBitsPerPixel(); } - throw new IllegalArgumentException("Unknown field "+fieldName); + throw new IllegalArgumentException("Unknown field " + fieldName); } } @@ -165,11 +184,14 @@ public final class Display { Sorter() { accessors = new FieldAccessor[param.length]; - for (int i = 0; i < accessors.length; i ++) { + for(int i = 0; i < accessors.length; i++) { int idx = param[i].indexOf('='); - if (idx > 0) { - accessors[i] = new FieldAccessor(param[i].substring(0, idx), 0, Integer.parseInt(param[i].substring(idx + 1, param[i].length())), true); - } else if (param[i].charAt(0) == '-') { + if(idx > 0) { + accessors[i] = + new FieldAccessor(param[i].substring(0, idx), 0, + Integer.parseInt(param[i].substring(idx + 1, + param[i].length())), true); + } else if(param[i].charAt(0) == '-') { accessors[i] = new FieldAccessor(param[i].substring(1), -1, 0, false); } else { accessors[i] = new FieldAccessor(param[i], 1, 0, false); @@ -181,29 +203,29 @@ public final class Display { * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(DisplayMode dm1, DisplayMode dm2) { - for ( FieldAccessor accessor : accessors ) { + for(FieldAccessor accessor : accessors) { int f1 = accessor.getInt(dm1); int f2 = accessor.getInt(dm2); - if ( accessor.usePreferred && f1 != f2 ) { - if ( f1 == accessor.preferred ) + if(accessor.usePreferred && f1 != f2) { + if(f1 == accessor.preferred) return -1; - else if ( f2 == accessor.preferred ) + else if(f2 == accessor.preferred) return 1; else { // Score according to the difference between the values int absf1 = Math.abs(f1 - accessor.preferred); int absf2 = Math.abs(f2 - accessor.preferred); - if ( absf1 < absf2 ) + if(absf1 < absf2) return -1; - else if ( absf1 > absf2 ) + else if(absf1 > absf2) return 1; else continue; } - } else if ( f1 < f2 ) + } else if(f1 < f2) return accessor.order; - else if ( f1 == f2 ) + else if(f1 == f2) continue; else return -accessor.order; @@ -217,20 +239,20 @@ public final class Display { Arrays.sort(dm, new Sorter()); // Try them out in the appropriate order - if (LWJGLUtil.DEBUG || DEBUG) { + if(LWJGLUtil.DEBUG || DEBUG) { System.out.println("Sorted display modes:"); - for ( DisplayMode aDm : dm ) { + for(DisplayMode aDm : dm) { System.out.println(aDm); } } - for ( DisplayMode aDm : dm ) { + for(DisplayMode aDm : dm) { try { - if ( LWJGLUtil.DEBUG || DEBUG ) + if(LWJGLUtil.DEBUG || DEBUG) System.out.println("Attempting to set displaymode: " + aDm); org.lwjglx.opengl.Display.setDisplayMode(aDm); return aDm; - } catch (Exception e) { - if ( LWJGLUtil.DEBUG || DEBUG ) { + } catch(Exception e) { + if(LWJGLUtil.DEBUG || DEBUG) { System.out.println("Failed to set display mode to " + aDm); e.printStackTrace(); } diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/WaveData.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/WaveData.java index 16cfdfc54f8c0eec4095c5fcac0e919cf4919ccf..3a09c9aec9c2fec99e7f050ac77da1f18c495cac 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/WaveData.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/WaveData.java @@ -54,7 +54,7 @@ import org.lwjgl.openal.AL10; * * @author Brian Matzon <brian@matzon.dk> * @version $Revision$ - * $Id$ + * | | */ public class WaveData { /** actual wave data */ diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix.java index 3afa048be2986d9ee6344948455398eeac385fd0..379a81e365f6ff85ecdea4a126e8831b44448561 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix.java @@ -41,7 +41,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public abstract class Matrix implements Serializable { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix2f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix2f.java index 319246c20e0eacc0a6ecdd51f1f47215b2227f8f..ef94a756eeaaf93ee2d6f5a164c67699252ef318 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix2f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix2f.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Matrix2f extends Matrix implements Serializable { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix3f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix3f.java index 8d38c38b686296c4df4fb86c19536b56ef1ccf1b..fbdc37cc283f3303d17890d2377f64d275af80e2 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix3f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Matrix3f.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Matrix3f extends Matrix implements Serializable { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Quaternion.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Quaternion.java index 9d6dca5fbdace29b4dabc8aafe96d451a4a713b6..39328ff4128400459ff4f0a64f42222dd4a02ef1 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Quaternion.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Quaternion.java @@ -37,7 +37,7 @@ package org.lwjglx.util.vector; * * @author fbi * @version $Revision$ - * $Id$ + * | | */ import java.nio.FloatBuffer; diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector.java index d88692da9aab446d711095de091ac9962f03b63d..e311cd5b3aada60eb66de70d685712dd35df4c62 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public abstract class Vector implements Serializable, ReadableVector { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector2f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector2f.java index cd780229173b8ca847554c30aa140ec7afe13b0a..c7db7d763c77e10592f2c0d97f22388ebb3258a2 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector2f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector2f.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Vector2f extends Vector implements Serializable, ReadableVector2f, WritableVector2f { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector3f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector3f.java index 300bdde7159023f0276984303420b101b4b728e0..5ff80ea815a255dd9b4a462118b62ed024b6793e 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector3f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector3f.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Vector3f extends Vector implements Serializable, ReadableVector3f, WritableVector3f { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector4f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector4f.java index 186c9f922597753feb093162c33a2f6fabe1a08e..7ddf5d81636fc1a515462b9c91a8b2471a7b9d1d 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector4f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/Vector4f.java @@ -40,7 +40,7 @@ import java.nio.FloatBuffer; * * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision$ - * $Id$ + * | | */ public class Vector4f extends Vector implements Serializable, ReadableVector4f, WritableVector4f { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector2f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector2f.java index 08940d5a1acbe90271e6c71f1e0bb3bb947582fe..9b3cef196bef11ad8d766fd72cdb78913e080d03 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector2f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector2f.java @@ -35,7 +35,7 @@ package org.lwjglx.util.vector; * Writable interface to Vector2fs * @author $author$ * @version $revision$ - * $Id$ + * | | */ public interface WritableVector2f { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector3f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector3f.java index 70bfe5b56a0d957bedf56507d6779182a0905fe2..785011d48cd33989a56f41ff50a98a0f2a2f788f 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector3f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector3f.java @@ -35,7 +35,7 @@ package org.lwjglx.util.vector; * Writable interface to Vector3fs * @author $author$ * @version $revision$ - * $Id$ + * | | */ public interface WritableVector3f extends WritableVector2f { diff --git a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector4f.java b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector4f.java index a2e3b7f9ba1f2646e6c8264b92be922eab67a850..6529c22e44c513946d5803e79933394f5ed790bf 100644 --- a/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector4f.java +++ b/org.fortiss.tooling.graphicsGL.ui/trunk/external-src/org/lwjglx/util/vector/WritableVector4f.java @@ -35,7 +35,7 @@ package org.lwjglx.util.vector; * Writable interface to Vector4fs * @author $author$ * @version $revision$ - * $Id$ + * | | */ public interface WritableVector4f extends WritableVector3f {