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
|
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-24 16:33:31
|
Update of /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_cnf In directory usw-pr-cvs1:/tmp/cvs-serv28211/doc/tutorial/_vti_cnf Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_cnf added to the repository |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-24 16:33:30
|
Update of /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_pvt/_vti_cnf In directory usw-pr-cvs1:/tmp/cvs-serv28211/doc/tutorial/_vti_pvt/_vti_cnf Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_pvt/_vti_cnf added to the repository |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-24 16:33:30
|
Update of /cvsroot/java-game-lib/LWJGL/doc/tutorial/images In directory usw-pr-cvs1:/tmp/cvs-serv28211/doc/tutorial/images Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/tutorial/images added to the repository |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-24 16:33:30
|
Update of /cvsroot/java-game-lib/LWJGL/doc/tutorial In directory usw-pr-cvs1:/tmp/cvs-serv28211/doc/tutorial Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/tutorial added to the repository |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-24 16:33:30
|
Update of /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_pvt In directory usw-pr-cvs1:/tmp/cvs-serv28211/doc/tutorial/_vti_pvt Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/tutorial/_vti_pvt added to the repository |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv30257/src/native/common Added Files: org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe.h org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect.h org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe.h org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe.h org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect.h org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect.h org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect.h org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe.h org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect.h org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe.h org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect.h org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe.h .cvsignore org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe.h org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect.h Removed Files: org_lwjgl_Math.h Log Message: New math code --- NEW FILE: org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpAdd_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpAdd_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpNegate_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpNegate_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpInvert_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpInvert_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpMultiply_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpMultiply_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpSubtract_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpSubtract_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpMultiply_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpMultiply_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpInvert_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpInvert_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpNegate_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpNegate_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpCopy_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpCopy_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpNormalise_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpNormalise_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpNormalise_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpNormalise_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpSubtract_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpSubtract_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: .cvsignore --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/.cvsignore Debug --- NEW FILE: org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe */ #ifndef _Included_org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe #define _Included_org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpCopy_MatrixOpSafe * Method: execute * Signature: (IIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpCopy_00024MatrixOpSafe_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- NEW FILE: org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect */ #ifndef _Included_org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect #define _Included_org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_Math_MatrixOpAdd_MatrixOpDirect * Method: execute * Signature: (IIIIIZIIIIIZIIZ)V */ JNIEXPORT void JNICALL Java_org_lwjgl_Math_00024MatrixOpAdd_00024MatrixOpDirect_execute (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean, jint, jint, jint, jint, jint, jboolean, jint, jint, jboolean); #ifdef __cplusplus } #endif #endif --- org_lwjgl_Math.h DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Math.h |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-23 16:16:28
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory usw-pr-cvs1:/tmp/cvs-serv14959/src/java/org/lwjgl Modified Files: Display.java Sys.java Math.java DisplayMode.java Log Message: Mainly Javadoc fixes and Math stuff CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java 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.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Sys.java 19 Aug 2002 14:29:54 -0000 1.9 +++ Sys.java 23 Aug 2002 16:14:21 -0000 1.10 @@ -54,7 +54,7 @@ * inside a process which is already a different priority then this will not * be the initial priority. * - * @see #setProcessPriority() + * @see #setProcessPriority(int) */ public static final int NORMAL_PRIORITY = 0; @@ -70,7 +70,7 @@ * * This priority is <strong>not</strong> recommended for gaming applications. * - * @see #setProcessPriority() + * @see #setProcessPriority(int) */ public static final int REALTIME_PRIORITY = 2; 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.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Math.java 20 Aug 2002 09:29:50 -0000 1.5 +++ Math.java 23 Aug 2002 16:14:21 -0000 1.6 @@ -119,7 +119,7 @@ }; /** Straight copy */ - public static final class MatrixOpCopy extends UnaryMatrixOperation { + private static final class MatrixOpCopy extends UnaryMatrixOperation { MatrixOpCopy() { super(0, "copy"); @@ -183,7 +183,7 @@ public static final MatrixOpCopy MATRIXOP_COPY = new MatrixOpCopy(); /** Negate the vector */ - public static final class MatrixOpNegate extends UnaryMatrixOperation { + private static final class MatrixOpNegate extends UnaryMatrixOperation { MatrixOpNegate() { super(1, "negate"); @@ -247,7 +247,7 @@ public static final MatrixOpNegate MATRIXOP_NEGATE = new MatrixOpNegate(); /** Normalise the vector (set to length 1) */ - public static final class MatrixOpNormalise extends UnaryMatrixOperation { + private static final class MatrixOpNormalise extends UnaryMatrixOperation { MatrixOpNormalise() { super(2, "normalise"); @@ -311,7 +311,7 @@ public static final MatrixOpNormalise MATRIXOP_NORMALISE = new MatrixOpNormalise(); /** Compute the inverse matrix */ - public static final class MatrixOpInvert extends UnaryMatrixOperation { + private static final class MatrixOpInvert extends UnaryMatrixOperation { MatrixOpInvert() { super(3, "invert"); @@ -392,10 +392,11 @@ /** * Check the compatibility of a binary matrix operation. + * @return the miniumum stride, in bytes * @throws IllegalArgumentException if the source and destinations are not * compatible */ - abstract void checkCompatibility( + abstract int checkCompatibility( int leftSourceWidth, int leftSourceHeight, boolean transposeLeftSource, @@ -410,13 +411,13 @@ /** Multiply left source by right source */ - public static final class MatrixOpMultiply extends BinaryMatrixOperation { + private static final class MatrixOpMultiply extends BinaryMatrixOperation { MatrixOpMultiply() { super(0, "multiply"); } - void checkCompatibility( + int checkCompatibility( int leftSourceWidth, int leftSourceHeight, boolean transposeLeftSource, @@ -430,6 +431,9 @@ int rightHeight = transposeRightSource ? rightSourceWidth : rightSourceHeight; if (leftWidth != rightHeight) throw new IllegalArgumentException("Left and right matrices are not compatible."); + int leftHeight = transposeLeftSource ? leftSourceWidth : leftSourceHeight; + int rightWidth = transposeRightSource ? rightSourceHeight : rightSourceWidth; + return (rightWidth * leftHeight) << 2; } MatrixOpClassification classify() { return MATRIXOP_NONE; @@ -502,13 +506,13 @@ public static final MatrixOpMultiply MATRIXOP_MULTIPLY = new MatrixOpMultiply(); /** Add right source to left source */ - public static final class MatrixOpAdd extends BinaryMatrixOperation { + private static final class MatrixOpAdd extends BinaryMatrixOperation { MatrixOpAdd() { super(1, "add"); } - void checkCompatibility( + int checkCompatibility( int leftSourceWidth, int leftSourceHeight, boolean transposeLeftSource, @@ -526,6 +530,7 @@ if (leftSourceWidth != rightSourceHeight || leftSourceHeight != rightSourceWidth) throw new IllegalArgumentException("Left and right matrices are not the same size."); } + return (leftSourceWidth * leftSourceHeight) << 2; } MatrixOpClassification classify() { @@ -599,13 +604,13 @@ public static final MatrixOpAdd MATRIXOP_ADD = new MatrixOpAdd(); /** Subtract right source from left source */ - public static final class MatrixOpSubtract extends BinaryMatrixOperation { + private static final class MatrixOpSubtract extends BinaryMatrixOperation { MatrixOpSubtract() { super(2, "subtract"); } - void checkCompatibility( + int checkCompatibility( int leftSourceWidth, int leftSourceHeight, boolean transposeLeftSource, @@ -615,7 +620,7 @@ boolean transposeDest) { // Same as for add, obviously... - MATRIXOP_ADD.checkCompatibility( + return MATRIXOP_ADD.checkCompatibility( leftSourceWidth, leftSourceHeight, transposeLeftSource, @@ -994,7 +999,7 @@ rightSourceStride = rightSourceWidth * rightSourceHeight; // Ensure the source and destination matrices are compatible - operation.checkCompatibility( + int minStride = operation.checkCompatibility( leftSourceWidth, leftSourceHeight, transposeLeftSource, @@ -1003,10 +1008,8 @@ transposeRightSource, transposeDest); - if (destStride == 0) { - // Calculate the destination stride from the input matrix sizes - - } + if (destStride == 0) + destStride = minStride; // Check unary matrix operation type MatrixOpClassification op = operation.classify().check(leftSourceAddress, leftSourceStride, leftElements, destAddress, destStride); Index: DisplayMode.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/DisplayMode.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/DisplayMode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- DisplayMode.java 15 Aug 2002 15:46:18 -0000 1.2 +++ DisplayMode.java 23 Aug 2002 16:14:38 -0000 1.3 @@ -43,18 +43,18 @@ public final class DisplayMode { - public final int width, height, freq, bpp; + public final int width, height, bpp, freq; /** * Construct a display mode. * * @see Display */ - public DisplayMode(int width, int height, int freq, int bpp) { + public DisplayMode(int width, int height, int bpp, int freq) { this.width = width; this.height = height; - this.freq = freq; this.bpp = bpp; + this.freq = freq; } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-23 16:16:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory usw-pr-cvs1:/tmp/cvs-serv14959/src/java/org/lwjgl/opengl Modified Files: BaseGL.java Log Message: Mainly Javadoc fixes and Math stuff Index: BaseGL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- BaseGL.java 19 Aug 2002 14:01:03 -0000 1.4 +++ BaseGL.java 23 Aug 2002 16:14:10 -0000 1.5 @@ -88,7 +88,7 @@ * @param alphaBits the number of alpha bits (eg. 0 or 8) * @param depthBits the number of depth bits (eg. 16 or 24) * @param stencilBits the number of stencil bits (eg. 0 or 8) - * @see create() + * @see #create() */ public BaseGL(int colorBits, int alphaBits, int depthBits, int stencilBits) { this.colorBits = colorBits; @@ -125,7 +125,7 @@ * created by calling its setDisplayMode() method. * * @return true if the GL was created successfully - * @see org.lwjgl.Display#create() + * @see org.lwjgl.Display#create(org.lwjgl.DisplayMode, boolean) */ private native boolean nCreate(int colorBits, int alphaBits, int depthBits, int stencilBits); @@ -157,7 +157,7 @@ * Finalizer, marked final. To perform specialized cleanup override the * cleanup() method. * - * @see cleanup() + * @see #cleanup() */ public final void finalize() throws Throwable { super.finalize(); |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-20 14:55:35
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory usw-pr-cvs1:/tmp/cvs-serv27405/src/java/org/lwjgl/input Modified Files: GamePad.java Joystick.java Mouse.java Keyboard.java Log Message: Minor adjustments to Javadoc comments Index: GamePad.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/GamePad.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/GamePad.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- GamePad.java 19 Aug 2002 14:01:23 -0000 1.3 +++ GamePad.java 20 Aug 2002 14:55:29 -0000 1.4 @@ -116,7 +116,7 @@ * "Create" the gamepad. The display must first have been created. The * reason for this is so the gamepad has a window to "focus" in. * - * @throw Exception if the gamepad could not be created for any reason + * @throws Exception if the gamepad could not be created for any reason */ public static void create() throws Exception { if (created) Index: Joystick.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Joystick.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Joystick.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Joystick.java 19 Aug 2002 14:01:23 -0000 1.3 +++ Joystick.java 20 Aug 2002 14:55:29 -0000 1.4 @@ -92,7 +92,7 @@ /** * "Create" the joystick. The display must first have been created. - * @throw Exception if the joystick could not be created for any reason + * @throws Exception if the joystick could not be created for any reason */ public static void create() throws Exception { if (created) Index: Mouse.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Mouse.java 19 Aug 2002 14:01:23 -0000 1.5 +++ Mouse.java 20 Aug 2002 14:55:29 -0000 1.6 @@ -90,7 +90,7 @@ /** * "Create" the mouse. The display must first have been created. - * @throw Exception if the mouse could not be created for any reason + * @throws Exception if the mouse could not be created for any reason */ public static void create() throws Exception { if (created) Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Keyboard.java 19 Aug 2002 14:01:23 -0000 1.6 +++ Keyboard.java 20 Aug 2002 14:55:29 -0000 1.7 @@ -224,7 +224,7 @@ * "Create" the keyboard. The display must first have been created. The * reason for this is so the keyboard has a window to "focus" in. * - * @throw Exception if the keyboard could not be created for any reason + * @throws Exception if the keyboard could not be created for any reason */ public static void create() throws Exception { if (created) |
From: Brian M. <ma...@us...> - 2002-08-20 14:46:08
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv23363 Added Files: org_lwjgl_openal_ALC.cpp Log Message: add: first stab at ALC --- NEW FILE: org_lwjgl_openal_ALC.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALC.cpp /* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'Light Weight Java Game Library' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * $Id: org_lwjgl_openal_ALC.cpp,v 1.1 2002/08/20 14:46:04 matzon Exp $ * * This is the actual JNI implementation of the OpenAL context/device library. * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ #include "org_lwjgl_openal_ALUT.h" /* OpenAL includes */ #include <alc.h> /** * This function returns strings related to the context. * * C Specification: * ALubyte * alcGetString(ALCdevice *device, ALenum token); */ JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_getString (JNIEnv *env, jobject obj, jobject device, jint token) { jclass class_device = env->GetObjectClass(device); jfieldID field_device = env->GetFieldID(class_device, "device", "I"); jint deviceaddress = env->GetIntField(obj, field_device); return env->NewStringUTF((const char*) alcGetString((ALCdevice*) deviceaddress, (ALenum) token)); } /** * This function returns integers related to the context. * * C Specification: * ALvoid alcGetIntegerv(ALCdevice *device, ALenum token, ALsizei size, ALint *dest); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_getIntegerv (JNIEnv *env, jobject obj, jobject device, jint token, jint size, jint dest) { jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); alcGetIntegerv((ALCdevice*) deviceaddress, (ALenum) token, (ALsizei) size, (ALint*) dest); } /** * This function opens a device by name. * * C Specification: * ALCdevice *alcOpenDevice( const ALubyte *tokstr ); */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_openDevice (JNIEnv *env, jobject obj, jstring tokstr) { ALubyte* tokenstring = (ALubyte*) (env->GetStringUTFChars(tokstr, 0)); /* get device */ ALCdevice* device = alcOpenDevice(tokenstring); /* get ready to create ALCdevice instance */ jobject alcDevice_object = NULL; jclass alcDevice_class = NULL; jmethodID alcDevice_method = NULL; /* find class and constructor */ alcDevice_class = env->FindClass("org/lwjgl/openal/ALCdevice"); alcDevice_method = env->GetMethodID(alcDevice_class, "<init>", "(I)V"); /* create instance */ alcDevice_object = env->NewObject(alcDevice_class, alcDevice_method, (int) device); /* clean up */ env->ReleaseStringUTFChars((jstring)tokenstring, 0); return alcDevice_object; } /** * This function closes a device by name. * * C Specification: * void alcCloseDevice( ALCdevice *dev ); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_closeDevice (JNIEnv *env, jobject obj, jobject device) { jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); alcCloseDevice((ALCdevice*) deviceaddress); } /** * This function creates a context using a specified device. * * C Specification: * ALCcontext* alcCreateContext( ALCdevice *dev, ALint* attrlist ); */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_createContext (JNIEnv *env, jobject obj, jobject device, jint attrlist) { /* get device address */ jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); ALCcontext* context = alcCreateContext((ALCdevice*) deviceaddress, (ALint*) attrlist); /* get ready to create ALCcontext instance */ jobject alcContext_object = NULL; jclass alcContext_class = NULL; jmethodID alcContext_method = NULL; /* find class and constructor */ alcContext_class = env->FindClass("org/lwjgl/openal/ALCcontext"); alcContext_method = env->GetMethodID(alcContext_class, "<init>", "(I)V"); /* create instance */ alcContext_object = env->NewObject(alcContext_class, alcContext_method, (int) context); return alcContext_object; } /** * This function makes a specified context the current context. * * C Specification: * ALCboolean alcMakeContextCurrent(ALCcontext *context); */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_makeContextCurrent (JNIEnv *env, jobject obj, jobject context) { /* get context address */ jclass context_class = env->GetObjectClass(context); jfieldID context_field = env->GetFieldID(context_class, "context", "I"); jint contextaddress = env->GetIntField(obj, context_field); return alcMakeContextCurrent((ALCcontext*) contextaddress); } /** * This function tells a context to begin processing. * * C Specification: * void alcProcessContext(ALCcontext *context); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_processContext (JNIEnv *env, jobject obj, jobject context) { /* get context address */ jclass context_class = env->GetObjectClass(context); jfieldID context_field = env->GetFieldID(context_class, "context", "I"); jint contextaddress = env->GetIntField(obj, context_field); alcProcessContext((ALCcontext*) contextaddress); } /** * This function retrieves the current context. * * C Specification: * ALCcontext* alcGetCurrentContext( ALvoid ); */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getCurrentContext (JNIEnv *env, jobject obj) { ALCcontext* context = alcGetCurrentContext(); /* get ready to create ALCcontext instance */ jobject alcContext_object = NULL; jclass alcContext_class = NULL; jmethodID alcContext_method = NULL; /* find class and constructor */ alcContext_class = env->FindClass("org/lwjgl/openal/ALCcontext"); alcContext_method = env->GetMethodID(alcContext_class, "<init>", "(I)V"); /* create instance */ alcContext_object = env->NewObject(alcContext_class, alcContext_method, (int) context); return alcContext_object; } /** * This function retrieves the specified contexts device * * C Specification: * ALCdevice* alcGetContextsDevice(ALCcontext *context); */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getContextsDevice (JNIEnv *env, jobject obj, jobject context) { /* get context address */ jclass context_class = env->GetObjectClass(context); jfieldID context_field = env->GetFieldID(context_class, "context", "I"); jint contextaddress = env->GetIntField(obj, context_field); ALCdevice* device = alcGetContextsDevice((ALCcontext*) contextaddress); /* get ready to create ALCdevice instance */ jobject alcDevice_object = NULL; jclass alcDevice_class = NULL; jmethodID alcDevice_method = NULL; /* find class and constructor */ alcDevice_class = env->FindClass("org/lwjgl/openal/ALCdevice"); alcDevice_method = env->GetMethodID(alcDevice_class, "<init>", "(I)V"); /* create instance */ alcDevice_object = env->NewObject(alcDevice_class, alcDevice_method, (int) device); return alcDevice_object; } /** * This function suspends processing on a specified context. * * C Specification: * void alcSuspendContext(ALCcontext *context); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_suspendContext (JNIEnv *env, jobject obj, jobject context) { /* get context address */ jclass context_class = env->GetObjectClass(context); jfieldID context_field = env->GetFieldID(context_class, "context", "I"); jint contextaddress = env->GetIntField(obj, context_field); alcSuspendContext((ALCcontext*) contextaddress); } /** * This function destroys a context. * * C Specification: * void alcDestroyContext(ALCcontext *context); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_destroyContext (JNIEnv *env, jobject obj, jobject context) { /* get context address */ jclass context_class = env->GetObjectClass(context); jfieldID context_field = env->GetFieldID(context_class, "context", "I"); jint contextaddress = env->GetIntField(obj, context_field); alcDestroyContext((ALCcontext*) contextaddress); } /** * This function retrieves the specified devices context error state. * * C Specification: * ALCenum alcGetError(ALCdevice *device); */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError (JNIEnv *env, jobject obj, jobject device) { /* get device address */ jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); return (jint) alcGetError((ALCdevice*) deviceaddress); } /** * This function queries if a specified context extension is available. * * C Specification: * ALboolean alcIsExtensionPresent(ALCdevice *device, ALubyte *extName); */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv *env, jobject obj, jobject device, jstring extName) { /* get device address */ jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); /* get extension */ ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(extName, 0)); jboolean result = (jboolean) alcIsExtensionPresent((ALCdevice*) deviceaddress, functionname); env->ReleaseStringUTFChars((jstring)functionname, 0); return result; } /** * This function retrieves the address of a specified context extension function. * * C Specification: * ALvoid * alcGetProcAddress(ALCdevice *device, ALubyte *funcName); */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getProcAddress (JNIEnv *env, jobject obj, jobject device, jstring funcName) { /* get device address */ jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); /* get extension */ ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(funcName, 0)); jint result = (jint) alcGetProcAddress((ALCdevice*) deviceaddress, functionname); env->ReleaseStringUTFChars((jstring)functionname, 0); return result; } /** * This function retrieves the enum value for a specified enumeration name. * * C Specification: * ALenum alcGetEnumValue(ALCdevice *device, ALubyte *enumName); */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getEnumValue (JNIEnv *env, jobject obj, jobject device, jstring enumName) { /* get device address */ jclass device_class = env->GetObjectClass(device); jfieldID device_field = env->GetFieldID(device_class, "device", "I"); jint deviceaddress = env->GetIntField(obj, device_field); /* get extension */ ALubyte* enumerationname = (ALubyte*) (env->GetStringUTFChars(enumName, 0)); jint result = (jint) alcGetEnumValue((ALCdevice*) deviceaddress, enumerationname); env->ReleaseStringUTFChars((jstring)enumerationname, 0); return result; } |
From: Brian M. <ma...@us...> - 2002-08-20 14:45:34
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv23186 Added Files: org_lwjgl_openal_ALC.h Log Message: add: first stab at ALC --- NEW FILE: org_lwjgl_openal_ALC.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_openal_ALC */ #ifndef _Included_org_lwjgl_openal_ALC #define _Included_org_lwjgl_openal_ALC #ifdef __cplusplus extern "C" { #endif /* * Class: org_lwjgl_openal_ALC * Method: getString * Signature: (Lorg/lwjgl/openal/ALCdevice;I)Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_getString (JNIEnv *, jobject, jobject, jint); /* * Class: org_lwjgl_openal_ALC * Method: getIntegerv * Signature: (Lorg/lwjgl/openal/ALCdevice;III)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_getIntegerv (JNIEnv *, jobject, jobject, jint, jint, jint); /* * Class: org_lwjgl_openal_ALC * Method: openDevice * Signature: (Ljava/lang/String;)Lorg/lwjgl/openal/ALCdevice; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_openDevice (JNIEnv *, jobject, jstring); /* * Class: org_lwjgl_openal_ALC * Method: closeDevice * Signature: (Lorg/lwjgl/openal/ALCdevice;)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_closeDevice (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: createContext * Signature: (Lorg/lwjgl/openal/ALCdevice;I)Lorg/lwjgl/openal/ALCcontext; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_createContext (JNIEnv *, jobject, jobject, jint); /* * Class: org_lwjgl_openal_ALC * Method: makeContextCurrent * Signature: (Lorg/lwjgl/openal/ALCcontext;)Z */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_makeContextCurrent (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: processContext * Signature: (Lorg/lwjgl/openal/ALCcontext;)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_processContext (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: getCurrentContext * Signature: ()Lorg/lwjgl/openal/ALCcontext; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getCurrentContext (JNIEnv *, jobject); /* * Class: org_lwjgl_openal_ALC * Method: getContextsDevice * Signature: (Lorg/lwjgl/openal/ALCcontext;)Lorg/lwjgl/openal/ALCdevice; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getContextsDevice (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: suspendContext * Signature: (Lorg/lwjgl/openal/ALCcontext;)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_suspendContext (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: destroyContext * Signature: (Lorg/lwjgl/openal/ALCcontext;)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_destroyContext (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: getError * Signature: (Lorg/lwjgl/openal/ALCdevice;)I */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError (JNIEnv *, jobject, jobject); /* * Class: org_lwjgl_openal_ALC * Method: isExtensionPresent * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv *, jobject, jobject, jstring); /* * Class: org_lwjgl_openal_ALC * Method: getProcAddress * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getProcAddress (JNIEnv *, jobject, jobject, jstring); /* * Class: org_lwjgl_openal_ALC * Method: getEnumValue * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getEnumValue (JNIEnv *, jobject, jobject, jstring); #ifdef __cplusplus } #endif #endif |
From: Brian M. <ma...@us...> - 2002-08-20 14:44:41
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory usw-pr-cvs1:/tmp/cvs-serv22824 Added Files: ALC.java ALCcontext.java ALCdevice.java Log Message: add: first stab at ALC --- NEW FILE: ALC.java --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java /* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'Light Weight Java Game Library' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.lwjgl.openal; /** * $Id: ALC.java,v 1.1 2002/08/20 14:44:35 matzon Exp $ * * This is the context class for OpenAL. This class implements functions * in alc.h * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ public class ALC { static { try { System.loadLibrary(org.lwjgl.Sys.getLibraryName()); } catch (UnsatisfiedLinkError ule) { System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.getLibraryName()); ule.printStackTrace(); } } /** Creates a new instance of ALC */ public ALC() { } /** * Returns strings related to the context. * * @param device ALCdevice to query * @param pname Property to get * @return String property from device */ public native String getString(ALCdevice device, int pname); /** * Returns integers related to the context. * * @param device ALCdevice to query * @param pname Property to get * @param size Size of destination buffer provided * @param integerdata address of ByteBuffer to write integers to */ public native void getIntegerv(ALCdevice device, int pname, int size, int integerdata); /** * Opens the named device. If null is specied, the implementation will * provide an implementation specic default. * * @param devicename name of device to open * @return opened device, or null */ public native ALCdevice openDevice(String devicename); /** * Closes the supplied device. * * @param device ALCdevice to close */ public native void closeDevice(ALCdevice device); /** * Creates a context using a specified device. * * @param device ALCdevice to associate context to * @param attrList address of ByteBuffer to read attributes from * @return New context, or null if creation failed */ public native ALCcontext createContext(ALCdevice device, int attrList); /** * Makes the supplied context the current one * * @param context ALCcontext to make current * @return true if successfull, false if not */ public native boolean makeContextCurrent(ALCcontext context); /** * Tells a context to begin processing. * * @param context context that should begin processing */ public native void processContext(ALCcontext context); /** * Gets the current context * * @return Current ALCcontext */ public native ALCcontext getCurrentContext(); /** * Retrives the device associated with the supplied context * * @param context ALCcontext to get device for * @param ALCdevice associated with context */ public native ALCdevice getContextsDevice(ALCcontext context); /** * Suspends processing on supplied context * * @param context ALCcontext to suspend */ public native void suspendContext(ALCcontext context); /** * Destroys supplied context * * @param context ALCcontext to Destroy */ public native void destroyContext(ALCcontext context); /** * Retrieves the current context error state. * * @param device ALDdevice associated with context * @return Errorcode from ALC statemachine */ public native int getError(ALCdevice device); /** * Query if a specified context extension is available. * * @param device device to query for extension * @param extName name of extension to find * @return true if extension is available, false if not */ public native boolean isExtensionPresent(ALCdevice device, String extName); /** * Retrieves the address of a specified context extension function. * * @param device device to query * @param extName name of extension to find * @return address of function */ public native int getProcAddress(ALCdevice device, String extName); /** * retrieves the enum value for a specified enumeration name. * * @param device Device to query * @param enumName name of enum to find * @return value of enumeration */ public native int getEnumValue(ALCdevice device, String enumName); } --- NEW FILE: ALCcontext.java --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALCcontext.java /* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'Light Weight Java Game Library' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.lwjgl.openal; /** * $Id: ALCcontext.java,v 1.1 2002/08/20 14:44:35 matzon Exp $ * * Wrapper class, to make ALC contexts behave like the orginal api. * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ public class ALCcontext { /** address of actual context */ public final int context; /** * Creates a new instance of ALCcontext * * @param context address of actual context */ public ALCcontext(int context) { this.context = context; } } --- NEW FILE: ALCdevice.java --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALCdevice.java /* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'Light Weight Java Game Library' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.lwjgl.openal; /** * $Id: ALCdevice.java,v 1.1 2002/08/20 14:44:35 matzon Exp $ * * Wrapper class, to make ALC devices behave like the orginal api. * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ public class ALCdevice { /** address of actual device */ public final int device; /** * Creates a new instance of ALCdevice * * @param device address of actual device */ public ALCdevice(int device) { this.device = device; } } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-20 09:29:56
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory usw-pr-cvs1:/tmp/cvs-serv23898/src/java/org/lwjgl Modified Files: Math.java Log Message: Ready for native code 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.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Math.java 19 Aug 2002 11:29:42 -0000 1.4 +++ Math.java 20 Aug 2002 09:29:50 -0000 1.5 @@ -46,7 +46,7 @@ public final class Math { static { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); } /** Floating point version of pi */ @@ -136,43 +136,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int sourceAddress, - int sourceStride, - int numElements, - int sourceWidth, - int sourceHeight, - boolean transposeSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -181,22 +155,19 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; - + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -205,10 +176,9 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpCopy MATRIXOP_COPY = new MatrixOpCopy(); @@ -230,43 +200,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int sourceAddress, - int sourceStride, - int numElements, - int sourceWidth, - int sourceHeight, - boolean transposeSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -275,22 +219,19 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; - + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -299,10 +240,9 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpNegate MATRIXOP_NEGATE = new MatrixOpNegate(); @@ -324,43 +264,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int sourceAddress, - int sourceStride, - int numElements, - int sourceWidth, - int sourceHeight, - boolean transposeSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -369,22 +283,19 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; - + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -393,10 +304,9 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpNormalise MATRIXOP_NORMALISE = new MatrixOpNormalise(); @@ -418,43 +328,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int sourceAddress, - int sourceStride, - int numElements, - int sourceWidth, - int sourceHeight, - boolean transposeSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -463,22 +347,19 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; - + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int sourceAddress, int sourceStride, int numElements, @@ -487,10 +368,9 @@ boolean transposeSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpInvert MATRIXOP_INVERT = new MatrixOpInvert(); @@ -562,49 +442,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int leftSourceAddress, - int leftSourceStride, - int leftElements, - int leftSourceWidth, - int leftSourceHeight, - boolean transposeLeftSource, - int rightSourceAddress, - int rightSourceStride, - int rightElements, - int rightSourceWidth, - int rightSourceHeight, - boolean transposeRightSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int leftSourceAddress, int leftSourceStride, int leftElements, @@ -619,22 +467,20 @@ boolean transposeRightSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int leftSourceAddress, int leftSourceStride, int leftElements, @@ -649,10 +495,9 @@ boolean transposeRightSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpMultiply MATRIXOP_MULTIPLY = new MatrixOpMultiply(); @@ -694,49 +539,17 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( - int leftSourceAddress, - int leftSourceStride, - int leftElements, - int leftSourceWidth, - int leftSourceHeight, - boolean transposeLeftSource, - int rightSourceAddress, - int rightSourceStride, - int rightElements, - int rightSourceWidth, - int rightSourceHeight, - boolean transposeRightSource, - int destAddress, - int destStride, - boolean transposeDest) - { - } - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } - void execute( + native void execute( int leftSourceAddress, int leftSourceStride, int leftElements, @@ -751,22 +564,20 @@ boolean transposeRightSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - void execute( + native void execute( int leftSourceAddress, int leftSourceStride, int leftElements, @@ -781,10 +592,9 @@ boolean transposeRightSource, int destAddress, int destStride, - boolean transposeDest) - { - } + boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpAdd MATRIXOP_ADD = new MatrixOpAdd(); @@ -826,46 +636,16 @@ protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } }; /** * A matrix operation is direct if the source and destination addresses * are the same, and the strides are the same. */ - private final MatrixOpClassification MATRIXOP_DIRECT = new MatrixOpClassification() { - protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } - protected MatrixOpClassification safe() { return this; } - protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } - native void execute( - int leftSourceAddress, - int leftSourceStride, - int leftElements, - int leftSourceWidth, - int leftSourceHeight, - boolean transposeLeftSource, - int rightSourceAddress, - int rightSourceStride, - int rightElements, - int rightSourceWidth, - int rightSourceHeight, - boolean transposeRightSource, - int destAddress, - int destStride, - boolean transposeDest); - }; - - - /** - * A matrix operation is offset if source > destination, and the - * strides are the same - */ - private final MatrixOpClassification MATRIXOP_OFFSET = new MatrixOpClassification() { + private final class MatrixOpDirect extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return this; } protected MatrixOpClassification direct() { return this; } - protected MatrixOpClassification offset() { return this; } native void execute( int leftSourceAddress, int leftSourceStride, @@ -883,17 +663,17 @@ int destStride, boolean transposeDest); }; + private final MatrixOpDirect MATRIXOP_DIRECT = new MatrixOpDirect(); /** * A matrix operation is safe if the source and destination do not * overlap in any way */ - private final MatrixOpClassification MATRIXOP_SAFE = new MatrixOpClassification() { + private final class MatrixOpSafe extends MatrixOpClassification { protected MatrixOpClassification unsafe() { return MATRIXOP_UNSAFE; } protected MatrixOpClassification safe() { return MATRIXOP_SAFE; } protected MatrixOpClassification direct() { return MATRIXOP_DIRECT; } - protected MatrixOpClassification offset() { return MATRIXOP_OFFSET; } native void execute( int leftSourceAddress, int leftSourceStride, @@ -911,6 +691,7 @@ int destStride, boolean transposeDest); }; + private final MatrixOpSafe MATRIXOP_SAFE = new MatrixOpSafe(); }; public static final MatrixOpSubtract MATRIXOP_SUBTRACT = new MatrixOpSubtract(); @@ -998,8 +779,6 @@ abstract MatrixOpClassification unsafe(); abstract MatrixOpClassification safe(); abstract MatrixOpClassification direct(); - abstract MatrixOpClassification offset(); - /** * Execute a unary matrix operation. * The default implementation does nothing. @@ -1055,7 +834,7 @@ if (destAddress > sourceAddress || sourceStride != destStride) return unsafe(); else if (destAddress < sourceAddress) - return offset(); + return safe(); else return direct(); |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 14:29:57
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory usw-pr-cvs1:/tmp/cvs-serv12471/src/java/org/lwjgl Modified Files: Sys.java Log Message: Encapsulated LIBRARY_NAME (properly!) 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.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Sys.java 19 Aug 2002 13:59:16 -0000 1.8 +++ Sys.java 19 Aug 2002 14:29:54 -0000 1.9 @@ -74,10 +74,6 @@ */ public static final int REALTIME_PRIORITY = 2; - static { - initialize(); - } - /** The native library name */ private static String LIBRARY_NAME; @@ -89,6 +85,8 @@ // Assertions are enabled, so we'll use the debug version of the // library LIBRARY_NAME = "lwjgl_d"; + } finally { + initialize(); } } |
From: Brian M. <ma...@us...> - 2002-08-19 14:02:58
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory usw-pr-cvs1:/tmp/cvs-serv1716 Modified Files: ALUT.java BaseAL.java Log Message: fix: now uses getLibraryName() for determening lib to load Index: ALUT.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUT.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUT.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ALUT.java 18 Aug 2002 13:57:28 -0000 1.4 +++ ALUT.java 19 Aug 2002 14:02:54 -0000 1.5 @@ -44,9 +44,9 @@ static { try { - System.loadLibrary(org.lwjgl.Sys.LIBRARY_NAME); + System.loadLibrary(org.lwjgl.Sys.getLibraryName()); } catch (UnsatisfiedLinkError ule) { - System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.LIBRARY_NAME); + System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.getLibraryName()); ule.printStackTrace(); } } Index: BaseAL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/BaseAL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/BaseAL.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- BaseAL.java 15 Aug 2002 15:14:42 -0000 1.2 +++ BaseAL.java 19 Aug 2002 14:02:55 -0000 1.3 @@ -46,9 +46,9 @@ public abstract class BaseAL { static { try { - System.loadLibrary(org.lwjgl.Sys.LIBRARY_NAME); + System.loadLibrary(org.lwjgl.Sys.getLibraryName()); } catch (UnsatisfiedLinkError ule) { - System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.LIBRARY_NAME); + System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.getLibraryName()); ule.printStackTrace(); } } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 14:01:25
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory usw-pr-cvs1:/tmp/cvs-serv1165/src/java/org/lwjgl/input Modified Files: GamePad.java Joystick.java Mouse.java Keyboard.java Log Message: Encapsulated LIBRARY_NAME Index: GamePad.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/GamePad.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/GamePad.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- GamePad.java 15 Aug 2002 16:19:01 -0000 1.2 +++ GamePad.java 19 Aug 2002 14:01:23 -0000 1.3 @@ -103,7 +103,7 @@ * Static initialization */ private static void initialize() { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); initIDs(); } Index: Joystick.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Joystick.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Joystick.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Joystick.java 15 Aug 2002 16:19:01 -0000 1.2 +++ Joystick.java 19 Aug 2002 14:01:23 -0000 1.3 @@ -81,7 +81,7 @@ * Static initialization */ private static void initialize() { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); initIDs(); } Index: Mouse.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Mouse.java 15 Aug 2002 15:42:08 -0000 1.4 +++ Mouse.java 19 Aug 2002 14:01:23 -0000 1.5 @@ -79,7 +79,7 @@ * Static initialization */ private static void initialize() { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); initIDs(); } Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Keyboard.java 15 Aug 2002 16:19:01 -0000 1.5 +++ Keyboard.java 19 Aug 2002 14:01:23 -0000 1.6 @@ -211,7 +211,7 @@ * Static initialization */ private static void initialize() { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); initIDs(); } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 14:01:06
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory usw-pr-cvs1:/tmp/cvs-serv978/src/java/org/lwjgl/opengl Modified Files: BaseGL.java GL.java GLU.java CoreGL.java Log Message: Encapsulated LIBRARY_NAME Index: BaseGL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- BaseGL.java 15 Aug 2002 16:18:12 -0000 1.3 +++ BaseGL.java 19 Aug 2002 14:01:03 -0000 1.4 @@ -53,7 +53,7 @@ abstract class BaseGL { static { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); } /** The current rendering context */ Index: GL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GL.java 17 Aug 2002 14:10:06 -0000 1.5 +++ GL.java 19 Aug 2002 14:01:03 -0000 1.6 @@ -1443,10 +1443,6 @@ int outZ, int outW); - static { - System.loadLibrary(Sys.LIBRARY_NAME); - } - /* * Available extensions */ Index: GLU.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLU.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLU.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- GLU.java 16 Aug 2002 21:53:02 -0000 1.4 +++ GLU.java 19 Aug 2002 14:01:03 -0000 1.5 @@ -45,7 +45,7 @@ public class GLU implements GLUConstants { static { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); } /** Handle to GL */ Index: CoreGL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CoreGL.java 15 Aug 2002 16:18:12 -0000 1.3 +++ CoreGL.java 19 Aug 2002 14:01:03 -0000 1.4 @@ -44,10 +44,6 @@ */ public class CoreGL extends BaseGL implements CoreGLConstants { - static { - System.loadLibrary(Sys.LIBRARY_NAME); - } - /** * Constructor for CoreGL. */ |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 13:59:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory usw-pr-cvs1:/tmp/cvs-serv376/src/java/org/lwjgl Modified Files: Display.java Sys.java Log Message: Encapsulated LIBRARY_NAME Index: Display.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Display.java 15 Aug 2002 15:46:18 -0000 1.4 +++ Display.java 19 Aug 2002 13:59:16 -0000 1.5 @@ -46,7 +46,7 @@ public final class Display { static { - System.loadLibrary(Sys.LIBRARY_NAME); + System.loadLibrary(Sys.getLibraryName()); } /** Has the display been created? */ 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.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Sys.java 19 Aug 2002 11:29:42 -0000 1.7 +++ Sys.java 19 Aug 2002 13:59:16 -0000 1.8 @@ -79,7 +79,7 @@ } /** The native library name */ - public static String LIBRARY_NAME; + private static String LIBRARY_NAME; static { try { @@ -90,6 +90,13 @@ // library LIBRARY_NAME = "lwjgl_d"; } + } + + /** + * @return the name of the native library to load + */ + public static String getLibraryName() { + return LIBRARY_NAME; } /** |
From: Brian M. <ma...@us...> - 2002-08-19 13:55:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory usw-pr-cvs1:/tmp/cvs-serv31567 Modified Files: CoreAL.java Log Message: fix: wrong prototypes for some methods, while switching to ByteBuffer Index: CoreAL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/CoreAL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/CoreAL.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- CoreAL.java 19 Aug 2002 11:59:31 -0000 1.6 +++ CoreAL.java 19 Aug 2002 13:55:23 -0000 1.7 @@ -218,17 +218,17 @@ * Gets an integer property of the listener. * * @param pname name of the attribute to be retrieved - * @return integer value of property + * @param integerdata bytebuffer address to write integer to */ - public native int getListeneri(int pname); + public native void getListeneri(int pname, int integerdata); /** * Gets a floating point property of the listener. * * @param pname name of the attribute to be retrieved - * @return floating point value of property + * @param floatdata bytebuffer address to write float to */ - public native float getListenerf(int pname); + public native void getListenerf(int pname, int floatdata); /** * Retrieves a set of three floating point values from a @@ -238,7 +238,6 @@ * @param v1 bytebuffer address to write float 1 to * @param v2 bytebuffer address to write float 2 to * @param v3 bytebuffer address to write float 3 to - * @return array of floats containing floating point values */ public native void getListener3f(int pname, int v1, int v2, int v3); @@ -317,27 +316,29 @@ * * @param source source to get property from * @param pname name of property - * @return integer value of pname + * @param integerdata bytebuffer address to write integer to */ - public native int getSourcei(int source, int pname); + public native void getSourcei(int source, int pname, int integerdata); /** * Retrieves a floating point property of a source. * * @param source source to get property from * @param pname name of property - * @return integer value of pname + * @param floatdata bytebuffer address to write float to */ - public native float getSourcef(int source, int pname); + public native void getSourcef(int source, int pname, int floatdata); /** * Gets a set of three floating point values from a source. * * @param source Source to get property from * @param pname property to get - * @param floatdata bytebuffer address to write floats to + * @param v1 bytebuffer address to write float 1 to + * @param v2 bytebuffer address to write float 2 to + * @param v3 bytebuffer address to write float 3 to */ - public native void getSource3f(int source, int pname, int floatdata); + public native void getSource3f(int source, int pname, int v1, int v2, int v3); /** * Gets a floating point vector property from a Source object. @@ -448,18 +449,18 @@ * * @param buffer buffer to get property from * @param pname name of property to retrieve - * @return integer property of buffer + * @param integerdata bytebuffer address to write integer to */ - public native int getBufferi(int buffer, int pname); + public native void getBufferi(int buffer, int pname, int integerdata); /** * Retrieves a floating point property from a buffer. * * @param buffer buffer to get property from * @param pname name of property to retrieve - * @return floating point property of buffer + * @param floatdata bytebuffer address to write float to */ - public native float getBufferf(int buffer, int pname); + public native void getBufferf(int buffer, int pname, int floatdata); /** * Queues a set of buffers on a source. |
From: Brian M. <ma...@us...> - 2002-08-19 13:54:37
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv31230 Modified Files: org_lwjgl_openal_CoreAL.cpp Log Message: basic al support complete Index: org_lwjgl_openal_CoreAL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_CoreAL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_CoreAL.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_openal_CoreAL.cpp 15 Aug 2002 15:41:38 -0000 1.1 +++ org_lwjgl_openal_CoreAL.cpp 19 Aug 2002 13:54:34 -0000 1.2 @@ -45,14 +45,128 @@ #include <al.h> /** - * This function returns the current error state and then clears the error state. + * This function enables a feature of the OpenAL driver. + * + * C Specification: + * ALvoid alEnable(ALenum capability); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_enable (JNIEnv *env, jobject obj, jint capability) { + alEnable((ALenum) capability); +} + +/** + * This function disables a feature of the OpenAL driver. + * + * C Specification: + * ALvoid alDisable(ALenum capability); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_disable (JNIEnv *env, jobject obj, jint capability) { + alDisable((ALenum) capability); +} + +/** + * This function returns a boolean indicating if a specific feature is enabled in the OpenAL driver. * * C Specification: - * ALenum alGetError(ALvoid); + * Alboolean alIsEnabled(ALenum capability); */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError (JNIEnv *env, jobject obj) { - return alGetError(); +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isEnabled (JNIEnv *env, jobject obj, jint capability) { + return (jboolean) alIsEnabled((ALenum) capability); +} + +/** + * This function Enables a feature of the OpenAL driver. + * + * C Specification + * ALvoid alHint(ALenum target, ALenum mode); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_hint (JNIEnv *env, jobject obj, jint target, jint mode) { + //alHint((ALint)target, (ALint)mode); + //cannot link with above statement + return; +} + + +/** + * This function returns a boolean OpenAL state. + * + * C Specification: + * Alboolean alGetBoolean(ALenum pname); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_getBoolean (JNIEnv *env, jobject obj, jint pname) { + return (jboolean) alGetBoolean((ALenum) pname); +} + +/** + * This function returns an integer OpenAL state. + * + * C Specification: + * Alint alGetInteger(ALenum pname); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getInteger (JNIEnv *env, jobject obj, jint pname) { + return (jint) alGetInteger((ALenum) pname); +} + +/** + * This function returns a floating point OpenAL state. + * + * C Specification: + * ALfloat alGetFloat(ALenum pname); + */ +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getFloat (JNIEnv *env, jobject obj, jint pname) { + return (jfloat) alGetFloat((ALenum) pname); +} + +/** + * This function returns a double precision floating point OpenAL state. + * + * C Specification: + * Aldouble alGetDouble(ALenum pname); + */ +JNIEXPORT jdouble JNICALL Java_org_lwjgl_openal_CoreAL_getDouble (JNIEnv *env, jobject obj, jint pname) { + return (jdouble) alGetDouble((ALenum) pname); +} + +/** + * This function retrieves a boolean OpenAL state. + * + * C Specification: + * ALvoid alGetBooleanv(ALenum pname,ALboolean *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBooleanv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetBooleanv((ALenum) pname, (ALboolean*) data); } + +/** + * This function retrieves an integer OpenAL state. + * + * C Specification: + * ALvoid alGetIntegerv(ALenum pname,ALint *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getIntegerv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetIntegerv((ALenum) pname, (ALint*) data); +} + +/** + * This function retrieves a floating point OpenAL state. + * + * C Specification: + * ALvoid alGetFloatv(ALenum pname,ALfloat *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getFloatv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetFloatv((ALenum) pname, (ALfloat*) data); +} + +/** + * This function retrieves a double precision floating point OpenAL state. + * + * C Specification: + * ALvoid alGetDoublev(ALenum pname,ALdouble *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getDoublev (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetDoublev((ALenum) pname, (ALdouble*) data); +} + /** * This function retrieves an OpenAL string property. * @@ -60,20 +174,141 @@ * ALubyte * alGetString(ALenum pname); */ JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_CoreAL_getString (JNIEnv *env, jobject obj, jint param) { - return env->NewStringUTF((const char*) alGetString(param)); + return env->NewStringUTF((const char*) alGetString((ALenum)param)); } /** - * This function generates one or more buffers. + * This function returns the current error state and then clears the error state. + * + * C Specification: + * ALenum alGetError(ALvoid); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError (JNIEnv *env, jobject obj) { + return (jint) alGetError(); +} + +/** + * This function tests if a specific extension is available for the OpenAL driver. + * + * C Specification: + * ALboolean alIsExtensionPresent(ALubyte *extName); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent (JNIEnv *env, jobject obj, jstring fname) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(fname, 0)); + jboolean result = (jboolean) alIsExtensionPresent(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function returns the address of an OpenAL extension function. + * + * C Specification: + * ALvoid * alGetProcAddress(ALubyte *funcName); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getProcAddress (JNIEnv *env, jobject obj, jstring fname) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(fname, 0)); + jint result = (jint) alGetProcAddress(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function returns the enumeration value of an OpenAL enum described by a string. + * + * C Specification: + * ALenum alGetEnumValue(ALubyte *enumName); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getEnumValue (JNIEnv *env, jobject obj, jstring ename) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(ename, 0)); + jint result = (jint) alGetEnumValue(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function sets an integer property of the listener. + * + * C Specification: + * ALvoid alListeneri(ALenum pname,ALint value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listeneri (JNIEnv *env, jobject obj, jint pname, jint value) { + alListeneri((ALenum) pname, (ALint) value); +} + +/** + * This function sets a floating point property for the listener. + * + * C Specification: + * ALvoid alListenerf(ALenum pname,ALfloat value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerf (JNIEnv *env, jobject obj, jint pname, jfloat value) { + alListenerf((ALenum) pname, (ALfloat) value); +} + +/** + * This function sets a floating point property for the listener. * * C Specification: - * ALvoid alGenBuffers(ALsizei n,ALuint *buffers); + * ALvoid alListener3f(ALenum pname,ALfloat v1,ALfloat v2,ALfloat v3); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers (JNIEnv *env, jobject obj, jint n, jintArray buffers) { - int* array = (int*) env->GetIntArrayElements(buffers, 0); - alGenBuffers(n, (ALuint*) array); - env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listener3f (JNIEnv *env, jobject obj, jint pname, jfloat v1, jfloat v2, jfloat v3) { + alListener3f((ALenum) pname, (ALfloat) v1, (ALfloat) v2, (ALfloat) v3); +} + +/** + * This function sets a floating point-vector property of the listener. + * + * C Specification: + * ALvoid alListenerfv(ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerfv (JNIEnv *env, jobject obj, jint pname, jint values) { + alListenerfv((ALenum) pname, (ALfloat*) values); +} + +/** + * This function retrieves an integer property of the listener. + * + * C Specification: + * ALvoid alGetListeneri(ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListeneri (JNIEnv *env, jobject obj, jint pname, jint value) { + alGetListeneri((ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of the listener. + * + * C Specification: + * ALvoid alGetListenerf(ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerf (JNIEnv *env, jobject obj, jint pname, jint value) { + alGetListenerf((ALenum) pname, (ALfloat*) value); } + +/** + * This function retrieves a set of three floating point values from a property of the listener. + * + * C Specification: + * ALvoid alGetListener3f(ALenum pname,ALfloat *v1,ALfloat *v2,ALfloat *v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListener3f (JNIEnv *env, jobject obj, jint pname, jint v1, jint v2, jint v3) { + alGetListener3f((ALenum) pname, (ALfloat*) v1, (ALfloat*) v2, (ALfloat*) v3); +} + +/** + * This function retrieves a floating point-vector property of the listener. + * + * C Specification: + * ALvoid alGetListenerfv(ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerfv (JNIEnv *env, jobject obj, jint pname, jint values) { + alGetListenerfv((ALenum) pname, (ALfloat*) values); +} + /** * This function generates one or more sources. * @@ -87,13 +322,25 @@ } /** - * This function fills a buffer with audio data. + * This function deletes one or more sources. * * C Specification: - * ALvoid alBufferData(ALuint buffer,ALenum format,ALvoid *data,ALsizei size,ALsizei freq); + * ALvoid alDeleteSources(ALsizei n,ALuint *sources); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData (JNIEnv *env, jobject obj, jint buffer, jint format, jint data, jint size, jint freq) { - alBufferData(buffer, format, (void**) data, size, freq); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources (JNIEnv *env, jobject obj, jint n, jintArray source) { + int* array = (int*) env->GetIntArrayElements(source, 0); + alDeleteSources(n, (ALuint*) array); + env->ReleaseIntArrayElements(source, (jint*) array, 0); +} + +/** + * This function tests if a source name is valid. + * + * C Specification: + * Alboolean alIsSource(ALuint source); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isSource (JNIEnv *env, jobject obj, jint source) { + return (jboolean) alIsSource((ALuint) source); } /** @@ -102,8 +349,124 @@ * C Specification: * ALvoid alSourcei(ALuint source,ALenum pname,ALint value); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcei (JNIEnv *env, jobject obj, jint source, jint param, jint value) { - alSourcei(source, param, value); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcei (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alSourcei((ALuint) source, (ALenum) pname, (ALint) value); +} + +/** + * This function sets a floating point property of a source. + * + * C Specification: + * ALvoid alSourcef(ALuint source,ALenum pname,ALfloat value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcef (JNIEnv *env, jobject obj, jint source, jint pname, jfloat value) { + alSourcef((ALuint) source, (ALenum) pname, (ALfloat) value); +} + +/** + * This function sets a source property requiring three floating point values. + * C Specification: + * ALvoid alSource3f(ALuint source,ALenum pname,ALfloat v1,ALfloat v2,ALfloat v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_source3f (JNIEnv *env, jobject obj, jint source, jint pname, jfloat v1, jfloat v2, jfloat v3) { + alSource3f((ALuint) source, (ALenum) pname, (ALfloat) v1, (ALfloat) v2, (ALfloat) v3); +} + +/** + * This function sets a floating point-vector property of a source. + * + * C Specification: + * ALvoid alSourcefv(ALuint source,ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcefv (JNIEnv *env, jobject obj, jint source, jint pname, jint values) { + alSourcefv((ALuint) source, (ALenum) pname, (ALfloat*) values); +} + +/** + * This function retrieves an integer property of a source. + * C Specification: + * ALvoid alGetSourcei(ALuint source,ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcei (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alGetSourcei((ALuint) source, (ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of a source. + * + * C Specification: + * ALvoid alGetSourcef(ALuint source,ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcef (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alGetSourcef((ALuint) source, (ALenum) pname, (ALfloat*) value); +} + +/* + * This function retrieves a set of three floating point values from a property of a source. + * + * C Specification: + * ALvoid alGetSource3f(ALuint source, ALenum param, ALfloat* v1, ALfloat* v2, ALfloat* v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSource3f (JNIEnv *env, jobject obj, jint source, jint pname, jint v1, jint v2, jint v3) { + alGetSource3f((ALuint) source, (ALenum) pname, (ALfloat*) v1, (ALfloat*) v2, (ALfloat*) v3); +} + +/** + * This function retrieves a floating point-vector property of a source. + * + * C Specification: + * ALvoid alGetSourcefv(ALuint source,ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcefv (JNIEnv *env, jobject obj, jint source, jint pname, jint values) { + alGetSourcefv((ALuint) source, (ALenum) pname, (ALfloat*) values); +} + +/** + * This function plays a set of sources. + * + * C Specification: + * ALvoid alSourcePlayv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePlayv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourcePlayv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function pauses a set of sources. + * + * C Specification: + * ALvoid alSourcePausev(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePausev (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourcePausev(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function stops a set of sources. + * + * C Specification: + * ALvoid alSourceStopv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceStopv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourceStopv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function stops a set of sources and sets all their states to AL_INITIAL. + * + * C Specification: + * ALvoid alSourceRewindv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewindv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourceRewindv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); } /** @@ -113,7 +476,17 @@ * ALvoid alSourcePlay(ALuint source); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePlay (JNIEnv *env, jobject obj, jint source) { - alSourcePlay(source); + alSourcePlay((ALuint) source); +} + +/* + * This function pauses a source. + * + * C Specification: + * ALvoid alSourcePause(ALuint source); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePause (JNIEnv *env, jobject obj, jint source) { + alSourcePause((ALuint) source); } /** @@ -123,19 +496,29 @@ * ALvoid alSourceStop(ALuint source); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceStop (JNIEnv *env, jobject obj, jint source) { - alSourceStop(source); + alSourceStop((ALuint) source); } /** - * This function deletes one or more sources. + * This function stops the source and sets its state to AL_INITIAL. * * C Specification: - * ALvoid alDeleteSources(ALsizei n,ALuint *sources); + * ALvoid alSourceRewind(ALuint source); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources (JNIEnv *env, jobject obj, jint n, jintArray source) { - int* array = (int*) env->GetIntArrayElements(source, 0); - alDeleteSources(n, (ALuint*) array); - env->ReleaseIntArrayElements(source, (jint*) array, 0); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewind (JNIEnv *env, jobject obj, jint source) { + alSourceRewind((ALuint) source); +} + +/** + * This function generates one or more buffers. + * + * C Specification: + * ALvoid alGenBuffers(ALsizei n,ALuint *buffers); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers (JNIEnv *env, jobject obj, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alGenBuffers(n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); } /** @@ -148,4 +531,103 @@ int* array = (int*) env->GetIntArrayElements(buffer, 0); alDeleteBuffers(n, (ALuint*) array); env->ReleaseIntArrayElements(buffer, (jint*) array, 0); -} \ No newline at end of file +} + +/** + * This function tests if a buffer name is valid. + * + * C Specification: + * Alboolean alIsBuffer(ALuint buffer); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isBuffer (JNIEnv *env, jobject obj, jint buffer) { + return (jboolean) alIsBuffer((ALuint) buffer); +} + +/** + * This function fills a buffer with audio data. + * + * C Specification: + * ALvoid alBufferData(ALuint buffer,ALenum format,ALvoid *data,ALsizei size,ALsizei freq); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData (JNIEnv *env, jobject obj, jint buffer, jint format, jint data, jint size, jint freq) { + alBufferData(buffer, format, (void**) data, size, freq); +} + +/** + * This function retrieves an integer property of a buffer. + * + * C Specification: + * ALvoid alGetBufferi(ALuint buffer,ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferi (JNIEnv *env, jobject obj, jint buffer, jint pname, jint value) { + alGetBufferi((ALuint) buffer, (ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of a buffer. + * + * C Specification: + * ALvoid alGetBufferf(ALuint buffer,ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferf (JNIEnv *env, jobject obj, jint buffer, jint pname, jint value) { + alGetBufferf((ALuint) buffer, (ALenum) pname, (ALfloat*) value); +} + +/** + * This function queues a set of buffers on a source. + * + * C Specification: + * ALvoid alSourceQueueBuffers( ALuint source, ALsizei n, ALuint* buffers ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceQueueBuffers (JNIEnv *env, jobject obj, jint source, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alSourceQueueBuffers((ALuint) source, (ALsizei) n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +} + +/** + * This function unqueues a set of buffers attached to a source. + * + * C Specification: + * ALvoid alSourceUnqueueBuffers( ALuint source, ALsizei n, ALuint* buffers ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceUnqueueBuffers (JNIEnv *env, jobject obj, jint source, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alSourceUnqueueBuffers((ALuint) source, (ALsizei) n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +} + +/** + * This function selects the OpenAL distance model. + * + * C Specification: + * ALvoid alDistanceModel( ALenum value ); + */ + +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_distanceModel (JNIEnv *env, jobject obj, jint value) { + alDistanceModel((ALenum) value); +} + +/** + * This function selects the OpenAL Doppler factor value. + * + * C Specification: + * ALvoid alDopplerFactor( ALfloat value ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerFactor (JNIEnv *env, jobject obj, jfloat value) { + alDopplerFactor((ALfloat) value); +} + +/** + * This function selects the OpenAL Doppler velocity value. + * + * C Specification: + * ALvoid alDopplerVelocity( ALfloat value ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerVelocity (JNIEnv *env, jobject obj, jfloat value) { + alDopplerVelocity((ALfloat) value); +} + + + + |
From: Brian M. <ma...@us...> - 2002-08-19 13:54:21
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv31134 Modified Files: org_lwjgl_openal_CoreAL.h Log Message: basic al support complete Index: org_lwjgl_openal_CoreAL.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_openal_CoreAL.h 19 Aug 2002 12:02:52 -0000 1.4 +++ org_lwjgl_openal_CoreAL.h 19 Aug 2002 13:54:14 -0000 1.5 @@ -1,3 +1,35 @@ +/* + * Copyright (c) 2002 Light Weight Java Game Library Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'Light Weight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_openal_CoreAL */ @@ -178,18 +210,18 @@ /* * Class: org_lwjgl_openal_CoreAL * Method: getListeneri - * Signature: (I)I + * Signature: (II)V */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getListeneri - (JNIEnv *, jobject, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListeneri + (JNIEnv *, jobject, jint, jint); /* * Class: org_lwjgl_openal_CoreAL * Method: getListenerf - * Signature: (I)F + * Signature: (II)V */ -JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getListenerf - (JNIEnv *, jobject, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerf + (JNIEnv *, jobject, jint, jint); /* * Class: org_lwjgl_openal_CoreAL @@ -266,26 +298,26 @@ /* * Class: org_lwjgl_openal_CoreAL * Method: getSourcei - * Signature: (II)I + * Signature: (III)V */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getSourcei - (JNIEnv *, jobject, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcei + (JNIEnv *, jobject, jint, jint, jint); /* * Class: org_lwjgl_openal_CoreAL * Method: getSourcef - * Signature: (II)F + * Signature: (III)V */ -JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getSourcef - (JNIEnv *, jobject, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcef + (JNIEnv *, jobject, jint, jint, jint); /* * Class: org_lwjgl_openal_CoreAL * Method: getSource3f - * Signature: (III)V + * Signature: (IIIII)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSource3f - (JNIEnv *, jobject, jint, jint, jint); + (JNIEnv *, jobject, jint, jint, jint, jint, jint); /* * Class: org_lwjgl_openal_CoreAL @@ -394,18 +426,18 @@ /* * Class: org_lwjgl_openal_CoreAL * Method: getBufferi - * Signature: (II)I + * Signature: (III)V */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getBufferi - (JNIEnv *, jobject, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferi + (JNIEnv *, jobject, jint, jint, jint); /* * Class: org_lwjgl_openal_CoreAL * Method: getBufferf - * Signature: (II)F + * Signature: (III)V */ -JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getBufferf - (JNIEnv *, jobject, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferf + (JNIEnv *, jobject, jint, jint, jint); /* * Class: org_lwjgl_openal_CoreAL |
From: Brian M. <ma...@us...> - 2002-08-19 12:02:55
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv24579 Modified Files: org_lwjgl_openal_CoreAL.h Log Message: add: rest of al methods Index: org_lwjgl_openal_CoreAL.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_openal_CoreAL.h 15 Aug 2002 15:10:47 -0000 1.3 +++ org_lwjgl_openal_CoreAL.h 19 Aug 2002 12:02:52 -0000 1.4 @@ -1,35 +1,3 @@ -/* - * Copyright (c) 2002 Light Weight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_openal_CoreAL */ @@ -41,6 +9,110 @@ #endif /* * Class: org_lwjgl_openal_CoreAL + * Method: enable + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_enable + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: disable + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_disable + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: isEnabled + * Signature: (I)Z + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isEnabled + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: hint + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_hint + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getBoolean + * Signature: (I)Z + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_getBoolean + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getInteger + * Signature: (I)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getInteger + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getFloat + * Signature: (I)F + */ +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getFloat + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getDouble + * Signature: (I)D + */ +JNIEXPORT jdouble JNICALL Java_org_lwjgl_openal_CoreAL_getDouble + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getBooleanv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBooleanv + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getIntegerv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getIntegerv + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getFloatv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getFloatv + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getDoublev + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getDoublev + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getString + * Signature: (I)Ljava/lang/String; + */ +JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_CoreAL_getString + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL * Method: getError * Signature: ()I */ @@ -49,19 +121,91 @@ /* * Class: org_lwjgl_openal_CoreAL - * Method: getString - * Signature: (I)Ljava/lang/String; + * Method: isExtensionPresent + * Signature: (Ljava/lang/String;)Z */ -JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_CoreAL_getString +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent + (JNIEnv *, jobject, jstring); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getProcAddress + * Signature: (Ljava/lang/String;)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getProcAddress + (JNIEnv *, jobject, jstring); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getEnumValue + * Signature: (Ljava/lang/String;)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getEnumValue + (JNIEnv *, jobject, jstring); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: listeneri + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listeneri + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: listenerf + * Signature: (IF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerf + (JNIEnv *, jobject, jint, jfloat); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: listener3f + * Signature: (IFFF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listener3f + (JNIEnv *, jobject, jint, jfloat, jfloat, jfloat); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: listenerfv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerfv + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getListeneri + * Signature: (I)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getListeneri (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_CoreAL - * Method: genBuffers - * Signature: (I[I)V + * Method: getListenerf + * Signature: (I)F */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers - (JNIEnv *, jobject, jint, jintArray); +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getListenerf + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getListener3f + * Signature: (IIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListener3f + (JNIEnv *, jobject, jint, jint, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getListenerfv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerfv + (JNIEnv *, jobject, jint, jint); /* * Class: org_lwjgl_openal_CoreAL @@ -73,11 +217,19 @@ /* * Class: org_lwjgl_openal_CoreAL - * Method: bufferData - * Signature: (IIIII)V + * Method: deleteSources + * Signature: (I[I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData - (JNIEnv *, jobject, jint, jint, jint, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources + (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: isSource + * Signature: (I)Z + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isSource + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_CoreAL @@ -89,6 +241,94 @@ /* * Class: org_lwjgl_openal_CoreAL + * Method: sourcef + * Signature: (IIF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcef + (JNIEnv *, jobject, jint, jint, jfloat); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: source3f + * Signature: (IIFFF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_source3f + (JNIEnv *, jobject, jint, jint, jfloat, jfloat, jfloat); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourcefv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcefv + (JNIEnv *, jobject, jint, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getSourcei + * Signature: (II)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getSourcei + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getSourcef + * Signature: (II)F + */ +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getSourcef + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getSource3f + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSource3f + (JNIEnv *, jobject, jint, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getSourcefv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcefv + (JNIEnv *, jobject, jint, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourcePlayv + * Signature: (I[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePlayv + (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourcePausev + * Signature: (I[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePausev + (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourceStopv + * Signature: (I[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceStopv + (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourceRewindv + * Signature: (I[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewindv + (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL * Method: sourcePlay * Signature: (I)V */ @@ -97,6 +337,14 @@ /* * Class: org_lwjgl_openal_CoreAL + * Method: sourcePause + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePause + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL * Method: sourceStop * Signature: (I)V */ @@ -105,10 +353,18 @@ /* * Class: org_lwjgl_openal_CoreAL - * Method: deleteSources + * Method: sourceRewind + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewind + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: genBuffers * Signature: (I[I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers (JNIEnv *, jobject, jint, jintArray); /* @@ -118,6 +374,78 @@ */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteBuffers (JNIEnv *, jobject, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: isBuffer + * Signature: (I)Z + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isBuffer + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: bufferData + * Signature: (IIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData + (JNIEnv *, jobject, jint, jint, jint, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getBufferi + * Signature: (II)I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getBufferi + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: getBufferf + * Signature: (II)F + */ +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getBufferf + (JNIEnv *, jobject, jint, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourceQueueBuffers + * Signature: (II[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceQueueBuffers + (JNIEnv *, jobject, jint, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: sourceUnqueueBuffers + * Signature: (II[I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceUnqueueBuffers + (JNIEnv *, jobject, jint, jint, jintArray); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: distanceModel + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_distanceModel + (JNIEnv *, jobject, jint); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: dopplerFactor + * Signature: (F)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerFactor + (JNIEnv *, jobject, jfloat); + +/* + * Class: org_lwjgl_openal_CoreAL + * Method: dopplerVelocity + * Signature: (F)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerVelocity + (JNIEnv *, jobject, jfloat); #ifdef __cplusplus } |
From: Brian M. <ma...@us...> - 2002-08-19 11:59:36
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory usw-pr-cvs1:/tmp/cvs-serv23103 Modified Files: CoreAL.java Log Message: mod: now use ByteBuffer addresses instead of arrays - this way we reduce object creation Index: CoreAL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/CoreAL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/CoreAL.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CoreAL.java 19 Aug 2002 02:37:21 -0000 1.5 +++ CoreAL.java 19 Aug 2002 11:59:31 -0000 1.6 @@ -113,33 +113,33 @@ * Returns a boolean OpenAL state. * * @param parameter state to be queried - * @return boolean state described by pname will be returned. + * @param data address of ByteBuffer to place the booleans in */ - public native boolean getBooleanv(int pname); + public native void getBooleanv(int pname, int data); /** * Returns an integer OpenAL state. * * @param parameter state to be queried - * @return integer state described by pname will be returned. + * @param data address of ByteBuffer to place the integers in */ - public native int getIntegerv(int pname); + public native void getIntegerv(int pname, int data); /** * Returns a floating point OpenAL state. * * @param parameter state to be queried - * @return floating point state described by pname will be returned. + * @param data address of ByteBuffer to place the floats in */ - public native float getFloatv(int pname); + public native void getFloatv(int pname, int data); /** * Returns a double OpenAL state. * * @param parameter state to be queried - * @return double state described by pname will be returned. + * @param data address of ByteBuffer to place the floats in */ - public native double getDoublev(int pname); + public native void getDoublev(int pname, int data); /** * Retrieve an OpenAL string property. @@ -147,7 +147,7 @@ * @param pname The property to be returned * @return OpenAL String property */ - public native String getString(int pname); + public native String getString(int pname); /** * Retrieve the current error state and then clears the error state. @@ -210,9 +210,9 @@ * Sets a floating point vector property of the listener * * @param pname name of the attribute to be set - * @param vector floating point values representing vector + * @param floatdata bytebuffer address to read floats from */ - public native void listenerfv(int pname, float[] vector); + public native void listenerfv(int pname, int floatdata); /** * Gets an integer property of the listener. @@ -220,7 +220,7 @@ * @param pname name of the attribute to be retrieved * @return integer value of property */ - public native int getListeneri(int pname); + public native int getListeneri(int pname); /** * Gets a floating point property of the listener. @@ -228,24 +228,27 @@ * @param pname name of the attribute to be retrieved * @return floating point value of property */ - public native float getListenerf(int pname); + public native float getListenerf(int pname); /** * Retrieves a set of three floating point values from a * property of the listener. * * @param pname name of the attribute to be retrieved + * @param v1 bytebuffer address to write float 1 to + * @param v2 bytebuffer address to write float 2 to + * @param v3 bytebuffer address to write float 3 to * @return array of floats containing floating point values */ - public native float[] getListener3f(int pname); + public native void getListener3f(int pname, int v1, int v2, int v3); /** * Retrieves a floating point vector property of the listener. * * @param pname name of the attribute to be retrieved - * @return array of floats representing vector + * @param floatdata bytebuffer address to write floats to */ - public native float[] getListenerfv(int pname); + public native void getListenerfv(int pname, int floatdata); /** * Generate one or more sources. @@ -305,9 +308,9 @@ * * @param source source whichs attribute is being set * @param pname name of the attribute being set - * @param vector float array (representing vector) to set the attribute to + * @param floatdata bytebuffer address to read floats from */ - public native void sourcefv(int source, int pname, float[] vector); + public native void sourcefv(int source, int pname, int floatdata); /** * Retrieves an integer property of a source. @@ -332,18 +335,18 @@ * * @param source Source to get property from * @param pname property to get - * @return floating point array containing values + * @param floatdata bytebuffer address to write floats to */ - public native float[] getSource3f(int source, int pname); + public native void getSource3f(int source, int pname, int floatdata); /** * Gets a floating point vector property from a Source object. * * @param source Source to get property from * @param pname property to get - * @return floating point array representing vector + * @param floatdata bytebuffer address to write floats to */ - public native float[] getSourcefv(int source, int pname); + public native void getSourcefv(int source, int pname, int floatdata); /** * Plays a set of sources. |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 11:30:48
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv14753/src/native/common Modified Files: org_lwjgl_Sys.h Log Message: Tweakage Index: org_lwjgl_Sys.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Sys.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_Sys.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- org_lwjgl_Sys.h 11 Aug 2002 11:50:01 -0000 1.1.1.1 +++ org_lwjgl_Sys.h 19 Aug 2002 11:30:45 -0000 1.2 @@ -7,6 +7,7 @@ #ifdef __cplusplus extern "C" { #endif +/* Inaccessible static: _00024assertionsDisabled */ #undef org_lwjgl_Sys_LOW_PRIORITY #define org_lwjgl_Sys_LOW_PRIORITY -1L #undef org_lwjgl_Sys_NORMAL_PRIORITY @@ -15,6 +16,8 @@ #define org_lwjgl_Sys_HIGH_PRIORITY 1L #undef org_lwjgl_Sys_REALTIME_PRIORITY #define org_lwjgl_Sys_REALTIME_PRIORITY 2L +/* Inaccessible static: LIBRARY_NAME */ +/* Inaccessible static: class_000240 */ /* * Class: org_lwjgl_Sys * Method: getDirectBufferAddress |
From: Caspian Rychlik-P. <ci...@us...> - 2002-08-19 11:29:45
|
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 + ); + + } } |