11#include " inexor/vulkan-renderer/application.hpp"
22
3- #include " inexor/vulkan-renderer/camera.hpp"
43#include " inexor/vulkan-renderer/exception.hpp"
5- #include " inexor/vulkan-renderer/meta.hpp"
4+ #include " inexor/vulkan-renderer/meta/meta .hpp"
65#include " inexor/vulkan-renderer/octree_gpu_vertex.hpp"
76#include " inexor/vulkan-renderer/standard_ubo.hpp"
7+ #include " inexor/vulkan-renderer/tools/camera.hpp"
88#include " inexor/vulkan-renderer/tools/cla_parser.hpp"
99#include " inexor/vulkan-renderer/tools/enumerate.hpp"
1010#include " inexor/vulkan-renderer/world/collision.hpp"
1111#include " inexor/vulkan-renderer/wrapper/cpu_texture.hpp"
12- #include " inexor/vulkan-renderer/wrapper/descriptor_builder.hpp"
12+ #include " inexor/vulkan-renderer/wrapper/descriptors/ descriptor_builder.hpp"
1313#include " inexor/vulkan-renderer/wrapper/instance.hpp"
1414
1515#include < GLFW/glfw3.h>
@@ -286,7 +286,7 @@ void Application::initialize_spdlog() {
286286 auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
287287
288288 // A copy of the console output will automatically be saved to a logfile
289- auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(std::string (APP_NAME) + " .log" , true );
289+ auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(std::string (meta:: APP_NAME) + " .log" , true );
290290 auto logger = std::make_shared<spdlog::async_logger>(" main" , spdlog::sinks_init_list{console_sink, file_sink},
291291 spdlog::thread_pool (), spdlog::async_overflow_policy::block);
292292
@@ -303,6 +303,8 @@ void Application::initialize_spdlog() {
303303Application::Application (int argc, char **argv) {
304304 initialize_spdlog ();
305305
306+ using namespace vulkan_renderer ::meta;
307+
306308 spdlog::trace (" Application version: {}.{}.{}" , APP_VERSION[0 ], APP_VERSION[1 ], APP_VERSION[2 ]);
307309 spdlog::trace (" Engine version: {}.{}.{}" , ENGINE_VERSION[0 ], ENGINE_VERSION[1 ], ENGINE_VERSION[2 ]);
308310
@@ -451,7 +453,7 @@ Application::Application(int argc, char **argv) {
451453
452454 // Create an instance of the resource descriptor builder.
453455 // This allows us to make resource descriptors with the help of a builder pattern.
454- wrapper::DescriptorBuilder descriptor_builder (*m_device);
456+ wrapper::descriptors:: DescriptorBuilder descriptor_builder (*m_device);
455457
456458 // Make use of the builder to create a resource descriptor for the uniform buffer.
457459 m_descriptors.emplace_back (
@@ -492,7 +494,8 @@ void Application::update_imgui_overlay() {
492494 ImGui::PushStyleVar (ImGuiStyleVar_WindowRounding, 0 );
493495 ImGui::SetNextWindowPos (ImVec2 (10 , 10 ));
494496 ImGui::SetNextWindowSize (ImVec2 (330 , 0 ));
495- ImGui::Begin (" Inexor Vulkan-renderer" , nullptr ,
497+ using namespace vulkan_renderer ::meta;
498+ ImGui::Begin (APP_NAME, nullptr ,
496499 ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
497500 ImGui::Text (" %s" , m_device->gpu_name ().c_str ());
498501 ImGui::Text (" Engine version %d.%d.%d (Git sha %s)" , ENGINE_VERSION[0 ], ENGINE_VERSION[1 ], ENGINE_VERSION[2 ],
@@ -526,6 +529,8 @@ void Application::process_input() {
526529
527530 auto deadzone_lambda = [](const float state) { return (glm::abs (state) < 0 .2f ) ? 0 .0f : state; };
528531
532+ using namespace tools ;
533+
529534 if (m_camera->type () == CameraType::LOOK_AT &&
530535 m_input->kbm_data ().is_mouse_button_pressed (GLFW_MOUSE_BUTTON_LEFT)) {
531536 m_camera->rotate (static_cast <float >(cursor_pos_delta[0 ]), -static_cast <float >(cursor_pos_delta[1 ]));
0 commit comments