MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetBoundaryGeometry

Function ovr_GetBoundaryGeometry

Revive/REV_CAPI.cpp:708–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetBoundaryGeometry(ovrSession session, ovrBoundaryType boundaryType, ovrVector3f* outFloorPoints, int* outFloorPointsCount)
709{
710 REV_TRACE(ovr_GetBoundaryGeometry);
711
712 vr::HmdQuad_t playRect;
713 bool valid = vr::VRChaperone()->GetPlayAreaRect(&playRect);
714 if (outFloorPoints)
715 memcpy(outFloorPoints, playRect.vCorners, 4 * sizeof(ovrVector3f));
716 if (outFloorPointsCount)
717 *outFloorPointsCount = valid ? 4 : 0;
718 return valid ? ovrSuccess : ovrSuccess_BoundaryInvalid;
719}
720
721OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetBoundaryDimensions(ovrSession session, ovrBoundaryType boundaryType, ovrVector3f* outDimensions)
722{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected