update TestImgui

This commit is contained in:
2025-03-29 22:06:02 -05:00
parent a6742e41b3
commit 483d5f1be2
2 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
#include <GLFW/glfw3.h>
TestImgui::TestImgui(void* h, Archimedes::App& a) : Archimedes::GuiModule(h, a) {
TestImgui::TestImgui(void* h, Archimedes::App* a) : Archimedes::GuiModule(h, a) {
name = "TestImgui";
}
@@ -62,7 +62,7 @@ void TestImgui::run() {
});
if(window->shouldClose())
app.end();
app->end();
window->doFrame();
}

View File

@@ -1,10 +1,11 @@
#define GUIMODULE
#include "Archimedes.h"
class TestImgui : public Archimedes::GuiModule {
public:
TestImgui(void*, Archimedes::App&);
TestImgui(void*, Archimedes::App*);
~TestImgui();
@@ -18,7 +19,7 @@ class TestImgui : public Archimedes::GuiModule {
extern "C" {
Archimedes::Module* create(void* handle, Archimedes::App& app) {
Archimedes::Module* create(void* handle, Archimedes::App* app) {
return new TestImgui(handle, app);
}
}