Skip to content

Commit 2ccc355

Browse files
authored
Version 1.6.0 - ImGui Docking Feature (#3)
* Add docking feature of imgui * bump version
1 parent 6d5bcfb commit 2ccc355

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ file(GLOB IMGUI_CORE_SRC
1515
external/imgui/*.cpp
1616
)
1717

18-
list(REMOVE_ITEM IMGUI_CORE_SRC
19-
external/imgui/imgui_demo.cpp
20-
)
21-
2218
set(IMGUI_BACKEND_SRC
2319
external/imgui/backends/imgui_impl_glfw.cpp
2420
external/imgui/backends/imgui_impl_opengl3.cpp

external/imgui

Submodule imgui updated 77 files

include/entropy/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#pragma once
22

3-
#define VERSION "1.5.0"
4-
#define DATE "23.01.2026"
3+
#define VERSION "1.6.0"
4+
#define DATE "26.01.2026"

src/app.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,11 @@ void initializeWindowAndGL(GLFWwindow *&window, GLuint &tex) {
248248
IMGUI_CHECKVERSION();
249249
ImGui::CreateContext();
250250
ImGuiIO &io = ImGui::GetIO();
251-
io.IniFilename = nullptr;
251+
io.IniFilename = "entropy_visualizer.ini";
252252
io.LogFilename = nullptr;
253+
254+
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
255+
253256
(void)io;
254257
ImGui::StyleColorsDark();
255258
ImGui_ImplGlfw_InitForOpenGL(window, true);
@@ -272,6 +275,8 @@ void mainLoop(GLFWwindow *window, GLuint tex, AppState &state, UiState &uiState,
272275
ImGui_ImplGlfw_NewFrame();
273276
ImGui::NewFrame();
274277

278+
ImGui::DockSpaceOverViewport(0, ImGui::GetMainViewport(), ImGuiDockNodeFlags_PassthruCentralNode);
279+
275280
size_t block_size = state.block_width * state.block_height;
276281

277282
// Handle dropped files

0 commit comments

Comments
 (0)