rem: getProcAddress removed, since it serves no purpose for Java programmers
This commit is contained in:
parent
8349dc96f6
commit
c109f47de2
|
@ -260,15 +260,6 @@ public class ALC {
|
|||
*/
|
||||
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.
|
||||
*
|
||||
|
|
|
@ -164,14 +164,6 @@ public class CoreAL extends BaseAL implements BaseALConstants {
|
|||
*/
|
||||
public native boolean isExtensionPresent(String fname);
|
||||
|
||||
/**
|
||||
* Returns the address of an OpenAL extension function.
|
||||
*
|
||||
* @param fname String containing the function name
|
||||
* @return int specifying offset of extension
|
||||
*/
|
||||
public native int getProcAddress(String fname);
|
||||
|
||||
/**
|
||||
* Returns the enumeration value of an OpenAL enum described by a string.
|
||||
*
|
||||
|
|
|
@ -127,14 +127,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError
|
|||
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
|
||||
|
|
|
@ -159,14 +159,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError
|
|||
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
|
||||
|
|
|
@ -357,29 +357,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv
|
|||
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(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.
|
||||
*
|
||||
|
|
|
@ -230,21 +230,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent (JNIE
|
|||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue