#include "ui.hpp" #include "ogl.hpp" #include "sandbox.hpp" #include 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(sandbox._bitmap.data()), kWidth, kHeight); constexpr float kScale = 4.0f; constexpr ImVec2 kSize(kWidth * kScale, kHeight * kScale); ImGui::Image(gl.as_imgui(), kSize, ImVec2(0, 1), ImVec2(1, 0)); ImGui::End(); ImGui::ShowDemoWindow(); }