ovrHmd_GetHSWDisplayState

Returns the current state of the HSW display. If the application is doing the rendering of the HSW display then this function serves to indicate that the the warning should be currently displayed. If the application is using SDK-based eye rendering then the SDK by default automatically handles the drawing of the HSW display. An application that uses application-based eye rendering should use this function to know when to start drawing the HSW display itself and can optionally use it in conjunction with ovrhmd_DismissHSWDisplay as described below.

Example usage for application-based rendering: bool HSWDisplayCurrentlyDisplayed = false; // global or class member variable ovrHSWDisplayState hswDisplayState; ovrhmd_GetHSWDisplayState(Hmd, &hswDisplayState);

if (hswDisplayState.Displayed && !HSWDisplayCurrentlyDisplayed) { <insert model into the scene that stays in front of the user> HSWDisplayCurrentlyDisplayed = true; }

extern (C)
void
ovrHmd_GetHSWDisplayState

Meta