add TestNotCurses
This commit is contained in:
@@ -27,6 +27,37 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TestNotCurses = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
|
name = "TestNotCurses";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
clang
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
notcurses
|
||||||
|
];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
clang++ \
|
||||||
|
modules/examples/TestNotCurses/src/*.cpp \
|
||||||
|
-fpic -shared \
|
||||||
|
-I src -I include \
|
||||||
|
-Wall \
|
||||||
|
-lnotcurses \
|
||||||
|
-DTESTNOTCURSES_DYNAMIC \
|
||||||
|
-o $name
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp $name $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
Print = pkgs.stdenvNoCC.mkDerivation {
|
Print = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
name = "Print";
|
name = "Print";
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
-DRENDERER_OPENGL \
|
-DRENDERER_OPENGL \
|
||||||
-DWINDOW_GLFW \
|
-DWINDOW_GLFW \
|
||||||
-DIMGUIMODULE_DYNAMIC \
|
-DIMGUIMODULE_DYNAMIC \
|
||||||
|
-DCUSTOMFONT=${pkgs.fira-code}/share/fonts/truetype/FiraCode-VF.ttf \
|
||||||
-fpic -shared \
|
-fpic -shared \
|
||||||
-I src -I include -I $imgui -I . \
|
-I src -I include -I $imgui -I . \
|
||||||
-lGL -lglfw -lGLEW \
|
-lGL -lglfw -lGLEW \
|
||||||
|
|||||||
@@ -17,4 +17,7 @@
|
|||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
|
#define STRINGIZE(x) #x
|
||||||
|
#define STRINGIZE_VALUE_OF(x) STRINGIZE(x)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
|
#include "pch.hpp"
|
||||||
|
|
||||||
ImguiModule::ImguiModule(Archimedes::App* a, void* h = nullptr) : Archimedes::Module(a, h) {
|
ImguiModule::ImguiModule(Archimedes::App* a, void* h = nullptr) : Archimedes::Module(a, h) {
|
||||||
|
|
||||||
name = "ImguiModule";
|
name = "ImguiModule";
|
||||||
@@ -40,9 +42,12 @@ void ImguiModule::onLoad() {
|
|||||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
|
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
|
||||||
|
|
||||||
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking
|
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::StyleColorsDark();
|
||||||
//ImGui::StyleColorsLight();
|
//ImGui::StyleColorsLight();
|
||||||
|
|
||||||
|
|||||||
0
modules/Networking/src/Networking.cpp
Normal file
0
modules/Networking/src/Networking.cpp
Normal file
0
modules/Networking/src/Networking.h
Normal file
0
modules/Networking/src/Networking.h
Normal file
@@ -6,8 +6,6 @@ class Print : public Archimedes::Module {
|
|||||||
Print(Archimedes::App*, void*);
|
Print(Archimedes::App*, void*);
|
||||||
~Print();
|
~Print();
|
||||||
void run();
|
void run();
|
||||||
void onLoad() {}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef PRINT_DYNAMIC
|
#ifdef PRINT_DYNAMIC
|
||||||
|
|||||||
17
modules/examples/TestNotCurses/src/TestNotCurses.cpp
Normal file
17
modules/examples/TestNotCurses/src/TestNotCurses.cpp
Normal 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() {
|
||||||
|
|
||||||
|
}
|
||||||
17
modules/examples/TestNotCurses/src/TestNotCurses.h
Normal file
17
modules/examples/TestNotCurses/src/TestNotCurses.h
Normal 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
|
||||||
Reference in New Issue
Block a user