summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/definitions.cpp4
-rw-r--r--src/definitions.h3
-rw-r--r--src/main.cpp7
3 files changed, 14 insertions, 0 deletions
diff --git a/src/definitions.cpp b/src/definitions.cpp
index 274e009..9937ec5 100644
--- a/src/definitions.cpp
+++ b/src/definitions.cpp
@@ -8,6 +8,10 @@ unsigned char* _binary_LICENSE_end = _binary_LICENSE_start + LICENSE_len;
unsigned char* _binary_imgui_LICENSE_start = imgui_LICENSE;
unsigned char* _binary_imgui_LICENSE_end = imgui_LICENSE + imgui_LICENSE_len;
+#include "../misc/generated/glfw_LICENSE.h"
+unsigned char* _binary_glfw_LICENSE_start = glfw_LICENSE;
+unsigned char* _binary_glfw_LICENSE_end = glfw_LICENSE + glfw_LICENSE_len;
+
#include "../misc/generated/imfiledialog_LICENSE.h"
unsigned char* _binary_imfiledialog_LICENSE_start = imfiledialog_LICENSE;
unsigned char* _binary_imfiledialog_LICENSE_end = imfiledialog_LICENSE + imfiledialog_LICENSE_len;
diff --git a/src/definitions.h b/src/definitions.h
index 96f51ff..d139284 100644
--- a/src/definitions.h
+++ b/src/definitions.h
@@ -11,6 +11,9 @@ extern unsigned char* _binary_LICENSE_end;
extern unsigned char* _binary_imgui_LICENSE_start;
extern unsigned char* _binary_imgui_LICENSE_end;
+extern unsigned char* _binary_glfw_LICENSE_start;
+extern unsigned char* _binary_glfw_LICENSE_end;
+
extern unsigned char* _binary_imfiledialog_LICENSE_start;
extern unsigned char* _binary_imfiledialog_LICENSE_end;
diff --git a/src/main.cpp b/src/main.cpp
index ac515e5..55487f2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -99,6 +99,13 @@ static void _ts_create_popups() {
ImGui::TreePop();
}
+ if (ImGui::TreeNode("https://github.com/glfw/glfw")) {
+ char* license = (char*)_binary_glfw_LICENSE_start;
+ int64_t license_length = _binary_glfw_LICENSE_end - _binary_glfw_LICENSE_start;
+ ImGui::Text("%.*s", (int)license_length, license);
+ ImGui::TreePop();
+ }
+
if (ImGui::TreeNode("https://github.com/nothings/stb/blob/master/stb_image.h")) {
ImGui::Text("public domain");
ImGui::TreePop();