triangle and imgui

This commit is contained in:
2026-02-11 08:15:55 -06:00
parent 6c33eada03
commit ec8a9c9f4f
6 changed files with 19 additions and 15 deletions

View File

@@ -64,7 +64,7 @@ class ImguiModule : public Archimedes::Module {
ImGuiContext* context;
Archimedes::Window* window;
Archimedes::WindowGLFW* window;
std::list<std::function<void()>>::iterator rcmd_it;
@@ -99,10 +99,10 @@ class ImguiModule : public Archimedes::Module {
#ifdef WINDOW_SDL3
#ifdef RENDERER_OPENGL
auto windowInit() { return ImGui_ImplSDL3_InitForOpenGL(window->getWindowImpl().getWindow(), window->getWindowImpl().getContext()); }
auto windowInit() { return ImGui_ImplSDL3_InitForOpenGL(window->getWindowImpl()->getWindow(), window->getWindowImpl()->getContext()); }
#endif
#ifdef RENDERER_SDL3
auto windowInit() { return ImGui_ImplSDL3_InitForSDLRenderer(window->getWindowImpl().getWindow(), renderer); }
auto windowInit() { return ImGui_ImplSDL3_InitForSDLRenderer(window->getWindowImpl()->getWindow(), renderer); }
#endif
void windowShutdown() { ImGui_ImplSDL3_Shutdown(); }