Add debug options:

- Log driver version when starting
- Add debug menu to offset the controller mesh positions/orientations in the lobby
This commit is contained in:
Guillaume Meunier
2024-11-01 14:13:58 +01:00
parent d96f7f07a1
commit 33bde8be57
14 changed files with 1443 additions and 53 deletions
+5 -1
View File
@@ -20,9 +20,11 @@
#include <filesystem>
#include <glm/glm.hpp>
#include <magic_enum_containers.hpp>
#include <render/scene_data.h>
#include <span>
#include <variant>
#include <xr/space.h>
#include <openxr/openxr.h>
struct input_profile
@@ -59,10 +61,12 @@ struct input_profile
std::string id;
std::vector<visual_response> responses;
std::vector<std::pair<XrSpace, node_handle>> model_handles;
std::vector<std::pair<xr::spaces, node_handle>> model_handles;
node_handle left_ray;
node_handle right_ray;
magic_enum::containers::array<xr::spaces, std::pair<glm::vec3, glm::quat>> offset;
input_profile(const std::filesystem::path & json_profile, scene_loader & loader, scene_data & scene_controllers, scene_data & scene_rays);
// application::poll_actions() must have been called before