Upgrade to C++23
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user