update TestImgui
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#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";
|
name = "TestImgui";
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ void TestImgui::run() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(window->shouldClose())
|
if(window->shouldClose())
|
||||||
app.end();
|
app->end();
|
||||||
window->doFrame();
|
window->doFrame();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
#define GUIMODULE
|
||||||
#include "Archimedes.h"
|
#include "Archimedes.h"
|
||||||
|
|
||||||
|
|
||||||
class TestImgui : public Archimedes::GuiModule {
|
class TestImgui : public Archimedes::GuiModule {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TestImgui(void*, Archimedes::App&);
|
TestImgui(void*, Archimedes::App*);
|
||||||
|
|
||||||
~TestImgui();
|
~TestImgui();
|
||||||
|
|
||||||
@@ -18,7 +19,7 @@ class TestImgui : public Archimedes::GuiModule {
|
|||||||
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
Archimedes::Module* create(void* handle, Archimedes::App& app) {
|
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
||||||
return new TestImgui(handle, app);
|
return new TestImgui(handle, app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user