/* * WiVRn VR streaming * Copyright (C) 2024 Guillaume Meunier * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once #include "scene.h" #include #include #include #include #include #include #include #include struct input_profile { std::string id; entt::entity left_ray; entt::entity right_ray; magic_enum::containers::array> offset; input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray, XrAction left_trigger = XR_NULL_HANDLE, XrAction right_trigger = XR_NULL_HANDLE); // application::poll_actions() must have been called before void apply( entt::registry & scene, XrSpace world_space, XrTime predicted_display_time, bool hide_left_controller, bool hide_left_ray, bool hide_right_controller, bool hide_right_ray, std::span world_to_window); };