23 void getAvialableBlendModes(XrViewConfigurationType
type);
24 void InitializeSession();
29 bool isSessionRunning()
const {
return m_session_running; }
30 bool isSessionFocused()
const {
return m_session_state == XR_SESSION_STATE_FOCUSED; }
31 XrEnvironmentBlendMode environmentBlendMode() {
return m_current_blend_mode; }
34 const XrEventDataBaseHeader* tryReadNextEvent();
35 void pollEvents(
bool* exitRenderLoop,
bool* requestRestart);
38 void HandleSessionStateChangedEvent(
const XrEventDataSessionStateChanged& stateChangedEvent,
bool* exitRenderLoop,
bool* requestRestart);
39 XrInstance xrInstance()
const {
return m_device->xrInstance(); }
40 XrSystemId xrSystemID()
const {
return m_device->xrSystemID(); }
41 XrSession xrSession()
const {
return m_xr_session; }
42 const XrBaseInStructure* graphicsBinding()
const {
return reinterpret_cast<const XrBaseInStructure*
>(&m_device->graphicsBinding()); }
43 XrViewConfigurationType viewConfigType()
const {
return XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO; }
44 void setSessionEndFunction(std::function<
void()> function) { m_session_end_function = function; }
45 void updateMovement();
58 std::function<void()> m_session_end_function;
61 XrSpace m_appSpace{ XR_NULL_HANDLE };
64 XrEnvironmentBlendMode m_current_blend_mode;
66 XrSession m_xr_session{ XR_NULL_HANDLE };
68 XrSessionState m_session_state{ XR_SESSION_STATE_UNKNOWN };
71 XrEventDataBuffer m_event_data_buffer;
79 Time m_last_update_time;
80 bool m_session_running{
false };
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...