/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/GameEngine/XR/XRSpatialAnchorsInterface.h
25 строк
953 B
Jan Krassnigg
Fixes for including public ez headers (#1755)
04 янв 2026, 10:57
Не верифицирован
04 янв 2026, 10:57
5feb7ef
Код
Авторство
О чём код?
#pragma once #include <Foundation/Math/Transform.h> #include <Foundation/Types/Id.h> #include <GameEngine/GameEngineDLL.h> using ezXRSpatialAnchorID = ezGenericId<32, 16>; /// \brief XR spatial anchors interface. /// /// Aquire interface via ezSingletonRegistry::GetSingletonInstance<ezXRSpatialAnchorsInterface>(). class ezXRSpatialAnchorsInterface { public: /// \brief Creates a spatial anchor at the given world space position. /// Returns an invalid handle if anchors can't be created right now. Retry next frame. virtual ezXRSpatialAnchorID CreateAnchor(const ezTransform& globalTransform) = 0; /// \brief Destroys a previously created anchor. virtual ezResult DestroyAnchor(ezXRSpatialAnchorID id) = 0; /// \brief Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is /// currently lost. virtual ezResult TryGetAnchorTransform(ezXRSpatialAnchorID id, ezTransform& out_globalTransform) = 0; };