WVR_SetOverlayFixedPosition¶
-
WVR_EXPORT WVR_OverlayError WVR_SetOverlayFixedPosition(int32_t overlayId, const WVR_OverlayPosition_t * position)
Sets the transform relative to the HMD by position.x, position.y, position.z.
- Return
- The error code of set transform position.
- Version
- API Level 1
- Parameters
overlayId
: which overlay should be control.position
: which contained the overlay’s translation(x,y,z) relative to HMD.
How to use¶
Here is an example for the function:
#include <wvr/wvr_overlay.h>
int32_t mOverlayId;
void exampleFun() {
WVR_GenOverlay(&mOverlayId);
const WVR_OverlayPosition position = {0.0f, 0.0f, -1.0f};
WVR_SetOverlayFixedPosition(mOverlayId, &position);
WVR_DelOverlay(mOverlayId);
}