mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
*fv support
This commit is contained in:
parent
46a072cec8
commit
7a763bff29
3 changed files with 63 additions and 3 deletions
|
|
@ -315,6 +315,17 @@ public abstract class CoreAL extends BaseAL implements BaseALConstants {
|
|||
*/
|
||||
public static native void alListenerf(int pname, float value);
|
||||
|
||||
/**
|
||||
* Listener attributes are changed using the Listener group of commands.
|
||||
*
|
||||
* @param pname name of the attribute to be set
|
||||
* @param value FloatBuffer containing value to set the attribute to
|
||||
*/
|
||||
public static void alListener(int pname, FloatBuffer value) {
|
||||
nalListenerfv(pname, value, value.position());
|
||||
}
|
||||
public static native void nalListenerfv(int pname, FloatBuffer value, int offset);
|
||||
|
||||
/**
|
||||
* Listener attributes are changed using the Listener group of commands.
|
||||
*
|
||||
|
|
@ -404,6 +415,19 @@ public abstract class CoreAL extends BaseAL implements BaseALConstants {
|
|||
*/
|
||||
public static native void alSourcef(int source, int pname, float value);
|
||||
|
||||
/**
|
||||
* Specifies the position and other properties as taken into account during
|
||||
* sound processing.
|
||||
*
|
||||
* @param source Source to det property on
|
||||
* @param pname property to set
|
||||
* @param value FloatBuffer containing value of property
|
||||
*/
|
||||
public static void alSource(int source, int pname, FloatBuffer value) {
|
||||
nalSourcefv(source, pname, value, value.position());
|
||||
}
|
||||
public static native void nalSourcefv(int source, int pname, FloatBuffer value, int offset);
|
||||
|
||||
/**
|
||||
* Specifies the position and other properties as taken into account during
|
||||
* sound processing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue