work on TestImgui
This commit is contained in:
@@ -7,9 +7,13 @@
|
|||||||
url = "github:ocornut/imgui?ref=docking";
|
url = "github:ocornut/imgui?ref=docking";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
clay = {
|
||||||
|
url = "github:nicbarker/clay";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, imgui }: let
|
outputs = { self, nixpkgs, imgui, clay }: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in {
|
in {
|
||||||
@@ -187,7 +191,7 @@
|
|||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
inherit imgui;
|
inherit clay;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#include "TestImgui.h"
|
||||||
|
|
||||||
|
void TestImgui::load() {}
|
||||||
|
|
||||||
|
void TestImgui::run() {}
|
||||||
|
|||||||
@@ -1 +1,38 @@
|
|||||||
#include "imgui.h"
|
#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