Basic GUI

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:35 +01:00
parent a7bd88aa6c
commit d84095e1ea
42 changed files with 1970 additions and 363 deletions
+1 -5
View File
@@ -38,6 +38,7 @@
#include "singleton.h"
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <spdlog/spdlog.h>
class scene;
@@ -67,9 +68,6 @@ class application : public singleton<application>
static inline const char engine_name[] = "No engine";
static inline const int engine_version = VK_MAKE_VERSION(1, 0, 0);
static inline const std::array<vk::Format, 2> supported_formats = {vk::Format::eR8G8B8A8Srgb,
vk::Format::eB8G8R8A8Srgb};
void initialize_vulkan();
void log_views();
@@ -90,7 +88,6 @@ class application : public singleton<application>
uint32_t vk_queue_family_index;
vk::raii::Queue vk_queue = nullptr;
vk::raii::CommandPool vk_cmdpool = nullptr;
vk::Format swapchain_format;
vk::raii::PipelineCache pipeline_cache = nullptr;
// OpenXR stuff
@@ -99,7 +96,6 @@ class application : public singleton<application>
xr::instance xr_instance;
xr::system xr_system_id;
xr::session xr_session;
std::vector<xr::swapchain> xr_swapchains;
XrSessionState session_state = XR_SESSION_STATE_UNKNOWN;
xr::space world_space;