diff options
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(); } |