Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl
In directory usw-pr-cvs1:/tmp/cvs-serv14462/src/java/org/lwjgl
Modified Files:
Sys.java Math.java
Log Message:
Matrix code started
Index: Sys.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Sys.java 17 Aug 2002 14:11:24 -0000 1.6
+++ Sys.java 19 Aug 2002 11:29:42 -0000 1.7
@@ -79,7 +79,18 @@
}
/** The native library name */
- public static final String LIBRARY_NAME = "lwjgl_d";
+ public static String LIBRARY_NAME;
+
+ static {
+ try {
+ assert false;
+ LIBRARY_NAME = "lwjgl";
+ } catch (AssertionError e) {
+ // Assertions are enabled, so we'll use the debug version of the
+ // library
+ LIBRARY_NAME = "lwjgl_d";
+ }
+ }
/**
* No constructor for Sys.
@@ -162,15 +173,5 @@
* HIGH_PRIORITY, NORMAL_PRIORITY, or LOW_PRIORITY.
*/
public static native void setProcessPriority(int priority);
-
- /**
- * @return the optimum alignment for structures for use by the vector library
- */
- public static native int getFastStructureAlignment();
-
- /**
- * @return the optimum alignment for structure members for use by the vector library
- */
- public static native int getFastMemberAlignment();
-
+
}
Index: Math.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Math.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Math.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Math.java 15 Aug 2002 15:46:18 -0000 1.3
+++ Math.java 19 Aug 2002 11:29:42 -0000 1.4
@@ -48,37 +48,871 @@
static {
System.loadLibrary(Sys.LIBRARY_NAME);
}
-
+
/** Floating point version of pi */
- public static final float PI = (float)java.lang.Math.PI;
-
+ public static final float PI = (float) java.lang.Math.PI;
+
/*
[...1159 lines suppressed...]
+ leftSourceAddress,
+ leftSourceStride,
+ leftElements,
+ leftSourceWidth,
+ leftSourceHeight,
+ transposeLeftSource,
+ rightSourceAddress,
+ rightSourceStride,
+ rightElements,
+ rightSourceWidth,
+ rightSourceHeight,
+ transposeRightSource,
+ destAddress,
+ destStride,
+ transposeDest
+ );
+
+ }
}
|