mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
static implementation - work in progress
This commit is contained in:
parent
315375dee5
commit
4c4d56e583
34 changed files with 2001 additions and 2008 deletions
|
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.openal;
|
||||
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
|
|
@ -42,28 +43,28 @@ import java.nio.ByteOrder;
|
|||
* @author Brian Matzon <brian@matzon.dk>
|
||||
* @version $Revision$
|
||||
*/
|
||||
class ALCcontext {
|
||||
final class ALCcontext {
|
||||
|
||||
/** address of actual context */
|
||||
public final int context;
|
||||
final int context;
|
||||
|
||||
/**
|
||||
* Creates a new instance of ALCcontext
|
||||
*
|
||||
* @param context address of actual context
|
||||
*/
|
||||
public ALCcontext(int context) {
|
||||
ALCcontext(int context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
public static ByteBuffer createAttributeList(int contextFrequency, int contextRefresh, int contextSynchronized) {
|
||||
static Buffer createAttributeList(int contextFrequency, int contextRefresh, int contextSynchronized) {
|
||||
ByteBuffer attribList = ByteBuffer.allocateDirect(7*4).order(ByteOrder.nativeOrder());
|
||||
|
||||
attribList.putInt(ALC.FREQUENCY);
|
||||
attribList.putInt(ALC.ALC_FREQUENCY);
|
||||
attribList.putInt(contextFrequency);
|
||||
attribList.putInt(ALC.REFRESH);
|
||||
attribList.putInt(ALC.ALC_REFRESH);
|
||||
attribList.putInt(contextRefresh);
|
||||
attribList.putInt(ALC.SYNC);
|
||||
attribList.putInt(ALC.ALC_SYNC);
|
||||
attribList.putInt(contextSynchronized);
|
||||
attribList.putInt(0); //terminating int
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue