Update of /cvsroot/java-game-lib/LWJGL/src/native/win32
In directory usw-pr-cvs1:/tmp/cvs-serv552
Modified Files:
org_lwjgl_openal_ALC.cpp org_lwjgl_openal_CoreAL.cpp
Log Message:
rem: getProcAddress removed, since it serves no purpose for Java programmers
Index: 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
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALC.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- org_lwjgl_openal_ALC.cpp 3 Sep 2002 19:24:57 -0000 1.8
+++ org_lwjgl_openal_ALC.cpp 6 Sep 2002 23:36:48 -0000 1.9
@@ -358,29 +358,6 @@
}
/**
- * 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(device, device_field);
-
- /* get extension */
- ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(funcName, 0));
-
- jint result = (jint) alcGetProcAddress((ALCdevice*) deviceaddress, functionname);
-
- env->ReleaseStringUTFChars((jstring)functionname, 0);
-
- CHECK_ALC_ERROR
- return result;
-}
-
-/**
* This function retrieves the enum value for a specified enumeration name.
*
* C Specification:
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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- org_lwjgl_openal_CoreAL.cpp 29 Aug 2002 01:09:22 -0000 1.4
+++ org_lwjgl_openal_CoreAL.cpp 6 Sep 2002 23:36:48 -0000 1.5
@@ -230,21 +230,6 @@
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);
-
- CHECK_AL_ERROR
- return result;
-}
-
/**
* This function returns the enumeration value of an OpenAL enum described by a string.
*
|