WVR_SetProjectedPassthroughPose

WVR_EXPORT WVR_Result WVR_SetProjectedPassthroughPose(const WVR_Pose_t * pose)

Function to set the pose for the projected passthrough.

This function must be called after calling WVR_RenderInit().

Version
API Level 7
Note
Supported from Runtime version 7 or higher (certain devices only).
Parameters
  • pose: Set the pose for the projected passthrough.
Return Value
  • WVR_SUCCESS: The setting is valid.
  • WVR_Error_RuntimeVersionNotSupport: This feature is supported from Runtime version 7 or higher.
  • WVR_Error_FeatureNotSupport: This feature is not supported on this device.

How to use

The following example sets the pose for the projected passthrough by pressing button A:

#include <wvr/wvr_system.h>

void pollEvent() {
    if (event.common.type == WVR_EventType_ButtonUnpressed) {
        if (event.input.inputId == WVR_InputId_Alias1_A) {
            WVR_Pose_t pose = { 0.0f, 0.0f, -2.0f, -0.9994449, 0.0f, 0.0f, 0.0333148f };
            WVR_SetProjectedPassthroughPose(&pose);
            WVR_ShowProjectedPassthrough(true);
        }
    }
}