add TestNotCurses

This commit is contained in:
2025-04-13 13:37:32 -05:00
parent 372e46168f
commit 640c19c439
9 changed files with 76 additions and 4 deletions

View File

@@ -7,6 +7,8 @@
#include <GLFW/glfw3.h>
#include "pch.hpp"
ImguiModule::ImguiModule(Archimedes::App* a, void* h = nullptr) : Archimedes::Module(a, h) {
name = "ImguiModule";
@@ -40,9 +42,12 @@ void ImguiModule::onLoad() {
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking
//io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows
//io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows
// Setup Dear ImGui style
#ifdef CUSTOMFONT
io.Fonts->AddFontFromFileTTF(STRINGIZE_VALUE_OF(CUSTOMFONT), 13.0f);
#endif
// Setup Dear ImGui style
ImGui::StyleColorsDark();
//ImGui::StyleColorsLight();

View File

View File

View File

@@ -6,8 +6,6 @@ class Print : public Archimedes::Module {
Print(Archimedes::App*, void*);
~Print();
void run();
void onLoad() {}
};
#ifdef PRINT_DYNAMIC

View File

@@ -0,0 +1,17 @@
#include "TestNotCurses.h"
TestNotCurses::TestNotCurses(Archimedes::App* a, void* h) : Archimedes::Module(a, h) {
name = "TestNotCurses";
}
TestNotCurses::~TestNotCurses() {
}
void TestNotCurses::onLoad() {
}
void TestNotCurses::run() {
}

View File

@@ -0,0 +1,17 @@
#include "Archimedes.h"
#include <notcurses/notcurses.h>
class TestNotCurses : public Archimedes::Module {
public:
TestNotCurses(Archimedes::App*, void*);
~TestNotCurses();
void run();
void onLoad();
};
#ifdef TESTNOTCURSES_DYNAMIC
#define MODULE_TYPE TestNotCurses
#include "endModule.h"
#endif