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 voidcreate()Loads the OpenXR shared library, using the default library name.static voidLoads the OpenXR shared library, using the specified library name.static voidcreate(FunctionProvider functionProvider) Initializes OpenXR with the specifiedFunctionProvider.static voiddestroy()Unloads the OpenXR shared library.static FunctionProviderReturns theFunctionProviderfor 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
FunctionProviderinstance 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 theFunctionProviderfor the OpenXR shared library.
-