| 706 | } |
| 707 | |
| 708 | OVR_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 | |
| 721 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetBoundaryDimensions(ovrSession session, ovrBoundaryType boundaryType, ovrVector3f* outDimensions) |
| 722 | { |
nothing calls this directly
no outgoing calls
no test coverage detected