WVR_SetPassthroughImageFocus¶
-
WVR_EXPORT bool WVR_SetPassthroughImageFocus(WVR_PassthroughImageFocus focus)
Function to set the focusing mode of passthrough image.
The API adjusts the focusing mode of passthourgh to the WaveVR Runtime, Affects the WVR_ShowPassthroughOverlay(), WVR_ShowPassthroughUnderlay and WVR_ShowProjectedPassthrough
- Return
- true if the setting of passthrough focusing mode is successful, otherwise return false if not supported by the Runtime.
- Version
- API Level 12
- Note
- Supported since Runtime version 12 or higher.
- Parameters
focus
: Specify the passthrough focusing mode to the WaveVR Runtime. (refer to WVR_PassthroughImageFocus)
How to use¶
The following example shows how to specify the focusing mode for the underlay passthrough:
#include <wvr/wvr_system.h>
void showPassthrough() {
uint64_t support = WVR_GetSupportedFeatures();
if (support & WVR_SupportedFeature_PassthroughOverlay) {
WVR_SetPassthroughImageFocus(WVR_PassthroughImageFocus_View);
WVR_ShowPassthroughUnderlay(true);
}
}