move test guis to GUImodules and separate utils from modules
This commit is contained in:
5
modules/GUImodules/TestImgui/src/TestImgui.cpp
Normal file
5
modules/GUImodules/TestImgui/src/TestImgui.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "TestImgui.h"
|
||||
|
||||
void TestImgui::load() {}
|
||||
|
||||
void TestImgui::run() {}
|
||||
38
modules/GUImodules/TestImgui/src/TestImgui.h
Normal file
38
modules/GUImodules/TestImgui/src/TestImgui.h
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user