Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public final Class XR

extends Object
Class Inheritance
Imports
org.lwjgl.*, org.lwjgl.system.*, javax.annotation.*, java.util.*

This class loads the OpenXR library into the JVM process.
See Also
Configuration#OPENXR_LIBRARY_NAME, Configuration#OPENXR_EXPLICIT_INIT

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static FunctionProvider
private static XR.GlobalCommands

Constructor Summary

AccessConstructor and Description
private
XR()

Method Summary

Modifier and TypeMethod and Description
private static <T> T
check(T t)

public static void
create()

Loads the OpenXR shared library, using the default library name.

public static void
create(String
the shared library name
libName
)

Loads the OpenXR shared library, using the specified library name.

public static void
create(FunctionProvider
the provider of OpenXR function addresses
functionProvider
)

Initializes OpenXR with the specified FunctionProvider.

public static void
destroy()

Unloads the OpenXR shared library.

pack-priv static Set<String>
getEnabledExtensionSet(long apiVersion, PointerBuffer extensionNames)

public static FunctionProvider
getFunctionProvider()

Returns the FunctionProvider for the OpenXR shared library.

pack-priv static XR.GlobalCommands
getGlobalCommands()

Returns the OpenXR global commands.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionProviderback to summary
private static FunctionProvider functionProvider
Annotations
@Nullable
globalCommandsback to summary
private static XR.GlobalCommands globalCommands
Annotations
@Nullable

Constructor Detail

XRback to summary
private XR()

Method Detail

checkback to summary
private static <T> T check(T t)
createback to summary
public static void create()

Loads the OpenXR shared library, using the default library name.

See Also
create(String)
createback to summary
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:String

the shared library name

See Also
create(FunctionProvider)
createback to summary
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:FunctionProvider

the provider of OpenXR function addresses

destroyback to summary
public static void destroy()

Unloads the OpenXR shared library.

getEnabledExtensionSetback to summary
pack-priv static Set<String> getEnabledExtensionSet(long apiVersion, PointerBuffer extensionNames)
getFunctionProviderback to summary
public static FunctionProvider getFunctionProvider()

Returns the FunctionProvider for the OpenXR shared library.

getGlobalCommandsback to summary
pack-priv static XR.GlobalCommands getGlobalCommands()

Returns the OpenXR global commands.

org.lwjgl.openxr back to summary

pack-priv Class XR.GlobalCommands

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final long
pack-priv final long
pack-priv final long
pack-priv final long
pack-priv final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private long
private long
getFunctionAddress(String name, boolean required)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

xrCreateInstanceback to summary
pack-priv final long xrCreateInstance
xrEnumerateApiLayerPropertiesback to summary
pack-priv final long xrEnumerateApiLayerProperties
xrEnumerateInstanceExtensionPropertiesback to summary
pack-priv final long xrEnumerateInstanceExtensionProperties
xrGetInstanceProcAddrback to summary
pack-priv final long xrGetInstanceProcAddr
xrInitializeLoaderKHRback to summary
pack-priv final long xrInitializeLoaderKHR

Constructor Detail

GlobalCommandsback to summary
pack-priv GlobalCommands(FunctionProvider library)

Method Detail

getFunctionAddressback to summary
private long getFunctionAddress(String name)
getFunctionAddressback to summary
private long getFunctionAddress(String name, boolean required)