Skip to content

Commit 8148a52

Browse files
authored
Actually render to GL (#23)
1 parent fc26a19 commit 8148a52

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

DebugGUI/src/DebugGUI.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ bool pollGUI(void* context, std::function<void(void)> guiCallback)
7777
guiCallback();
7878
}
7979
ImGui::Render();
80+
ImGui_ImplGlfwGL3_RenderDrawLists(ImGui::GetDrawData());
8081
glfwSwapBuffers(window);
8182
return true;
8283
}

DebugGUI/src/imgui_impl_glfw_gl3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
// https://github.com/ocornut/imgui
88

99
struct GLFWwindow;
10+
struct ImDrawData;
1011

1112
IMGUI_API bool ImGui_ImplGlfwGL3_Init(GLFWwindow* window, bool install_callbacks);
1213
IMGUI_API void ImGui_ImplGlfwGL3_Shutdown();
1314
IMGUI_API void ImGui_ImplGlfwGL3_NewFrame();
15+
IMGUI_API void ImGui_ImplGlfwGL3_RenderDrawLists(ImDrawData* draw_data);
1416

1517
// Use if you want to reset your rendering device without losing ImGui state.
1618
IMGUI_API void ImGui_ImplGlfwGL3_InvalidateDeviceObjects();

0 commit comments

Comments
 (0)