public static ALCcontext create(java.nio.ByteBuffer buf) { return new ALCcontext(buf); }
/** Entry point (through function pointer) to C language function: <br> <code>void alcDestroyContext(ALCcontext * context)</code><br> */ public void alcDestroyContext(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcDestroyContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcDestroyContext")); } dispatch_alcDestroyContext1(((context == null) ? null : context.getBuffer()), __addr_); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCcontext * alcGetCurrentContext(void)</code><br> */ public ALCcontext alcGetCurrentContext() { final long __addr_ = alcProcAddressTable._addressof_alcGetCurrentContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcGetCurrentContext")); } final ByteBuffer _res; _res = dispatch_alcGetCurrentContext1(__addr_); if (_res == null) return null; return ALCcontext.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCcontext * alcGetThreadContext(void)</code><br> */ public ALCcontext alcGetThreadContext() { final long __addr_ = alExtProcAddressTable._addressof_alcGetThreadContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcGetThreadContext")); } final ByteBuffer _res; _res = dispatch_alcGetThreadContext1(__addr_); if (_res == null) return null; return ALCcontext.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCboolean alcSetThreadContext(ALCcontext * context)</code><br> */ public boolean alcSetThreadContext(ALCcontext context) { final long __addr_ = alExtProcAddressTable._addressof_alcSetThreadContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcSetThreadContext")); } return dispatch_alcSetThreadContext1(((context == null) ? null : context.getBuffer()), __addr_); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCcontext * alcCreateContext(ALCdevice * device, const ALCint * attrlist)</code><br> */ public ALCcontext alcCreateContext(ALCdevice device, int[] attrlist, int attrlist_offset) { if(attrlist != null && attrlist.length <= attrlist_offset) throw new ALException("array offset argument \"attrlist_offset\" (" + attrlist_offset + ") equals or exceeds array length (" + attrlist.length + ")"); final long __addr_ = alcProcAddressTable._addressof_alcCreateContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcCreateContext")); } final ByteBuffer _res; _res = dispatch_alcCreateContext1(((device == null) ? null : device.getBuffer()), attrlist, Buffers.SIZEOF_INT * attrlist_offset, false, __addr_); if (_res == null) return null; return ALCcontext.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCboolean alcMakeContextCurrent(ALCcontext * context)</code><br> */ public boolean alcMakeContextCurrent(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcMakeContextCurrent; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcMakeContextCurrent")); } return dispatch_alcMakeContextCurrent1(((context == null) ? null : context.getBuffer()), __addr_); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCcontext * alcCreateContext(ALCdevice * device, const ALCint * attrlist)</code><br> @param attrlist a direct or array-backed {@link java.nio.IntBuffer} */ public ALCcontext alcCreateContext(ALCdevice device, IntBuffer attrlist) { final boolean attrlist_is_direct = Buffers.isDirect(attrlist); final long __addr_ = alcProcAddressTable._addressof_alcCreateContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcCreateContext")); } final ByteBuffer _res; _res = dispatch_alcCreateContext1(((device == null) ? null : device.getBuffer()), attrlist_is_direct ? attrlist : Buffers.getArray(attrlist), attrlist_is_direct ? Buffers.getDirectBufferByteOffset(attrlist) : Buffers.getIndirectBufferByteOffset(attrlist), attrlist_is_direct, __addr_); if (_res == null) return null; return ALCcontext.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>void alcProcessContext(ALCcontext * context)</code><br> */ public void alcProcessContext(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcProcessContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcProcessContext")); } dispatch_alcProcessContext1(((context == null) ? null : context.getBuffer()), __addr_); }
/** Entry point (through function pointer) to C language function: <br> <code>void alcSuspendContext(ALCcontext * context)</code><br> */ public void alcSuspendContext(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcSuspendContext; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcSuspendContext")); } dispatch_alcSuspendContext1(((context == null) ? null : context.getBuffer()), __addr_); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCdevice * alcGetContextsDevice(ALCcontext * context)</code><br> */ public ALCdevice alcGetContextsDevice(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcGetContextsDevice; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcGetContextsDevice")); } final ByteBuffer _res; _res = dispatch_alcGetContextsDevice1(((context == null) ? null : context.getBuffer()), __addr_); if (_res == null) return null; return ALCdevice.create(Buffers.nativeOrder(_res)); }