Package org.lwjgl.openxr
Class XR
java.lang.Object
org.lwjgl.openxr.XR
This class loads the OpenXR library into the JVM process.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
create()
Loads the OpenXR shared library, using the default library name.static void
Loads the OpenXR shared library, using the specified library name.static void
create
(FunctionProvider functionProvider) Initializes OpenXR with the specifiedFunctionProvider
.static void
destroy()
Unloads the OpenXR shared library.static FunctionProvider
Returns theFunctionProvider
for the OpenXR shared library.
-
Method Details
-
create
public static void create()Loads the OpenXR shared library, using the default library name.- See Also:
-
create
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
Initializes OpenXR with the specifiedFunctionProvider
. 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
Returns theFunctionProvider
for the OpenXR shared library.
-