move test guis to GUImodules and separate utils from modules

This commit is contained in:
2025-03-21 12:01:19 -05:00
parent 028162509e
commit 719af8e85a
11 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
#include "TestImgui.h"
void TestImgui::load() {}
void TestImgui::run() {}

View File

@@ -0,0 +1,38 @@
#include "Archimedes.h"
#include <imgui.h>
#include <backends/imgui_impl_glfw.h>
#include <backends/imgui_impl_opengl3.h>
#include <GLFW/glfw3.h>
class TestImgui : public Module {
public:
TestImgui(void* h, App& a) : Module(h, a) {
std::cout << "Enter path to Window library: ";
std::string path;
std::cin.ignore();
std::getline(std::cin, path);
deps["Window"] = path;
name = "TestImgui";
}
~TestImgui() {}
void load();
void run();
private:
};
extern "C" {
Module* create(void* handle, App& app) {
return new TestImgui(handle, app);
}
}