diff options
author | rtk0c <[email protected]> | 2025-04-24 12:25:33 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-04-24 12:25:33 -0700 |
commit | d5fd02d8eb387b477678ffbfb44303a38c105607 (patch) | |
tree | ef706d91dbcd8cd345034e791b7be9076d0897a8 /src/ui.cpp | |
parent | 75585f4fb6f312195a47b16224d45e671858dac7 (diff) |
Some draft ideas on simulation
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 17 |
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(); +} |