MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / Update

Method Update

Plugins/NativeXr/Source/NativeXr.cpp:596–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594 }
595
596 void Update(size_t eyeIdx, gsl::span<const float, 16> projectionMatrix, const xr::System::Session::Frame::Space& space)
597 {
598 if (eyeIdx != m_eyeIdx)
599 {
600 m_eyeIdx = eyeIdx;
601 m_eye = XREye::IndexToEye(m_eyeIdx);
602 }
603
604 std::memcpy(m_projectionMatrix.Value().Data(), projectionMatrix.data(), m_projectionMatrix.Value().ByteLength());
605
606 XRRigidTransform::Unwrap(m_rigidTransform.Value())->Update(space, false);
607 }
608
609 private:
610 size_t m_eyeIdx{};

Callers 6

UpdateMethod · 0.45
UpdateMethod · 0.45
GetPoseMethod · 0.45
GetViewerPoseMethod · 0.45
GetPoseMethod · 0.45
RequestAnimationFrameMethod · 0.45

Calls 4

ValueMethod · 0.80
ByteLengthMethod · 0.80
UnwrapFunction · 0.50
DataMethod · 0.45

Tested by

no test coverage detected