Upgrade to C++23

This commit is contained in:
SimoZ64
2025-05-20 17:47:52 +02:00
parent be711bf5b3
commit 8fa341bf72
7 changed files with 26 additions and 133 deletions

View File

@@ -2,16 +2,17 @@
#include <KaizenGui.hpp>
#include <RenderWidget.hpp>
#include <SDL3/SDL.h>
#include <InputSettings.hpp>
RenderWidget::RenderWidget(const std::shared_ptr<n64::Core> &core, SDL_Window* window) {
RenderWidget::RenderWidget(const std::shared_ptr<n64::Core> &core, InputSettings& inputSettings, SDL_Window* window) : inputSettings(inputSettings) {
if (!Vulkan::Context::init_loader(nullptr)) {
Util::panic("Could not initialize Vulkan ICD");
}
wsiPlatform = std::make_shared<ImGuiWSIPlatform>(core, window);
wsiPlatform = std::make_shared<SDLWSIPlatform>(core, inputSettings, window);
}
void ImGuiWSIPlatform::poll_input() {
void SDLWSIPlatform::poll_input() {
if (!canPollEvents)
return;