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);
|
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.
|
* 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);
|
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.
|
* 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
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent
|
||||||
(JNIEnv *, jobject, jobject, jstring);
|
(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
|
* Class: org_lwjgl_openal_ALC
|
||||||
* Method: getEnumValue
|
* Method: getEnumValue
|
||||||
|
|
|
@ -159,14 +159,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError
|
||||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent
|
||||||
(JNIEnv *, jobject, jstring);
|
(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
|
* Class: org_lwjgl_openal_CoreAL
|
||||||
* Method: getEnumValue
|
* Method: getEnumValue
|
||||||
|
|
|
@ -357,29 +357,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv
|
||||||
return result;
|
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.
|
* 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;
|
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.
|
* This function returns the enumeration value of an OpenAL enum described by a string.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue