Class XR

java.lang.Object
org.lwjgl.openxr.XR

public final class XR extends Object
This class loads the OpenXR library into the JVM process.
See Also:
  • Method Details

    • create

      public static void create()
      Loads the OpenXR shared library, using the default library name.
      See Also:
    • create

      public static void create(String libName)
      Loads the OpenXR shared library, using the specified library name.

      The FunctionProvider instance created by this method can only be used to retrieve global commands and commands exposed statically by the OpenXR shared library.

      Parameters:
      libName - the shared library name
      See Also:
    • create

      public static void create(FunctionProvider functionProvider)
      Initializes OpenXR with the specified FunctionProvider. This method can be used to implement custom OpenXR library loading.
      Parameters:
      functionProvider - the provider of OpenXR function addresses
    • destroy

      public static void destroy()
      Unloads the OpenXR shared library.
    • getFunctionProvider

      public static FunctionProvider getFunctionProvider()
      Returns the FunctionProvider for the OpenXR shared library.