update TestImgui
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user