aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
new file mode 100644
index 0000000..bc88394
--- /dev/null
+++ b/src/ui.cpp
@@ -0,0 +1,17 @@
+#include "ui.hpp"
+#include "ogl.hpp"
+#include "sandbox.hpp"
+
+#include <imgui.h>
+
+void ShowEverything() {
+ ImGui::Begin("Sandbox");
+ constexpr int kWidth = 40;
+ constexpr int kHeight = 100;
+ static bool running = false;
+ static Sandbox sandbox(40, 100);
+ static OglImage gl;
+ sandbox.simulate_step();
+ gl.upload(reinterpret_cast<const char*>(sandbox._bitmap.data()), kWidth, kHeight);
+ ImGui::End();
+}