public final class OpenXrManager


Manages the lifecycle of an OpenXR session.

Summary

Public methods

void

Sets or changes the configuration to use, which will affect the availability of properties or features in other managers.

void

Executes the Runtime initialization logic.

void

Pauses execution while retaining the state in memory.

void

Resumes execution from a paused or init state.

void

Stops the execution and releases all resources.

@NonNull ComparableTimeMark

Updates the state of the system.

Public methods

configure

Added in 1.0.0-alpha01
public void configure()

Sets or changes the configuration to use, which will affect the availability of properties or features in other managers. It is necessary to have called create before calling this method.

create

Added in 1.0.0-alpha01
public void create()

Executes the Runtime initialization logic. It is necessary to call resume after calling this method to start the runtime's execution logic.

pause

Added in 1.0.0-alpha01
public void pause()

Pauses execution while retaining the state in memory.

resume

Added in 1.0.0-alpha01
public void resume()

Resumes execution from a paused or init state. It is necessary to have called create before calling this method.

stop

Added in 1.0.0-alpha01
public void stop()

Stops the execution and releases all resources. It is not valid to call any other method after calling stop. The runtime must not be resumed when this method is called.

update

public @NonNull ComparableTimeMark update()

Updates the state of the system. The call is blocking and will return once the underlying implementation has been updated or a platform-specific timeout has been reached. This method can only be called when the runtime is resumed.

Returns
@NonNull ComparableTimeMark

the timemark of the latest state. This value is to be used for comparison with other timemarks and not to be used for absolute time calculations.