aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 5 insertions, 0 deletions
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<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();
}