diff options
author | rtk0c <[email protected]> | 2025-04-24 13:14:10 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-04-24 13:14:10 -0700 |
commit | cbfe3801bbcb2818b28b0c84e2bf6f25b123c46b (patch) | |
tree | dd3be7394cec003e687a2c7558aed411ced2faaf /src/ui.cpp | |
parent | d5fd02d8eb387b477678ffbfb44303a38c105607 (diff) |
Make the texture render
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,5 +13,10 @@ void ShowEverything() { static OglImage gl; sandbox.simulate_step(); gl.upload(reinterpret_cast<const char*>(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(); } |