From cbfe3801bbcb2818b28b0c84e2bf6f25b123c46b Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 24 Apr 2025 13:14:10 -0700 Subject: Make the texture render --- src/ui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index bc88394..43ecb09 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -13,5 +13,10 @@ void ShowEverything() { static OglImage gl; sandbox.simulate_step(); gl.upload(reinterpret_cast(sandbox._bitmap.data()), kWidth, kHeight); + constexpr float kScale = 4.0f; + constexpr ImVec2 kSize(kWidth * kScale, kHeight * kScale); + ImGui::Image(gl.as_imgui(), kSize); ImGui::End(); + + ImGui::ShowDemoWindow(); } -- cgit v1.2.3-70-g09d2