From 3ff5cf64ef88efd658db78412fbc0cd27a6c1cbd Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Tue, 10 Aug 2004 10:31:52 +0000 Subject: [PATCH] Added getContext() --- src/java/org/lwjgl/openal/AL.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/java/org/lwjgl/openal/AL.java b/src/java/org/lwjgl/openal/AL.java index 9f65eed8..7001fee7 100644 --- a/src/java/org/lwjgl/openal/AL.java +++ b/src/java/org/lwjgl/openal/AL.java @@ -255,4 +255,15 @@ public final class AL { } private static native void resetNativeStubs(Class clazz); + + /** + * Gets a handle to the current openAL context. The handle is "opaque" right now + * because, realistically, there is nothing you can actually do with it. If it turns + * out that there are useful things you can do with it then it'll return an instance + * of ALCcontext (which will have to become a public class) + * @return an opaque handle to the AL context. + */ + public static Object getContext() { + return context; + } }