From 67f519a95e2e33f95eccaef80e470993bf9987a7 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 10 Mar 2024 20:05:28 +0100 Subject: add glfw to dependencies list, close #4 --- src/definitions.cpp | 4 ++++ src/definitions.h | 3 +++ src/main.cpp | 7 +++++++ 3 files changed, 14 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3-70-g09d2